linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [LSF/MM/BPF TOPIC] Using hardware counters to determine hot/cold pages
@ 2023-02-17 11:58 Aneesh Kumar K V
  2023-02-17 16:42 ` SeongJae Park
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Aneesh Kumar K V @ 2023-02-17 11:58 UTC (permalink / raw)
  To: lsf-pc, Linux MM; +Cc: Yu Zhao, Dave Hansen, Johannes Weiner

[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]

PowerPC architecture (POWER10) supports a Hot/Cold page tracking
facility that provides access counter and access affinity details at
configurable page size granularity [1]. I have been looking at using
this counter in different areas of the kernel such as

1) Page reclaim/demotion
2) THP utilization
3) Page promotion.

I have done some MGLRU integration and would like to discuss the
observation with the rest of the community. It is still not clear what
are the best ways to integrate these hardware counters in the Linux
kernel. Attached is the performance graph showing how the mongodb/ycsb
benchmark performs when using hardware counters with MGLRU aging. An
early RFC version of the code can be found at
https://github.com/kvaneesh/linux/commit/b472e2c8080823bb4114c286270aea3e18ffe221
. I also expect we can get some numbers w.r.t THP usage before the
conference.


X axis is the amount of memory that I am removing from the system so
that I can force more memory reclaims. The total memory available is
50GB/single NUMA node/64 CPUs,40GB database with 40GB cache
configuration.


[1]
https://hc32.hotchips.org/assets/program/conference/day1/HotChips2020_Server_Processors_IBM_Starke_POWER10_v33.pdf

[-- Attachment #2: mongodb-perf-lsf-mm.png --]
[-- Type: image/png, Size: 108289 bytes --]

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

end of thread, other threads:[~2023-02-19 20:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-17 11:58 [LSF/MM/BPF TOPIC] Using hardware counters to determine hot/cold pages Aneesh Kumar K V
2023-02-17 16:42 ` SeongJae Park
2023-02-19 14:29   ` Aneesh Kumar K.V
2023-02-19 20:31     ` SeongJae Park
2023-02-17 16:53 ` Matthew Wilcox
2023-02-19 14:43   ` Aneesh Kumar K.V
2023-02-17 22:00 ` Yang Shi
2023-02-19 14:45   ` Aneesh Kumar K.V

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).