[PATCH] 0/2 swap token tuning

From: Rik Van Riel (riel_at_redhat.com)
Date: 06/27/05

  • Next message: Rik Van Riel: "[PATCH] 1/2 swap token tuning"
    Date:	Sun, 26 Jun 2005 18:34:14 -0400 (EDT)
    To: linux-kernel@vger.kernel.org
    
    

    A while ago the swap token (aka token based thrashing control)
    mechanism was introduced into Linux. This code improves performance
    under heavy VM loads, but can reduce performance under very light
    VM loads.

    The cause turns out to be me overlooking something in the original
    token based thrashing control paper: the swap token is only supposed
    to be enforced while the task holding the swap token is paging data
    in, not while the task is running (and referencing its working set).

    The temporary solution in Linux was to disable the swap token code
    and have users turn it on again via /proc. The following patch
    instead approximates the "only enforce the swap token if the task
    holding it is swapping something in" idea. This should make sure
    the swap token is effectively disabled when the VM load is low.

    I have not benchmarked these patches yet; instead, I'm posting
    them before the weekend is over, hoping to catch a bit of test
    time from others while my own tests are being run ;)

    -- 
    The Theory of Escalating Commitment: "The cost of continuing mistakes is
    borne by others, while the cost of admitting mistakes is borne by yourself."
      -- Joseph Stiglitz, Nobel Laureate in Economics
    -
    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: Rik Van Riel: "[PATCH] 1/2 swap token tuning"

    Relevant Pages

    • Re: [PATCH] 0/2 swap token tuning
      ... On Sunday 26 June 2005 18:34, Rik Van Riel wrote: ... > under heavy VM loads, but can reduce performance under very light ... > token based thrashing control paper: the swap token is only supposed ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
      ... loads) relative to Linux. ... the page is exported by kernel which can be executed by userland. ... tails off by about 33% at higher loads compared to unpatched. ... Fixing one of big lock contentions is not enough, ...
      (freebsd-current)
    • Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
      ... loads) relative to Linux. ... the page is exported by kernel which can be executed by userland. ... tails off by about 33% at higher loads compared to unpatched. ... Fixing one of big lock contentions is not enough, ...
      (freebsd-performance)
    • Re: [kde] Konq slow
      ... I'm still tearing my hair out on ebay page downloads. ... linux browsers I've tried hang waiting for these sections. ... Run windoze on the same machine and of course the whole thing loads ... Jeff in London UK ...
      (KDE)
    • Re: Nvidia kernel module
      ... > software), I decided to move back to FreeBSD 4.10, where I feel the most ... I have the Nvidia driver installed and a properly ... /usr/local/etc/rc.d/ so it loads late in the process. ... this ain't linux, but YMMV. ...
      (comp.unix.bsd.freebsd.misc)