[PATCH 4/6] Use two zonelist that are filtered by GFP mask

2007-12-11 Thread Mel Gorman
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

[PATCH 4/6] Use two zonelist that are filtered by GFP mask

2007-12-11 Thread Mel Gorman
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

Re: [PATCH 4/6] Use two zonelist that are filtered by GFP mask

2007-11-20 Thread 小崎資広
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

[PATCH 4/6] Use two zonelist that are filtered by GFP mask

2007-11-20 Thread Mel Gorman
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

[PATCH 4/6] Use two zonelist that are filtered by GFP mask

2007-11-20 Thread Mel Gorman
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

Re: [PATCH 4/6] Use two zonelist that are filtered by GFP mask

2007-11-20 Thread 小崎資広
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