lkml.org 
[lkml]   [1998]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Sound and floppy DMA problem in 2.0.35...
On Mon, 7 Sep 1998, Daniel Ryde wrote:
> Is there really no solution to these out of DMA memory problem in
> 2.0.35?
>
> $ say hello
> /dev/dsp: Out of memory
> $ mdir
> Can't open /dev/fd0: No such device or address
> Cannot initialize 'A:'
> $ dmesg
> [...]
> Sound error: Couldn't allocate DMA buffer
> floppy0: Unable to allocate DMA memory
> $ free
> total used free shared buffers cached
> Mem: 127820 124932 2888 27452 32276 68916
> -/+ buffers: 23740 104080
> Swap: 48380 176 48204
>
>
> Now I need to reboot to get it to working again... *sigh*

If you had at least 128 MB swap you could use the following small program to
flush the memory:

void *p = malloc(120*1024*1024);
memset(p, 0, 120*1024*1024);

Greetings,

Geert

--
Geert Uytterhoeven Geert.Uytterhoeven@cs.kuleuven.ac.be
Wavelets, Linux/{m68k~Amiga,PPC~CHRP} http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium

-
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/faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [from the cache]
©2003-2011 Jasper Spaans