Re: Memory problems

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 4 May 1999 13:17:46 +0100 (BST)


> On a server where memory gets fragmented and some programs are running
> that request large amounts of RAM I often experience memory problems.

Its specifically ISA DMA memory

> kuolema!root(ttyp2):/usr/src/boot-floppies# dd if=resc1440.bin of=/dev/fd0
> dd: /dev/fd0: Device not configured
>
> Looking at syslog tells me that the problem is found inside of Linux
> memory management:
>
> May 2 11:02:35 kuolema kernel: floppy0: Unable to allocate DMA memory

With 2.2.x the problem is definitely worse, although I've still not figured
out why. You can run your floppy driver nonDMA if you want - not ideal
but works

> I have regularily experienced the same problem when working with
> cdrecord. It wasn't able to get enough memory for its buffer and
> therefore killing my writables.

Thats mostly down to poor design of the sg layer (well ok to be fair it
wasnt poor design at the time but it never caught up). The 2.2.7 kernel
has scatter gather I/O on the scsi generic which is way better than before.

The sound driver allows you to ask it to keep the DMA buffers allocated
(as it did in 2.0) (option dmabuf=1)

Alan

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