Re: [PATCH] mm/selftest: Add MAP_POPULATE test

2018-08-01 Thread Dmitry Safonov
On Wed, 2018-08-01 at 17:12 -0700, Andrew Morton wrote: > On Thu, 2 Aug 2018 00:36:36 +0100 Dmitry Safonov > wrote: > > > As many other projects, we use some shmalloc allocator. > > At some point we need to make a part of allocated pages back > > private to > > process. And it should be populate

Re: [PATCH] mm/selftest: Add MAP_POPULATE test

2018-08-01 Thread Dmitry Safonov
On Wed, 2018-08-01 at 18:02 -0600, Shuah Khan wrote: > Hi Dmitry, Hi Shuah, Thanks for the review, > > Thanks for the test. A few comments below. > > On 08/01/2018 05:36 PM, Dmitry Safonov wrote: > > As many other projects, we use some shmalloc allocator. > > At some point we need to make a pa

Re: [PATCH] mm/selftest: Add MAP_POPULATE test

2018-08-01 Thread Andrew Morton
On Thu, 2 Aug 2018 00:36:36 +0100 Dmitry Safonov wrote: > As many other projects, we use some shmalloc allocator. > At some point we need to make a part of allocated pages back private to > process. And it should be populated straight away. > Check that (MAP_PRIVATE | MAP_POPULATE) actually copi

Re: [PATCH] mm/selftest: Add MAP_POPULATE test

2018-08-01 Thread Shuah Khan
Hi Dmitry, Thanks for the test. A few comments below. On 08/01/2018 05:36 PM, Dmitry Safonov wrote: > As many other projects, we use some shmalloc allocator. > At some point we need to make a part of allocated pages back private to > process. And it should be populated straight away. > Check that

[PATCH] mm/selftest: Add MAP_POPULATE test

2018-08-01 Thread Dmitry Safonov
As many other projects, we use some shmalloc allocator. At some point we need to make a part of allocated pages back private to process. And it should be populated straight away. Check that (MAP_PRIVATE | MAP_POPULATE) actually copies the private page. Cc: Andrew Morton Cc: Dmitry Safonov <0x7f45