Re: CMA and zone watermarks
From: Marek Szyprowski
Date: Mon Oct 08 2012 - 20:37:14 EST
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
until it fails, and then tries GFP_ATOMIC. Without CMA, the GFP_ATOMIC
allocation succeeds, with CMA, it fails too.
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.
Best regards
--
Marek Szyprowski
Samsung Poland R&D Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/