Messages in this thread | | | From | KOSAKI Motohiro <> | Subject | Re: [patch] vmstat: account page allocation failures | Date | Thu, 28 Apr 2011 22:50:18 +0900 (JST) |
| |
> nopage: > + inc_zone_state(preferred_zone, NR_ALLOC_FAIL); > + /* count_zone_vm_events(PGALLOCFAIL, preferred_zone, 1 << order); */ > if (!(gfp_mask & __GFP_NOWARN) && printk_ratelimit()) { > unsigned int filter = SHOW_MEM_FILTER_NODES; > > --- linux-next.orig/mm/vmstat.c 2011-04-28 21:34:30.000000000 +0800 > +++ linux-next/mm/vmstat.c 2011-04-28 21:34:35.000000000 +0800 > @@ -879,6 +879,7 @@ static const char * const vmstat_text[] > "nr_shmem", > "nr_dirtied", > "nr_written", > + "nr_alloc_fail",
I'm using very similar patch for debugging. However, this is useless for admins because typical linux load have plenty GFP_ATOMIC allocation failure. So, typical user have no way that failure rate is high or not.
| |