public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] mm,TPP: Enable promotion of unmapped pagecache
@ 2024-08-03  9:47 Gregory Price
  2024-08-03  9:47 ` [PATCH 1/3] migrate: Allow migrate_misplaced_folio APIs without a VMA Gregory Price
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Gregory Price @ 2024-08-03  9:47 UTC (permalink / raw)
  To: linux-mm
  Cc: linux-kernel, akpm, david, ying.huang, nphamcs, nehagholkar,
	abhishekd

Unmapped pagecache pages can be demoted to low-tier memory, but 
they can only be promoted if a process maps the pages into the
memory space (so that NUMA hint faults can be caught).  This can
cause significant performance degradation as the pagecache ages
and unmapped, cached files are accessed.

This patch series enables the pagecache to request a promotion of
a folio when it is accessed via the pagecache.

We add a new `numa_hint_page_cache` counter in vmstat to capture
information on when these migrations occur.

Gregory Price (3):
  migrate: Allow migrate_misplaced_folio APIs without a VMA
  memory: allow non-fault migration in numa_migrate_prep path
  swap: enable promotion for unmapped pagecache on access

 include/linux/migrate.h       |  6 ++----
 include/linux/vm_event_item.h |  1 +
 mm/huge_memory.c              |  2 +-
 mm/memory.c                   | 21 +++++++++++----------
 mm/mempolicy.c                | 25 +++++++++++++++++--------
 mm/migrate.c                  |  7 +++----
 mm/swap.c                     | 20 ++++++++++++++++++++
 mm/vmstat.c                   |  1 +
 8 files changed, 56 insertions(+), 27 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-11-12  0:36 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-03  9:47 [PATCH 0/3] mm,TPP: Enable promotion of unmapped pagecache Gregory Price
2024-08-03  9:47 ` [PATCH 1/3] migrate: Allow migrate_misplaced_folio APIs without a VMA Gregory Price
2024-08-03  9:47 ` [PATCH 2/3] memory: allow non-fault migration in numa_migrate_prep path Gregory Price
2024-08-03  9:47 ` [PATCH 3/3] swap: enable promotion for unmapped pagecache on access Gregory Price
2024-08-08 23:20 ` [PATCH 0/3] mm,TPP: Enable promotion of unmapped pagecache Andrew Morton
2024-08-13 15:04   ` Gregory Price
2024-08-14 16:09     ` Gregory Price
2024-08-19  7:46 ` Huang, Ying
2024-08-19 15:15   ` Gregory Price
2024-09-02  6:53     ` Huang, Ying
2024-09-03 13:36       ` Gregory Price
2024-11-04 18:12       ` Gregory Price
2024-11-05  2:00         ` Huang, Ying
2024-11-05 15:16           ` Gregory Price
2024-11-08 18:00           ` Gregory Price
2024-11-11  1:35             ` Huang, Ying
2024-11-11 14:25               ` Gregory Price
2024-11-12  0:33                 ` Huang, Ying

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox