Re: [PATCH] gfp: GFP_RECLAIM_MASK should include __GFP_NO_KSWAPD

Michal Hocko
2015-10-14T08:38:37Z

On Wed 14-10-15 16:17:31, Pan Xinhui wrote:
[...]
> I have a look at Mel's patchset. yes, it can help fix my kswapd issue.
> :) So I just need change my kmalloc's gfp_flag to GFP_ATOMIC &~
> __GFP_KSWAPD_RECLAIM, then slub will not wakeup kswpad.

As pointed out in my other email __GFP_ATOMIC would be more appropriate
because you shouldn't abuse memory reserves which are implicitly used
for GFP_ATOMIC requests.

--
Michal Hocko
SUSE Labs