Re: [PATCH 12/17] mm: sys_remap_anon_pages

2014-10-06 Thread Andrea Arcangeli
Hi, On Sat, Oct 04, 2014 at 06:13:27AM -0700, Andi Kleen wrote: > Andrea Arcangeli writes: > > > This new syscall will move anon pages across vmas, atomically and > > without touching the vmas. > > > > It only works on non shared anonymous pages because those can be > > relocated without generat

Re: [PATCH 12/17] mm: sys_remap_anon_pages

2014-10-04 Thread Andi Kleen
Andrea Arcangeli writes: > This new syscall will move anon pages across vmas, atomically and > without touching the vmas. > > It only works on non shared anonymous pages because those can be > relocated without generating non linear anon_vmas in the rmap code. ... > It is an alternative to mrem

[PATCH 12/17] mm: sys_remap_anon_pages

2014-10-03 Thread Andrea Arcangeli
This new syscall will move anon pages across vmas, atomically and without touching the vmas. It only works on non shared anonymous pages because those can be relocated without generating non linear anon_vmas in the rmap code. It is the ideal mechanism to handle userspace page faults. Normally the