Skip to content

memory tiering: hot page selection

Huang Ying linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3memory tiering: hot page selection with hint page fault latencyinclude/linux/mm.h kernel/sched/debug.c kernel/sched/fair.c +5 more+145 -52 replies
2/3memory tiering: rate limit NUMA migration throughputinclude/linux/mmzone.h include/linux/sched/sysctl.h kernel/sched/fair.c +2 more+41 -20 replies
3/3memory tiering: adjust hot threshold automaticallyinclude/linux/mmzone.h include/linux/sched/sysctl.h kernel/sched/core.c +1 more+78 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] memory tiering: hot page selection

To optimize page placement in a memory tiering system with NUMA balancing, the hot pages in the slow memory node need to be identified. Essentially, the original NUMA balancing implementation selects and promote the mostly recently accessed (MRU) pages. But the recently accessed pages may be cold. So in this patchset, we implement a new hot page identification algorithm based on the latency between NUMA balancing page table scanning and hint page fault.

And the hot page promotion can incur some overhead in the system. To control the overhead a simple promotion rate limit mechanism is implemented.

The hot threshold used to identify the hot pages is workload dependent usually. So we also implemented a hot threshold automatic adjustment algorithm. The basic idea is to increase/decrease the hot threshold to make the number of pages that pass the hot threshold (promote candidate) near the rate limit.

We used the pmbench memory accessing benchmark tested the patchset on a 2-socket server system with DRAM and PMEM installed. The test results are as follows,

		pmbench score		promote rate
		 (accesses/s)			MB/s
		-------------		------------

base 146887704.1 725.6
hot selection 165695601.2 544.0
rate limit 162814569.8 165.2
auto adjustment 170495294.0 136.9

From the results above,

With hot page selection patch [1/3], the pmbench score increases about 12.8%, and promote rate (overhead) decreases about 25.0%, compared with base kernel.

With rate limit patch [2/3], pmbench score decreases about 1.7%, and promote rate decreases about 69.6%, compared with hot page selection patch.

With threshold auto adjustment patch [3/3], pmbench score increases about 4.7%, and promote rate decrease about 17.1%, compared with rate limit patch.

Best Regards,
Huang, Ying