lkml.org 
[lkml]   [2005]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: rmap.c: try_to_unmap_file(): VM_LOCKED not respected
I first use mmap(MAP_LOCKED) and then
remap_file_pages.
This should set VM_LOCKED in the vma.

-li

--- William Lee Irwin III <wli@holomorphy.com> wrote:

> On Mon, Jun 13, 2005 at 10:14:05PM -0700, li nux
> wrote:
> > My application is using remap_file_pages and
> mlocks
> > those pages.
> > So in the code of try_to_unmap_file (see below),
> > I should never reach the call to
> try_to_unmap_cluster,
> > because for those pages VM_LOCKED is always set.
> > But, under heavy load I am seeing
> try_to_unmap_cluster
> > is getting called. Stack:
>
> Does your app use remap_file_pages() before mlock()?
>
> If so, the VM may be trying to reclaim pages between
> the call to
> remap_file_pages() and the call to mlock().
>
>
> -- wli
> -
> 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/
>




__________________________________
Discover Yahoo!
Have fun online with music videos, cool games, IM and more. Check it out!
http://discover.yahoo.com/online.html
-
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-06-14 07:52    [W:0.085 / U:0.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site