diff options
author | Johannes Weiner <[email protected]> | 2016-03-15 14:57:16 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-03-15 16:55:16 -0700 |
commit | 23047a96d7cfcfca1a6d026ecaec526ea4803e9e (patch) | |
tree | 3c90e27cc6dcb6a386a54c503bbb0860e828509b /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 612e44939c3c77245ac80843c0c7876c8cf97282 (diff) |
mm: workingset: per-cgroup cache thrash detection
Cache thrash detection (see a528910e12ec "mm: thrash detection-based
file cache sizing" for details) currently only works on the system
level, not inside cgroups. Worse, as the refaults are compared to the
global number of active cache, cgroups might wrongfully get all their
refaults activated when their pages are hotter than those of others.
Move the refault machinery from the zone to the lruvec, and then tag
eviction entries with the memcg ID. This makes the thrash detection
work correctly inside cgroups.
[[email protected]: do not return from workingset_activation() with locked rcu and page]
Signed-off-by: Johannes Weiner <[email protected]>
Signed-off-by: Sergey Senozhatsky <[email protected]>
Reviewed-by: Vladimir Davydov <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions