lkml.org 
[lkml]   [2008]   [Jan]   [14]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateTue, 15 Jan 2008 12:00:12 +0900
FromKAMEZAWA Hiroyuki <>
SubjectRe: [RFC][PATCH 4/5] memory_pressure_notify() caller
On Tue, 15 Jan 2008 11:37:48 +0900
KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:

> Hi KAME, 
> 
> > > +	notify_threshold = (zone->pages_high +
> > > +			    zone->lowmem_reserve[MAX_NR_ZONES-1]) * 2;
> > > +
> > Why MAX_NR_ZONES-1 ?
> 
> this is intent to max lowmem_reserve.
> 
Ah, my point is.. how about this ?
==
if (page_zoneid(page) != ZONE_DMA)
	notify_threshold = zone->pages_high +
                   	zone->lowmem_reserve[page_zoneid(page) - 1] * 2;
==
Thanks,
-Kame



\
 
 \ /
  Last update: 2008-01-15 01:59    [W:0.227 / U:0.050 seconds]
©2003-2008 Jasper Spaans