Re: kernel: kmalloc of too large block

Peter Syrowatka (syro@mycity.at)
Mon, 29 Mar 1999 16:40:06 +0200


dstein@phoenixcontact.com wrote:
>
> Hi
>
> I got some problems with my AHA2940-U2W controllers. I know, it belongs
> more to linux-scsi, but I posted it there but got no answer until now.
> The added messages are out of /var/log/warn and /var/log/messages; can
> anyone explain the "kmalloc"-messages to me? The problem appears
> under high load; I got two stripes on two 2940-U2W. The second one works
> fine, but the first one breaks under high I/O-load (copying files etc.).
> My system is a SMP with two PII-400, 1 GB RAM and three U2W-cards, running
> SuSE 6.0 (kernel 2.0.36). I added the latest aic7xxx-driver to the kernel
> but that did not help.
> Any suggestions?
>

maximum size of memory you can allocate with kmalloc (in one piece)
is (131.072 - 16) byte (see mm/kmalloc.c)

its may be a bug in the aic7xxx-driver ...
they don't check the size they try to allocate ?

>
> Mar 29 06:16:46 lx01 kernel: kmalloc of too large a block (209284 bytes).
> Mar 29 06:16:46 lx01 kernel: kmalloc of too large a block (209280 bytes).
> Mar 29 06:16:46 lx01 kernel: kmalloc of too large a block (209272 bytes).
> Mar 29 06:16:46 lx01 kernel: kmalloc of too large a block (209200 bytes).
> Mar 29 06:16:46 lx01 kernel: kmalloc of too large a block (160048 bytes).
> Mar 29 06:16:46 lx01 kernel: kmalloc of too large a block (209236 bytes).
> Mar 29 06:16:46 lx01 kernel: kmalloc of too large a block (209232 bytes).
> Mar 29 06:16:46 lx01 kernel: kmalloc of too large a block (209224 bytes).
> Mar 29 06:16:46 lx01 kernel: kmalloc of too large a block (209152 bytes).
> Mar 29 06:16:46 lx01 kernel: kmalloc of too large a block (160000 bytes).
> Mar 29 06:16:46 lx01 kernel: kmalloc of too large a block (160000 bytes).

-- 
SYRO

Anything that is good and useful is made of chocolate.

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