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

Brian Pomerantz (bapper@piratehaven.org)
Wed, 17 Jan 2001 12:17:19 -0800


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/