Re: swapping and the value of /proc/sys/vm/swappiness

From: Ray Bryant (raybry_at_sgi.com)
Date: 09/06/04

  • Next message: Alan Cox: "Re: [2.6.7] kernel BUG at fs/jbd/transaction.c:1227!"
    Date:	Mon, 06 Sep 2004 16:22:07 -0500
    To: Andrew Morton <akpm@osdl.org>
    
    

    Andrew Morton wrote:

    >
    > That being said, your tests are interesting. There's a wide spread of
    > results across different kernel versions and across different swappiness
    > settings. But the question is: which behaviour is correct for your users,
    > and why?
    >

    Andrew,

    Behavior more like that of 2.6.5 and 2.6.6 is what we would like to see, I
    think. We have had problems in the past with a single large HPC application
    that runs for a long time then wants to push its data out quickly. What
    happens to us in 2.4.21 is that the page cache pages swap out the user pages,
    and that is somethine we would like to avoid, since it can reduce the data
    rate significantly.

    We were planning on suggesting that such users set swappiness=0 to give
    user pages priority over the page cache pages. But it doesn't look like that
    works very well in the more recent kernels.

    One (perhaps) desirable feature would be for intermediate values of swappiness
    to have behavior in between the two extremes (mapped pages have higher
    priority vs page cache pages having priority over unreferenced mapped pages),
    so that one would have finer grain control over the amount of swap used. I'm
    not sure how to achieve such a goal, however. :-)

    On a separate issue, the response to my proposal for a mempolicy to control
    allocation of page cache pages has been <ahem> underwhelming.

    (See: http://marc.theaimsgroup.com/?l=linux-mm&m=109416852113561&w=2
      and http://marc.theaimsgroup.com/?l=linux-mm&m=109416852416997&w=2 )

    I wonder if this is because I just posted it to linux-mm or its not fleshed
    out enough yet to be interesting?

    Thanks,

    -- 
    Best Regards,
    Ray
    -----------------------------------------------
                       Ray Bryant
    512-453-9679 (work)         512-507-7807 (cell)
    raybry@sgi.com             raybry@austin.rr.com
    The box said: "Requires Windows 98 or better",
                so I installed Linux.
    -----------------------------------------------
    -
    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/
    

  • Next message: Alan Cox: "Re: [2.6.7] kernel BUG at fs/jbd/transaction.c:1227!"

    Relevant Pages

    • swapping and the value of /proc/sys/vm/swappiness
      ... cache, and the data rates for the dd's. ... The benchmark was repeated for swappiness values of 0, 20, 40, ... What is unexpected is that the amount of swap space used at a particular ... whereas Kernel 2.6.9-rc1-mm3 swapped out 10 GB. ...
      (Linux-Kernel)
    • Re: Cached memory never gets released
      ... Stock linux 2.4.26 kernel. ... Due to flash bug 3M of memory gets lost due to font memory getting lost ... The output of "free" cache number steadily grows. ... longer to exhaust all of system memory with the cache. ...
      (Linux-Kernel)
    • Re: silent semantic changes with reiser4
      ... |>fixed ammount of space for disk cache is bad, ... kernel interface that then turns around and calls a userland daemon? ... one cache manager, the way there is exactly one VM manager for Linux. ...
      (Linux-Kernel)
    • Re: IIS 6.0 Not Caching Images
      ... There is a known bug where if a 204/304 is fulfilled from the kernel ... regardless if it is fulfilled from the kernel response cache or not. ... request is cached in kernel mode (in addition to using WFetch to make the ... server or not -- you need perfmon to determine. ...
      (microsoft.public.inetserver.iis)
    • RE: IDS 10.0 performance on RedHat
      ... array cache in case of a power failure. ... at least for Informix. ... Starting with kernel 2.6, two new ... files and block devices, ...
      (comp.databases.informix)