Re: [PATCH 1/1] selftests/mm: new test that steals pages

2024-01-10 Thread Breno Leitao
On Tue, Jan 09, 2024 at 09:47:31PM -0800, Andrew Morton wrote: > On Fri, 5 Jan 2024 07:54:19 -0800 Breno Leitao wrote: > > > This test stresses the race between of madvise(DONTNEED), a page fault > > and a parallel huge page mmap, which should fail due to lack of > > available page available for

Re: [PATCH 1/1] selftests/mm: new test that steals pages

2024-01-09 Thread Andrew Morton
On Fri, 5 Jan 2024 07:54:19 -0800 Breno Leitao wrote: > This test stresses the race between of madvise(DONTNEED), a page fault > and a parallel huge page mmap, which should fail due to lack of > available page available for mapping. > > This test case must run on a system with one and only one

[PATCH 1/1] selftests/mm: new test that steals pages

2024-01-05 Thread Breno Leitao
This test stresses the race between of madvise(DONTNEED), a page fault and a parallel huge page mmap, which should fail due to lack of available page available for mapping. This test case must run on a system with one and only one huge page available. # echo 1 > /sys/kernel/mm/hugepages/h