Re: [PATCH 04/10] mm: slub: add knowledge of reserve pages

From: Christoph Lameter
Date: Wed Aug 08 2007 - 13:57:38 EST


On Wed, 8 Aug 2007, Andrew Morton wrote:

> 3. Perform page reclaim from hard IRQ context. Pretty simple to
> implement, most of the work would be needed in the rmap code. It might be
> better to make it opt-in via a new __GFP_flag.

In a hardirq context one is bound to a processor and through the slab
allocator to a slab from which one allocates objects. The slab is per cpu
and so the slab is reserved for the current context. Nothing can take
objects away from it. The modifications here would not be needed for that
context.

I think in general irq context reclaim is doable. Cannot see obvious
issues on a first superficial pass through rmap.c. The irq holdoff would
be pretty long though which may make it unacceptable.

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