Re: [RFC][PATCH 4/5] memory_pressure_notify() caller

From: KAMEZAWA Hiroyuki
Date: Mon Jan 14 2008 - 21:57:10 EST


On Tue, 15 Jan 2008 11:37:48 +0900
KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/