Re: [patch v2 1/3] mm: remove GFP_THISNODE
From: Christoph Lameter <hidden>
Date: 2015-02-27 22:53:22
Also in:
cgroups, linux-mm, lkml
From: Christoph Lameter <hidden>
Date: 2015-02-27 22:53:22
Also in:
cgroups, linux-mm, lkml
On Fri, 27 Feb 2015, David Rientjes wrote:
+/* + * Construct gfp mask to allocate from a specific node but do not invoke reclaim + * or warn about failures. + */
We should be triggering reclaim from slab allocations. Why would we not do this? Otherwise we will be going uselessly off node for slab allocations.
+static inline gfp_t gfp_exact_node(gfp_t flags)
+{
+ return (flags | __GFP_THISNODE | __GFP_NOWARN) & ~__GFP_WAIT;
+}
#endifReclaim needs to be triggered. In particular zone reclaim was made to be triggered from slab allocations to create more room if needed. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>