Re: [experimental][PATCH] mm,vmstat: per cpu stat flush too when per cpu page cache flushed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > @@ -245,6 +261,11 @@ void __dec_zone_state(struct zone *zone, enum zone_stat_item item)
> >  	struct per_cpu_pageset *pcp = this_cpu_ptr(zone->pageset);
> >  	s8 *p = pcp->vm_stat_diff + item;
> >
> > +	if (unlikely(!vm_stat_drift_take(zone, item))) {
> > +		zone_page_state_add(-1, zone, item);
> > +		return;
> > +	}
> > +
> >  	(*p)--;
> >
> >  	if (unlikely(*p < - pcp->stat_threshold)) {
> 
> Increased overhead for basic VM counter management.
> 
> Instead of all of this why not simply set the stat_threshold to 0 for
> select cpus?

hmm... difficult. but I will think this way a while ;)



--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]