Thread (11 messages) read the whole thread 11 messages, 5 authors, 2014-09-17

Re: Best way to pin a page in ext4?

From: Christoph Lameter <hidden>
Date: 2014-09-16 18:34:40
Also in: linux-mm

On Tue, 16 Sep 2014, Theodore Ts'o wrote:
quoted
It doesn't seem unreasonable to just grab an extra refcount on the pages
when they are first loaded.
Well yes, but using mlock_vma_page() would be a bit more efficient,
and technically, more correct than simply elevating the refcount.
mlocked pages can be affected by page migration. They are not
pinned since POSIX only says that the pages must stay in memory. So the OS
is free to move them around physical memory.

Pinned pages have an elevated refcount. Note also Peter Zijlstra's
recent work on pinned pages.

https://lkml.org/lkml/2014/5/26/345

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help