lkml.org 
[lkml]   [2004]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.6.5-rc2-mm1 - swapoff dies with OOM, why?
On Mon, 29 Mar 2004, John Stoffel wrote:
>
> But in this case, there was no way to force the turning off of swap,
> since the ext3 bug in 2.6.5-rc2-mm1 had filled the cache, and wasn't
> going away. Is this right?

Well, it was a memory leak, filling more and more resident memory,
leaving less and less for other uses. I didn't investigate, but
I'm guessing not cache.

> I wonder if there's a way to tell swap to 'go away when you can, don't
> allow more swap (kill new requests), and generally work on pushing
> stuff back to memory, or other swap partitions.'

User space thing really: you could add an option to swapoff(8) to loop
retrying (well, I think it would need to fork off a child to do the
sys_swapoff, fork another when that one gets OOM-killed; a bit messy,
I agree).

Hugh

-
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: 2005-03-22 14:02    [W:0.080 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site