Re: rmap.c: try_to_unmap_file(): VM_LOCKED not respected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I first use mmap(MAP_LOCKED) and then
remap_file_pages.
This should set VM_LOCKED in the vma.

-li

--- William Lee Irwin III <[email protected]> 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 [email protected]
> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux