lkml.org 
[lkml]   [1997]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: 2.0.31-pre9 -- floppy0: Unable to allocate DMA memory
Date
SL Baur  <owner-linux-kernel@vger.rutgers.edu> wrote:
>
># superformat /dev/fd0
>Formatting cylinder 62, head 0 format: Out of memory
>
>(At this point I cranked up the values in /proc/sys/vm/freepages by
>hand from the values given in Documentation/memory-tuning.txt).
>
># free
> total used free shared buffers cached
>Mem: 63336 55160 8176 16976 13676 28868
>-/+ buffers/cache: 12616 50720
>Swap: 52380 0 52380
># cat /proc/sys/vm/freepages
>256 512 2048
>
># superformat /dev/fd0
>open: No such device or address
>
>(And the error message in the Subject: appears in syslog).
>
>This is the first kernel I've ever built for this machine that has the
>floppy disk driver _built in_ (not a module). Should that make a
>difference? How do I recover from this?

I've been getting these messages forever (it appears that IP forwarding
makes it worse), however with pre-9 it seems to be especially bad. I
have this problem while accessing the floppy, and while accessing the
sound card (procmail makes a noise when I get mail from certain people,
and this then fails):

Sep 15 09:23:01 pcpaul kernel: Sound error: Couldn't allocate DMA buffer

Running a silly program to swap just about everything out helps to
recover from this (temporarily); however I'd like to see a permanent
fix to this problem.

The program I use is:

main()
{
char *p;
int i;

p = malloc(40*1024*1024); /* I have 40 MB */
for (i = 0; i < 40960; i++) {
*p = 1; /* make it dirty */
p += 1024;
}
}


Paul Slootman
--
Murphy Software, Enschede, The Netherlands | Most people would die
email work: paul@wau.mis.ah.nl / paul@murphy.nl | sooner than think --
email home: paul@wurtel.demon.nl | in fact, they do so.
http://www.wurtel.demon.nl | - Bertrand Russell

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.034 / U:0.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site