On Tue, May 27, 2014 at 01:50:47PM +0200, Vlastimil Babka wrote: > > What if VM_PINNED will require VM_LOCKED? > > I.e. user must mlock it before pining and cannot munlock vma while it's pinned. > > Mlocking makes sense, as pages won't be uselessly scanned on > non-evictable LRU, no? (Or maybe I just don't see that something else > prevents then from being there already). We can add VM_PINNED logic to page_check_reference() and try_to_unmap_one() to avoid the scanning if that's a problem. But that's additional bits. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>