[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: want help with sound card...



> debian:~/sounds/sndkit/dsp$ cat /usr/X11R6/lib/tkdesk/sound/metal.au >/dev/audio
> bash: /dev/audio: Cannot allocate memory
> 
> 	I've configured for a 4K (4096) buffer. When I run dmesg, here's
> 	 what pops up:
> 
> Sound error: Couldn't allocate DMA buffer
[ ... ]
> 	/proc/memstat seems to indicate I have plenty of room to spare:
> 
>         total:    used:    free:  shared: buffers:  cached:
> Mem:  31764480 31096832   667648 28934144   675840 14417920
> Swap: 91344896  5373952 85970944
> MemTotal:     31020 kB
> MemFree:        652 kB
> MemShared:    28256 kB
> Buffers:        660 kB
> Cached:       14080 kB
> SwapTotal:    89204 kB
> SwapFree:     83956 kB

Believe it or not, you are out of memory to allocate the DMA buffer.  This
annoys the heck out of me because the kernel doesn't move data to swap or
free up cache to allocate a DMA buffer.  It seems that you must have
MemFree at a reasonable level.  Try starting netscape (or another memory
hog) and then exiting to push some stuff out to swap, then try the cat.

Good luck,
Brandon

+---                                                              ---+
| Brandon Mitchell * bhmit1@mail.wm.edu * http://bhmit1.home.ml.org/ |
|  Sometimes you have to release software with bugs. - MS Recruiter  |



Reply to: