summaryrefslogtreecommitdiff
path: root/lib/pm-notifier-error-inject.c
diff options
context:
space:
mode:
authorYu Zhao <yuzhao@google.com>2023-02-13 10:53:22 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-02-17 07:43:54 +0300
commit9f550d78b40da21b4da515db4c37d8d7b12aa1a6 (patch)
tree5bcf8622f7d5220ef30141a840975482d5efe2bf /lib/pm-notifier-error-inject.c
parent6f7d760e86fa84862d749e36ebd29abf31f4f883 (diff)
downloadlinux-9f550d78b40da21b4da515db4c37d8d7b12aa1a6.tar.xz
mm: multi-gen LRU: avoid futile retries
Recall that the per-node memcg LRU has two generations and they alternate when the last memcg (of a given node) is moved from one to the other. Each generation is also sharded into multiple bins to improve scalability. A reclaimer starts with a random bin (in the old generation) and, if it fails, it will retry, i.e., to try the rest of the bins. If a reclaimer fails with the last memcg, it should move this memcg to the young generation first, which causes the generations to alternate, and then retry. Otherwise, the retries will be futile because all other bins are empty. Link: https://lkml.kernel.org/r/20230213075322.1416966-1-yuzhao@google.com Fixes: e4dde56cd208 ("mm: multi-gen LRU: per-node lru_gen_folio lists") Signed-off-by: Yu Zhao <yuzhao@google.com> Reported-by: T.J. Mercier <tjmercier@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions