lkml.org 
[lkml]   [2010]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: mlock'ed pages are paging out to shared mapped files?
From
Date
On Fri, 2010-11-26 at 11:25 -0500, Bob Walters wrote:
>
> Please CC directly, I'm not subscribed.
>
> I'm writing to determine if observed mlock behavior is a bug or the
> intended implementation. The kernel seems to be paging out
> modifications made to locked pages of a shared (MAP_SHARED) memory
> mapped regular file, on Linux 2.6.35.6-48 (Fedora 14 distro, x86_64).
> Man pages implies that this might be a bug. I have a repeatable
> process involving the following test:

That's not paged-out, its a shared mapping (ie a mapped file), you dirty
the pages, we clean them by writing them out to disk.

That is the expected behaviour, if the man-page implies anything else
its bonkers.


\
 
 \ /
  Last update: 2010-11-26 17:39    [W:0.016 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site