Re: VM Problems in 2.6.7 (Too active OOM Killer)
From: Peter Zaitsev
Date: Wed Jul 14 2004 - 18:49:59 EST
On Tue, 2004-07-13 at 21:17, Andrew Morton wrote:
> Peter Zaitsev <peter@xxxxxxxxx> wrote:
> >
> > The reason for me to disable swap both in 2.4 and 2.6 is - it really
> > hurts performance. In some cases performance can be 2-3 times slower
> > with swap file enabled. Using O_DIRECT and mlock() for buffers helps
> > but not completely.
>
> It's strange that swap should harm performance in this manner. Is that
> also the case on 2.6?
I've run the test and it looks like VM in 2.6 does not suffer from
excessive swapping, at least for this test. It could be you need to get
more memory load to get such effect (I was only using some 2G out of 4G
for application, the rest was file cache).
Anyway this is pretty good news.
>
> wrt this OOM problem: it's possible that your ZONE_NORMAL got filled with
> anonymous memory which the VM is unable to do anything about. If you're
> going to run a highmem box swapless then you should tune the kernel so that
> it doesn't use so much ZONE_NORMAL memory for anonymous pages.
My concern is mainly users which normally run kernel with default
settings. Things should work for them as well.
To be honest I do not really understand this OOM without swap problem at
all, why is it possible to move pages from ZONE_NORMAL to swap but not
to other zones ?
--
Peter Zaitsev, Senior Support Engineer
MySQL AB, www.mysql.com
-
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/