Re: Tweaking swap algorithm under constrained memory usage

From: KAMEZAWA Hiroyuki
Date: Wed Oct 27 2010 - 23:11:09 EST


On Wed, 27 Oct 2010 19:58:00 -0700
Pawan Singh <pawan@xxxxxxxxxx> wrote:

> >
> > Recent kernel (2.6.28-) has splited LRUs as
> > Â- active/inactive ANON
> > Â- active/inactive FILE
> > Â- LOCKED (UNEVICTABLE) ---(new)
>
> Thanks for the reply. Does that mean that in 2.6.28 kernel, kswapd
> will modify its thresholds so that it only looks at active/inactive
> ANON?
>

kswapd's threshold is not modifled. But because UNEVICTABLE LRU is not
scanned by kswapd, time consumption of kswapd is dramatically reduced.

About kswapd trigger, IIUC, /proc/sys/vm/min_free_kbytes is one.

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/