kernel_optimize_test/include
Alexei Starovoitov 638f5b90d4 bpf: reduce verifier memory consumption
the verifier got progressively smarter over time and size of its internal
state grew as well. Time to reduce the memory consumption.

Before:
sizeof(struct bpf_verifier_state) = 6520
After:
sizeof(struct bpf_verifier_state) = 896

It's done by observing that majority of BPF programs use little to
no stack whereas verifier kept all of 512 stack slots ready always.
Instead dynamically reallocate struct verifier state when stack
access is detected.
Runtime difference before vs after is within a noise.
The number of processed instructions stays the same.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-01 11:41:18 +09:00
..
acpi
asm-generic
clocksource
crypto
drm
dt-bindings
keys
kvm
linux bpf: reduce verifier memory consumption 2017-11-01 11:41:18 +09:00
math-emu
media
memory
misc
net net: sched: Identify hardware traffic classes using classid 2017-10-31 10:45:45 -07:00
pcmcia
ras
rdma
scsi
soc
sound ALSA: hda - Fix incorrect TLV callback check introduced during set_fs() removal 2017-10-18 12:27:00 +02:00
target
trace bpf: permit multiple bpf attachments for a single perf event 2017-10-25 10:47:47 +09:00
uapi Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-10-30 21:09:24 +09:00
video
xen