diff options
author | 2022-09-02 14:10:50 -0700 | |
---|---|---|
committer | 2022-09-05 15:33:06 +0200 | |
commit | 7c266178aa51dd2d4fda1312c5990a8a82c83d70 (patch) | |
tree | 836f9c901619e80222a96108acdd49ce7fe1f26f /drivers/net/dsa/microchip | |
parent | bpf: Optimize call_rcu in non-preallocated hash map. (diff) | |
download | linux-dev-7c266178aa51dd2d4fda1312c5990a8a82c83d70.tar.xz linux-dev-7c266178aa51dd2d4fda1312c5990a8a82c83d70.zip |
bpf: Adjust low/high watermarks in bpf_mem_cache
The same low/high watermarks for every bucket in bpf_mem_cache consume
significant amount of memory. Preallocating 64 elements of 4096 bytes each in
the free list is not efficient. Make low/high watermarks and batching value
dependent on element size. This change brings significant memory savings.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220902211058.60789-9-alexei.starovoitov@gmail.com
Diffstat (limited to 'drivers/net/dsa/microchip')
0 files changed, 0 insertions, 0 deletions