Re: [PATCH v2 net-next] bpf: reduce verifier memory consumption

2017-10-31 Thread David Miller
From: Alexei Starovoitov Date: Tue, 31 Oct 2017 18:16:05 -0700 > 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

[PATCH v2 net-next] bpf: reduce verifier memory consumption

2017-10-31 Thread Alexei Starovoitov
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