[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?
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 (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.032 / U:4.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site