diff options
author | 2022-07-01 20:35:21 -0700 | |
---|---|---|
committer | 2022-07-29 18:07:14 -0700 | |
commit | d6e103a757fa7876e7ded76128d5dffe12402ab9 (patch) | |
tree | 5ea391af7dacedee1b69273a4f5f1eb5edb74826 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | filemap: minor cleanup for filemap_write_and_wait_range (diff) | |
download | linux-dev-d6e103a757fa7876e7ded76128d5dffe12402ab9.tar.xz linux-dev-d6e103a757fa7876e7ded76128d5dffe12402ab9.zip |
mm: memcontrol: do not miss MEMCG_MAX events for enforced allocations
Yafang Shao reported an issue related to the accounting of bpf memory:
if a bpf map is charged indirectly for memory consumed from an
interrupt context and allocations are enforced, MEMCG_MAX events are
not raised.
It's not/less of an issue in a generic case because consequent
allocations from a process context will trigger the direct reclaim and
MEMCG_MAX events will be raised. However a bpf map can belong to a
dying/abandoned memory cgroup, so there will be no allocations from a
process context and no MEMCG_MAX events will be triggered.
Link: https://lkml.kernel.org/r/20220702033521.64630-1-roman.gushchin@linux.dev
Signed-off-by: Roman Gushchin <roman.gushchin@linux.dev>
Reported-by: Yafang Shao <laoar.shao@gmail.com>
Acked-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions