]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Refine memcg-based memory accounting for hashtab maps
authorRoman Gushchin <guro@fb.com>
Tue, 1 Dec 2020 21:58:38 +0000 (13:58 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 3 Dec 2020 02:32:45 +0000 (18:32 -0800)
commit103f1233fe953f82d7881cb852670f50dce9c498
treeb8cc4d191dfc8432af151ea9f0eecc8d64c586bb
parenteeba783c348b7e9a1b6133701db4a8d0cbef9a1e
bpf: Refine memcg-based memory accounting for hashtab maps

Include percpu objects and the size of map metadata into the
accounting.

Signed-off-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201201215900.3569844-13-guro@fb.com
kernel/bpf/hashtab.c