[OpenWrt-Devel] Enable BPF JIT by default?

Felix Fietkau nbd at openwrt.org
Fri Nov 6 08:31:10 EST 2015


On 2015-11-06 13:44, Helmut Schaa wrote:
> On Thu, Nov 5, 2015 at 5:56 PM, John Crispin <blogic at openwrt.org> wrote:
>> On 05/11/2015 17:54, Helmut Schaa wrote:
>>> Since lots of architectures now support BPF JIT would it make sense to
>>> enable it by default for all openwrt builds?
>>> Any opinions on that?
>>
>> can you grab some stats so we can compare kernel size on a few targets ?
> 
> Just quickly tried mips and x86_64:
> 
> On mips:
> 
> openwrt-ar71xx-generic-uImage-gzip.bin +4.605 bytes
> openwrt-ar71xx-generic-uImage-lzma.bin +2.836 bytes
> 
> On x86_64:
> 
> openwrt-x86_64-vmlinuz +3.168 Bytes
> 
> So kernel size increase is in the ~5K range.
> Not sure if this would justify an extra config option or enabling it
> by default makes sense.
> 
> Performance-wise this change would only matter for BPF usage but on some archs
> even BPF JIT for seccomp filters gets accelerated ...
The size increase is small enough, so I think we can simply enable it by
default. Feel free to send a patch.

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list