Re: [PATCH v4 1/9] mm: aggregate workingset information into histograms

2024-11-27 Thread Yuanchu Xie
On Tue, Nov 26, 2024 at 8:22 PM Matthew Wilcox wrote: > > On Tue, Nov 26, 2024 at 06:57:20PM -0800, Yuanchu Xie wrote: > > diff --git a/mm/internal.h b/mm/internal.h > > index 64c2eb0b160e..bbd3c1501bac 100644 > > --- a/mm/internal.h > > +++ b/mm/internal.h > > @@ -470,9 +470,14 @@ extern unsigned

Re: [PATCH v4 1/9] mm: aggregate workingset information into histograms

2024-11-26 Thread Matthew Wilcox
On Tue, Nov 26, 2024 at 06:57:20PM -0800, Yuanchu Xie wrote: > diff --git a/mm/internal.h b/mm/internal.h > index 64c2eb0b160e..bbd3c1501bac 100644 > --- a/mm/internal.h > +++ b/mm/internal.h > @@ -470,9 +470,14 @@ extern unsigned long highest_memmap_pfn; > /* > * in mm/vmscan.c: > */ > +struc

[PATCH v4 1/9] mm: aggregate workingset information into histograms

2024-11-26 Thread Yuanchu Xie
Hierarchically aggregate all memcgs' MGLRU generations and their page counts into working set page age histograms. The histograms break down the system's workingset per-node, per-anon/file. The sysfs interfaces are as follows: /sys/devices/system/node/nodeX/workingset_report/page_age A per