diff options
author | Vladimir Davydov <vdavydov@virtuozzo.com> | 2016-01-21 00:03:10 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-21 02:09:18 +0100 |
commit | 5ccc5abaaf6f9242cc63342c5286990233f392fa (patch) | |
tree | 14406eb21280bafa4a447d4b45ea5bd6caa354af /mm/userfaultfd.c | |
parent | mm: vmscan: do not scan anon pages if memcg swap limit is hit (diff) | |
download | linux-5ccc5abaaf6f9242cc63342c5286990233f392fa.tar.xz linux-5ccc5abaaf6f9242cc63342c5286990233f392fa.zip |
mm: free swap cache aggressively if memcg swap is full
Swap cache pages are freed aggressively if swap is nearly full (>50%
currently), because otherwise we are likely to stop scanning anonymous
when we near the swap limit even if there is plenty of freeable swap cache
pages. We should follow the same trend in case of memory cgroup, which
has its own swap limit.
Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/userfaultfd.c')
0 files changed, 0 insertions, 0 deletions