HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
mm: vmscan: clarify how swappiness, highest priority, memcg interact
A swappiness of 0 has a slightly different meaning for global reclaim (may swap if file cache really low) and memory cgroup reclaim (never swap, ever). In addition, global reclaim at highest priority will scan all LRU lists equal to their size and ignore other balancing heuristics. UNLESS swappiness forbids swapping, then the lists are balanced based on recent reclaim effectiveness. UNLESS file cache is running low, then anonymous pages are force-scanned. This (total mess of a) behaviour is implicit and not obvious from the way the code is organized. At least make it apparent in the code flow and document the conditions. It will be it easier to come up with sane semantics later. Signed-off-by: Johannes Weiner <email@example.com> Reviewed-by: Rik van Riel <firstname.lastname@example.org> Reviewed-by: Satoru Moriya <email@example.com> Reviewed-by: Michal Hocko <firstname.lastname@example.org> Acked-by: Mel Gorman <email@example.com> Cc: Hugh Dickins <firstname.lastname@example.org> Cc: Simon Jeons <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
- Loading branch information...