Re: CMA and zone watermarks

2012-10-09 Thread Rabin Vincent
Hi Marek, Minchan, 2012/10/9 Marek Szyprowski : > Could You run your test with latest linux-next kernel? There have been some > patches merged to akpm tree which should fix accounting for free and free > cma pages. I hope it should fix this issue. I've tested with the mentioned patches (which see

Re: CMA and zone watermarks

2012-10-08 Thread Marek Szyprowski
Hello, On 10/9/2012 7:07 AM, Minchan Kim wrote: On Tue, Oct 09, 2012 at 06:53:29AM +0200, Marek Szyprowski wrote: Hello, On 10/9/2012 6:43 AM, Minchan Kim wrote: On Tue, Oct 09, 2012 at 05:12:21AM +0200, Marek Szyprowski wrote: On 10/9/2012 5:10 AM, Minchan Kim wrote: On Mon, Oct 08, 2012 a

Re: CMA and zone watermarks

2012-10-08 Thread Minchan Kim
On Tue, Oct 09, 2012 at 06:53:29AM +0200, Marek Szyprowski wrote: > Hello, > > On 10/9/2012 6:43 AM, Minchan Kim wrote: > >On Tue, Oct 09, 2012 at 05:12:21AM +0200, Marek Szyprowski wrote: > >>On 10/9/2012 5:10 AM, Minchan Kim wrote: > >>>On Mon, Oct 08, 2012 at 05:41:14PM +0200, Rabin Vincent wro

Re: CMA and zone watermarks

2012-10-08 Thread Marek Szyprowski
Hello, On 10/9/2012 6:43 AM, Minchan Kim wrote: On Tue, Oct 09, 2012 at 05:12:21AM +0200, Marek Szyprowski wrote: On 10/9/2012 5:10 AM, Minchan Kim wrote: On Mon, Oct 08, 2012 at 05:41:14PM +0200, Rabin Vincent wrote: Fortunately, recently, Bart sent a patch about that. http://marc.info/?l=

Re: CMA and zone watermarks

2012-10-08 Thread Minchan Kim
On Tue, Oct 09, 2012 at 05:12:21AM +0200, Marek Szyprowski wrote: > Hello, > > On 10/9/2012 5:10 AM, Minchan Kim wrote: > > >On Mon, Oct 08, 2012 at 05:41:14PM +0200, Rabin Vincent wrote: > >>It appears that when CMA is enabled, the zone watermarks are not properly > >>respected, leading to for e

Re: CMA and zone watermarks

2012-10-08 Thread Marek Szyprowski
Hello, On 10/9/2012 5:10 AM, Minchan Kim wrote: On Mon, Oct 08, 2012 at 05:41:14PM +0200, Rabin Vincent wrote: It appears that when CMA is enabled, the zone watermarks are not properly respected, leading to for example GFP_NOWAIT allocations getting access to the high pools. I ran the followi

Re: CMA and zone watermarks

2012-10-08 Thread Minchan Kim
Hello, On Mon, Oct 08, 2012 at 05:41:14PM +0200, Rabin Vincent wrote: > It appears that when CMA is enabled, the zone watermarks are not properly > respected, leading to for example GFP_NOWAIT allocations getting access to the > high pools. > > I ran the following test code which simply allocates

Re: CMA and zone watermarks

2012-10-08 Thread Marek Szyprowski
Hello, On 10/8/2012 5:41 PM, Rabin Vincent wrote: It appears that when CMA is enabled, the zone watermarks are not properly respected, leading to for example GFP_NOWAIT allocations getting access to the high pools. I ran the following test code which simply allocates pages with GFP_NOWAIT unti

CMA and zone watermarks

2012-10-08 Thread Rabin Vincent
It appears that when CMA is enabled, the zone watermarks are not properly respected, leading to for example GFP_NOWAIT allocations getting access to the high pools. I ran the following test code which simply allocates pages with GFP_NOWAIT until it fails, and then tries GFP_ATOMIC. Without CMA, t