diff options
author | Yu Zhao <yuzhao@google.com> | 2024-10-19 03:29:39 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-11-03 19:47:03 +0100 |
commit | 1d4832becdc2cdb2cffe2a6050c9d9fd8ff1c58c (patch) | |
tree | ee8ba1969313701735ec4a949080724335e169d5 /arch/mips/cavium-octeon/crypto/Makefile | |
parent | mm: multi-gen LRU: remove MM_LEAF_OLD and MM_NONLEAF_TOTAL stats (diff) | |
download | linux-1d4832becdc2cdb2cffe2a6050c9d9fd8ff1c58c.tar.xz linux-1d4832becdc2cdb2cffe2a6050c9d9fd8ff1c58c.zip |
mm: multi-gen LRU: use {ptep,pmdp}_clear_young_notify()
When the MM_WALK capability is enabled, memory that is mostly accessed by
a VM appears younger than it really is, therefore this memory will be less
likely to be evicted. Therefore, the presence of a running VM can
significantly increase swap-outs for non-VM memory, regressing the
performance for the rest of the system.
Fix this regression by always calling {ptep,pmdp}_clear_young_notify()
whenever we clear the young bits on PMDs/PTEs.
[jthoughton@google.com: fix link-time error]
Link: https://lkml.kernel.org/r/20241019012940.3656292-3-jthoughton@google.com
Fixes: bd74fdaea146 ("mm: multi-gen LRU: support page table walks")
Signed-off-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: James Houghton <jthoughton@google.com>
Reported-by: David Stevens <stevensd@google.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: David Matlack <dmatlack@google.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Wei Xu <weixugc@google.com>
Cc: <stable@vger.kernel.org>
Cc: kernel test robot <lkp@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/mips/cavium-octeon/crypto/Makefile')
0 files changed, 0 insertions, 0 deletions