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

From: William Lee Irwin III (wli_at_holomorphy.com)
Date: 09/07/04

  • Next message: Con Kolivas: "Re: sched_setaffinity(), RT priorities and migration thread usage at 30%"
    Date:	Mon, 6 Sep 2004 15:48:30 -0700
    To: Ray Bryant <raybry@sgi.com>
    
    

    On Mon, Sep 06, 2004 at 02:11:29PM -0500, Ray Bryant wrote:
    > What is unexpected is that the amount of swap space used at a particular
    > swappiness setting varies dramatically with the kernel version being
    > tested, in spite of the fact that the basic swap_tendency calculation in
    > refile_ianctive_zone() is unchanged. (Other, subtle changes in the vm as a
    > whole and this routine in particular clearly effect the impact of that
    > computation.)
    > For example, at a swappiness value of 0, Kernel 2.6.5 swapped out 0 bytes,
    > whereas Kernel 2.6.9-rc1-mm3 swapped out 10 GB. Similarly, most kernels
    > have a significant change in behavior for swappiness values near 100, but
    > for SLES9 the change point occurs at swappness=60.
    > A scan of the change logs for swappiness related changes shows nothing that
    > might explain these changes. My question is: "Is this change in behavior
    > deliberate, or just a side effect of other changes that were made in the
    > vm?" and "What kind of swappiness behavior might I expect to find in future
    > kernels?".

    IIRC no deliberate /proc/sys/vm/swappiness semantic changes were merged.
    The policy tweakers have something to answer for here unless some stats
    they rely upon have since been flubbed. Logging periodic snapshots of
    /proc/vmstat for these benchmarks may be helpful to implicate specific
    statistics' bungling or rule out statistic miscalculation as causes.

    -- wli
    -
    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: Con Kolivas: "Re: sched_setaffinity(), RT priorities and migration thread usage at 30%"

    Relevant Pages

    • Re: OOM killer gripe (was Re: What still uses the block layer?)
      ... so much unless you do want the kernel to actually use it all, ... I tend to lower "swappiness" and when that happens all sorts of stuff goes ... Software suspend used to say says it can't free enough memory if I ... never triggered before hard deadlock. ...
      (Linux-Kernel)
    • 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: swapping and the value of /proc/sys/vm/swappiness
      ... So for this one testcase it is being beneficial. ... decreasing the "swappiness" value does not seem to make much of a difference: ... Kernel Version 2.6.8.1-mm4: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: /proc/sys/vm/swappiness == 0 makes OOM killer go beserk
      ... > tmpfs the kernel found ~250 MB of unused memory which it swapped out ... > during the last days with swappiness == 0. ... swap at all but this value decreases the swapping. ...
      (Linux-Kernel)
    • Re: Limiting program swap
      ... >> buffers, dcache, and similar things? ... swappiness and we start swapping. ... issues yet to be resolved in the latest mainline trees. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)