Re: Google's mm problem - not reproduced on 2.4.13

Linus Torvalds
2001-11-03T00:20:03Z

In article <20011102222754.2366f1f5.skraw@ithnet.com>,
Stephan von Krawczynski <skraw@ithnet.com> wrote:
>
>> - /* Don't swap out areas which are locked down */
>> - if (vma->vm_flags & (VM_LOCKED|VM_RESERVED))
>> + /* Don't swap out areas which are reserved */
>> + if (vma->vm_flags & VM_RESERVED)
>> return count;
>
>Although I agree what you said about differences of old and new VM, I believe
>the above was not really what Ben intended to do by mlocking. I mean, you swap
>them out right now, or not?

Not. See where I added the VM_LOCKED test - deep down in the page-out
code it will decide that a VM_LOCKED page is always accessed, and will
move it to the active list instead of swapping it out.

Linus