mm: completely remove dumping per-cpu lists from show_mem()
It seems nobody needs this. Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com> Cc: Michal Hocko <mhocko@suse.cz> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
d1bfcdb8ce
commit
761b06771a
2 changed files with 2 additions and 21 deletions
|
@ -1126,7 +1126,6 @@ extern void pagefault_out_of_memory(void);
|
||||||
* various contexts.
|
* various contexts.
|
||||||
*/
|
*/
|
||||||
#define SHOW_MEM_FILTER_NODES (0x0001u) /* disallowed nodes */
|
#define SHOW_MEM_FILTER_NODES (0x0001u) /* disallowed nodes */
|
||||||
#define SHOW_MEM_PERCPU_LISTS (0x0002u) /* per-zone per-cpu */
|
|
||||||
|
|
||||||
extern void show_free_areas(unsigned int flags);
|
extern void show_free_areas(unsigned int flags);
|
||||||
extern bool skip_free_areas_node(unsigned int flags, int nid);
|
extern bool skip_free_areas_node(unsigned int flags, int nid);
|
||||||
|
|
|
@ -3255,7 +3255,6 @@ static void show_migration_types(unsigned char type)
|
||||||
* Bits in @filter:
|
* Bits in @filter:
|
||||||
* SHOW_MEM_FILTER_NODES: suppress nodes that are not allowed by current's
|
* SHOW_MEM_FILTER_NODES: suppress nodes that are not allowed by current's
|
||||||
* cpuset.
|
* cpuset.
|
||||||
* SHOW_MEM_PERCPU_LISTS: display full per-node per-cpu pcp lists
|
|
||||||
*/
|
*/
|
||||||
void show_free_areas(unsigned int filter)
|
void show_free_areas(unsigned int filter)
|
||||||
{
|
{
|
||||||
|
@ -3267,25 +3266,8 @@ void show_free_areas(unsigned int filter)
|
||||||
if (skip_free_areas_node(filter, zone_to_nid(zone)))
|
if (skip_free_areas_node(filter, zone_to_nid(zone)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (filter & SHOW_MEM_PERCPU_LISTS) {
|
for_each_online_cpu(cpu)
|
||||||
show_node(zone);
|
free_pcp += per_cpu_ptr(zone->pageset, cpu)->pcp.count;
|
||||||
printk("%s per-cpu:\n", zone->name);
|
|
||||||
}
|
|
||||||
|
|
||||||
for_each_online_cpu(cpu) {
|
|
||||||
struct per_cpu_pageset *pageset;
|
|
||||||
|
|
||||||
pageset = per_cpu_ptr(zone->pageset, cpu);
|
|
||||||
|
|
||||||
free_pcp += pageset->pcp.count;
|
|
||||||
|
|
||||||
if (!(filter & SHOW_MEM_PERCPU_LISTS))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
printk("CPU %4d: hi:%5d, btch:%4d usd:%4d\n",
|
|
||||||
cpu, pageset->pcp.high,
|
|
||||||
pageset->pcp.batch, pageset->pcp.count);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
printk("active_anon:%lu inactive_anon:%lu isolated_anon:%lu\n"
|
printk("active_anon:%lu inactive_anon:%lu isolated_anon:%lu\n"
|
||||||
|
|
Loading…
Add table
Reference in a new issue