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

From: William Lee Irwin III
Date: Tue Jun 14 2005 - 00:24:02 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/