Currently a node has two sets of zonelists, one for each zone type in the
system and a second set for GFP_THISNODE allocations. Based on the zones
allowed by a gfp mask, one of these zonelists is selected. All of these
zonelists consume memory and occupy cache lines.
This patch replaces the
Currently a node has two sets of zonelists, one for each zone type in the
system and a second set for GFP_THISNODE allocations. Based on the zones
allowed by a gfp mask, one of these zonelists is selected. All of these
zonelists consume memory and occupy cache lines.
This patch replaces the
Hi
> +static inline enum zone_type gfp_zonelist(gfp_t flags)
> +{
> + if (NUMA_BUILD && unlikely(flags & __GFP_THISNODE))
> + return 1;
> +
> + return 0;
> +}
> +
static inline int gfp_zonelist(gfp_t flags) ?
if not, why no use ZONE_XXX macro.
kosaki
-
To
Currently a node has two sets of zonelists, one for each zone type in the
system and a second set for GFP_THISNODE allocations. Based on the zones
allowed by a gfp mask, one of these zonelists is selected. All of these
zonelists consume memory and occupy cache lines.
This patch replaces the
Currently a node has two sets of zonelists, one for each zone type in the
system and a second set for GFP_THISNODE allocations. Based on the zones
allowed by a gfp mask, one of these zonelists is selected. All of these
zonelists consume memory and occupy cache lines.
This patch replaces the
Hi
+static inline enum zone_type gfp_zonelist(gfp_t flags)
+{
+ if (NUMA_BUILD unlikely(flags __GFP_THISNODE))
+ return 1;
+
+ return 0;
+}
+
static inline int gfp_zonelist(gfp_t flags) ?
if not, why no use ZONE_XXX macro.
kosaki
-
To unsubscribe from this
6 matches
Mail list logo