Re: [RFC][PATCH 1/4] checkpoint-restart: general infrastructure

From: Dave Hansen
Date: Fri Aug 08 2008 - 18:17:50 EST


On Fri, 2008-08-08 at 16:59 -0400, Oren Laadan wrote:
> To avoid repetitive malloc/free, ctx->hbuf is a buffer to host headers
> as they are read;

kmalloc/kfree() area really, really fast. I wonder if the code gets
easier or harder to read if we just alloc/free as we need to.

How large are these allocations, usually? Will stack allocation work in
most cases?

-- Dave

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