Re: [RFC][PATCH] Anonymous shared memory (ashmem) subsystem

From: Christoph Lameter
Date: Tue Jul 19 2011 - 10:34:13 EST


On Mon, 18 Jul 2011, John Stultz wrote:

> Additionally, ashmem introduces the concept of page pinning. Pinned pages (the
> default) behave like any anonymous memory. Unpinned pages are available to the
> kernel for eviction during VM pressure. When repinning the pages, the return
> value instructs user-space as to any eviction. In this manner, user-space
> processes may implement caching and similar resource management that
> efficiently integrates with kernel memory management.

Memory locking (mlock) may be a better term to use here. mlock prevents
eviction. Page pinning also prevents the movement of the pages in memory
(as needed by page migration, compaction etc).

--
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/