[lkml]   [2008]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [patch 00/19] VM pageout scalability improvements
    On Thu, 03 Jan 2008 11:52:08 -0500
    Lee Schermerhorn <> wrote:

    > Also, I should point out that the full noreclaim series includes a
    > couple of other patches NOT posted here by Rik:
    > 1) treat swap backed pages as nonreclaimable when no swap space is
    > available. This addresses a problem we've seen in real life, with
    > vmscan spending a lot of time trying to reclaim anon/shmem/tmpfs/...
    > pages only to find that there is no swap space--add_to_swap() fails.
    > Maybe not a problem with Rik's new anon page handling.

    If there is no swap space, my VM code will not bother scanning
    any anon pages. This has the same effect as moving the pages
    to the no-reclaim list, with the extra benefit of being able to
    resume scanning the anon lists once swap space is freed.

    > 2) treat anon pages with "excessively long" anon_vma lists as
    > nonreclaimable. "excessively long" here is a sysctl tunable parameter.
    > This also addresses problems we've seen with benchmarks and stress
    > tests--all cpus spinning on some anon_vma lock. In "real life", we've
    > seen this behavior with file backed pages--spinning on the
    > i_mmap_lock--running Oracle workloads with user counts in the few
    > thousands. Again, something we may not need with Rik's vmscan rework.
    > If we did want to do this, we'd probably want to address file backed
    > pages and add support to bring the pages back from the noreclaim list
    > when the number of "mappers" drops below the threshold. My current
    > patch leaves anon pages as non-reclaimable until they're freed, or
    > manually scanned via the mechanism introduced by patch 12.

    I can see some issues with that patch. Specifically, if the threshold
    is set too high no pages will be affected, and if the threshold is too
    low all pages will become non-reclaimable, leading to a false OOM kill.

    Not only is it a very big hammer, it's also a rather awkward one...

    All Rights Reversed

     \ /
      Last update: 2008-01-03 18:03    [W:0.022 / U:13.420 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site