bpf: Memcg-based memory accounting for cgroup storage maps
authorRoman Gushchin <guro@fb.com>
Tue, 1 Dec 2020 21:58:36 +0000 (13:58 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 3 Dec 2020 02:32:45 +0000 (18:32 -0800)
commit3a61c7c58b3012ac28c166801842615ca99b49c5
tree81d5774de5f8653a1e9dcada1bfcb06512815009
parente88cc05b61f3fe8bd4bd8ce1a0a2d03357225305
bpf: Memcg-based memory accounting for cgroup storage maps

Account memory used by cgroup storage maps including metadata
structures.

Account the percpu memory for the percpu flavor of cgroup storage.

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