Re: Tasklet doubt!

From: Robert Love (rml@tech9.net)
Date: Fri Apr 11 2003 - 11:31:42 EST


On Fri, 2003-04-11 at 12:19, Sriram Narasimhan wrote:

> How much of memory can be allocated from a tasklet ? [ kmalloc
> (GFP_ATOMIC) ].

It depends. Asking for 2.5MB of GFP_ATOMIC is a lot.

Perhaps you should use the keventd task queue, which runs in process
context and thus sleeps. You can allocate using kmalloc(GFP_KERNEL) or
even vmalloc().

        Robert Love

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:23 EST