Re: OOM behavior in constrained memory situations

From: Andi Kleen
Date: Tue Feb 07 2006 - 13:29:31 EST


On Tuesday 07 February 2006 19:19, Christoph Lameter wrote:

> @@ -1261,7 +1261,7 @@ struct page *alloc_pages_current(gfp_t g
> cpuset_update_task_memory_state();
> if (!pol || in_interrupt())
> pol = &default_policy;
> - gfp |= pol->gfp_flags;
> + gfp |= (pol->gfp_flags_high << 16);

Why don't you put it into zonelist_policy and pass a pointer to gfp
and then only do it for MPOL_BIND? The code should be similar because
it should be inline anyways (perhaps add a force_inline to be sure)

-Andi

-
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/