Re: Linux machines dieing in swap storms



Rik van Riel <riel@xxxxxxxxxx> wrote:
On Thu, 25 Oct 2007 16:20:41 +0100
Richard Purdie <rpurdie@xxxxxxxxx> wrote:

Advice on solving this welcome preferably in mainline but I'll happily
hack my kernels with a workaround if need be.

I can't see any easy hacks or workarounds to fix the issue in the
current MM, except maybe activate the OOM killer if the amount of
page cache and buffer cache is really low and swap is full...

In the longer run, I'm working on:

http://linux-mm.org/PageReplacementDesign

What about only reclaimimn cache if the cache has grown beyond a watermark
and only reclaimimn non-cache if it's below another watermark? I can imagine
it will solve my diskcache-pushes-out-mousehandler problem, and I'm pretty
sure having very low file cache is bad for performance, too.

Another thing I can imagine is to detect thrashing conditions and to
change scheduling in order to increase the likehood of cache hits and
thereby progress: If an application just got a page, keep it running for
a while (accumulating negative credits).
--
"Of course, as admin, I can read all your email. But I am not THAT bored!"
-- unknown author in comp.unix.aix

Friß, Spammer: 9w@xxxxxxxxxxxxxxxxxxxx gNhwn@xxxxxxxxxxxxxxxxxxxxxxx
-
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/



Relevant Pages

  • Re: Flush SMB Cache on Windows Vista?
    ... I don't think that would be a viable workaround for us. ... the SMB cache on Windows Vista when SMB 2.0 is used for Windows ... Call _access or GetFileAttributes. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Flush SMB Cache on Windows Vista?
    ... fileserver, but I imagine similar behavior would occur in Win2008 if there aren't enough CALs installed on the server. ... I don't think that would be a viable workaround for us. ... the SMB cache on Windows Vista when SMB 2.0 is used for Windows ... Call _access or GetFileAttributes. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Deployed Support
    ... Some hosts also cache pages ... One other workaround is to make the browser think you are passing a variable in your links ... We push out updates for our website but the ...
    (microsoft.public.frontpage.programming)
  • Re: Linux machines dieing in swap storms
    ... happily hack my kernels with a workaround if need be. ... page cache and buffer cache is really low and swap is full... ... watermark and only reclaimimn non-cache if it's below another ...
    (Linux-Kernel)
  • Re: new PCI quirk for Toshiba Satellite?
    ... is a PCI quirk addition possible or do we have to use ... > the cache line size in addition to the other registers)? ... at least if the workaround resides in ohci1394. ... Stefan Richter ...
    (Linux-Kernel)