mm: ifdef Quicklists in /proc/meminfo
PATCH 1/1 mm: ifdef Quicklists in /proc/meminfo
A "Quicklists: 0 kB" line has just started appearing in/proc/meminfo, but most architectures (including x86) don't have them configured: may we please #ifdef it, like the highmem lines?
And those architectures which do have quicklists configured are using them for page tables: so let's place it next to PageTables.
---
fs/proc/proc_misc.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
fs/proc/proc_misc.c renamed from fs/proc/proc_misc.c.0 +8 -4
@@ -183,6 +183,9 @@ static int meminfo_read_proc(char *page, "SReclaimable: %8lu kB\n" "SUnreclaim: %8lu kB\n" "PageTables: %8lu kB\n" +#ifdef CONFIG_QUICKLIST + "Quicklists: %8lu kB\n" +#endif"NFS_Unstable: %8lu kB\n" "Bounce: %8lu kB\n" "WritebackTmp: %8lu kB\n"
@@ -190,8 +193,7 @@ static int meminfo_read_proc(char *page,"Committed_AS: %8lu kB\n" "VmallocTotal: %8lu kB\n" "VmallocUsed: %8lu kB\n" -"VmallocChunk: %8lu kB\n" -"Quicklists: %8lu kB\n" , +"VmallocChunk: %8lu kB\n" ,K (i.totalram),K (i.freeram), K(i.bufferram),
@@ -216,6 +218,9 @@ static int meminfo_read_proc(char *page,K (global_page_state (NR_SLAB_RECLAIMABLE )),K (global_page_state (NR_SLAB_UNRECLAIMABLE )),K (global_page_state (NR_PAGETABLE )), +#ifdef CONFIG_QUICKLIST +K (quicklist_total_size ()), +#endifK (global_page_state (NR_UNSTABLE_NFS )),K (global_page_state (NR_BOUNCE )), K(global_page_state(NR_WRITEBACK_TEMP)),
@@ -223,8 +228,7 @@ static int meminfo_read_proc(char *page,K (committed), (unsigned long )VMALLOC_TOTAL >>10 , vmi.used >>10 , - vmi.largest_chunk >>10 , -K (quicklist_total_size ()) + vmi.largest_chunk >>10 ); len +=hugetlb_report_meminfo (page + len);
Quoted 9 lines
A "Quicklists: 0 kB" line has just started appearing in
/proc/meminfo, but most architectures (including x86) don't have them configured: may we please #ifdef it, like the highmem lines?And those architectures which do have quicklists configured are using them for page tables: so let's place it next to PageTables.
Signed-off-by Hugh Dickins <[email protected]>---
Oh, I see.
Thanks Hugh.
Quoted 7 lines · KOSAKI Motohiro
Quoted 7 lines
A "Quicklists: 0 kB" line has just started appearing in
/proc/meminfo, but most architectures (including x86) don't have them configured: may we please #ifdef it, like the highmem lines?And those architectures which do have quicklists configured are using them for page tables: so let's place it next to PageTables.
Quoted 7 lines
Quoted 2 lines
Signed-off-by Hugh Dickins <[email protected]>---
Oh, I see.
Thanks Hugh.Acked-by KOSAKI Motohiro <[email protected]>
x86 *does* use quicklists, at least with PAE.
-hpa
Quoted 2 lines · H. Peter Anvin
x86 *does* use quicklists, at least with PAE.
Are you harking back to the good old days of 2.6.24? Or looking ahead to a bright new future?
There was a defect, in the TLB flushing sequence IIRC, which got them kicked out in a hurry. They might return
- but I think everybody would prefer to have a better way of applying the existing allocators than this extra pool.
Hugh
Quoted 1 line · H. Peter Anvin
x86 *does* use quicklists, at least with PAE.
No, not for a while now.
J
Quoted 4 lines · Jeremy Fitzhardinge
Quoted 1 line · H. Peter Anvin
x86 *does* use quicklists, at least with PAE.
No, not for a while now.
Sorry, stale cache...
-hpa