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

2017-10-31 Thread Alexei Starovoitov
On 10/31/17 5:37 AM, Edward Cree wrote: On 30/10/17 21:51, Alexei Starovoitov wrote: 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_ver

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

2017-10-31 Thread Edward Cree
On 30/10/17 21:51, Alexei Starovoitov wrote: > 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 Nice! > I

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

2017-10-30 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 n