[lkml]   [2001]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Break 2.4 VM in five easy steps
    On Wed, 6 Jun 2001, Andrew Morton wrote:
    > Yes. The sys_swapoff() system call can take many minutes

    > Haven't looked at it closely, but I think the algorithm
    > could become something like:
    > for (each process) {
    > for (each page in this process) {
    > if (page is on target swap device)
    > get_it_off()
    > }
    > }

    Substitute "mm" for "process". Yes, of course, that would be vastly
    better than the present way (or is there some gotcha? it's hard to
    understand why someone would choose to write it the way it is).

    However... don't forget that another of the current swap problems is
    pages being left in the swap cache after they've been unmapped from
    (all) their mms - those need to be dealt with too.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 12:54    [W:6.687 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site