lkml.org 
[lkml]   [2005]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC] cleanup of use-once
    On Tue, 3 May 2005, Nikita Danilov wrote:

    > So file system pages never get to the active list? Hmm... this doesn't
    > sound right.

    Yes they will, I changed vmscan.c to compensate.

    > > + if (referenced) {
    > > + /* New page. Let's see if it'll get used again... */
    > > + if (TestClearPageNew(page))
    > > + goto keep_locked;
    > > goto activate_locked;
    > > + }
    >
    > This will screw scanning most likely: no referenced page is ever
    > reclaimed unless lowest scanning priority is reached---this looks like
    > sure way to oom and has capacity to increase CPU consumption
    > significantly.

    Doubtful, the VM always manages to clear the referenced bits
    faster than they can be set, especially on pages that aren't
    even mapped!

    The problem you describe should be a lot worse for mapped
    pages, where we already do not run into the problem, despite
    the VM taking no precautions.

    --
    "Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are,
    by definition, not smart enough to debug it." - Brian W. Kernighan
    -
    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/

    \
     
     \ /
      Last update: 2005-05-04 20:01    [W:2.601 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site