Re: kmalloc() of 4MB causes "kernel BUG at slab.c:1542!"

From: Brian Pomerantz (bapper@piratehaven.org)
Date: Wed Jan 17 2001 - 15:17:19 EST


On Wed, Jan 17, 2001 at 01:54:20PM -0600, Rick Richardson wrote:
>
> [please cc me on any responses]
>
> Environment: 2.4.0 released, Pentium III with 256MB's of RAM.
> Problem: kmalloc() of 4M causes kernel message "kernel BUG at slab.c:1542"
>

The most you can kmalloc() is 128KB unless this has changed in the 2.4
kernel which I doubt. If you want a region of memory that large, use
vmalloc(). Of course, this doesn't guarantee a contiguous region.

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



This archive was generated by hypermail 2b29 : Tue Jan 23 2001 - 21:00:16 EST