lkml.org 
[lkml]   [2006]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: /proc/sys/vm/swappiness == 0 makes OOM killer go beserk
Date
From
In linux.kernel, you wrote:
> the OOM killer just killed some of my processes while the system
> still had >2.5 GB of free swap. I'm running vanilla 2.6.15 on my
> desktop. The machine is a single Athlon64, 1 GB RAM, 3 GB swap,
> x86_64 kernel, (mostly) i386 userland. A few days ago I have set
> /proc/sys/vm/swappiness to 0 to see whether it would increase the
> interactive performance.

I have to say I've noticed the same thing.

On my home workstation I do a lot of stuff with very large video
files, so set swappiness to 0 some time ago so using these large files
would stop all the applications getting pushed out into swap.

However I've noticed that ocassionally the kernel has killed large
memory processes (eg firefox!) even when there was lots of swap free.

Recently, I found I just could not use gimp to edit a very large image
(about 800MB on a 1 GB machine) without the OOM killer killing it.
When I reset swappiness to 60 I could then use gimp fine.

This doesn't seem like correct behaviour to me! (Though I note the
caveat I read somewhere that swappiness probably doesn't do what I
think it does - it probably doesn't!)

--
Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-01-14 12:06    [W:0.416 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site