From: laurent.ml@linuxfr.org
To: alsa-devel@lists.sourceforge.net
Subject: Re: Re: [Alsa-user] sb live dma buffer alloc failure?
Date: Sat, 08 Feb 2003 17:10:02 +0000 [thread overview]
Message-ID: <wazza.87znp6pul1.fsf@message.id> (raw)
In-Reply-To: <3E440D06.8090803@ece.cornell.edu> ("Brian J. Tarricone"'s message of "Fri, 07 Feb 2003 14:46:14 -0500")
"Brian J. Tarricone" <bjt23@ece.cornell.edu> writes:
Hi,
I made some tests.
The config was:
- HIGHMEM kernel 2.4.21pre4
- amd athlon xp+ 1800, RAM=1Go
- alsa drv rc7
- alsa lib rc7
- alsa utils rc6 (rc7 utils don't compile here)
- xmms 1.2.7 (debian sid)
- alsa-xmms (ALSA 0.9 output plugin for XMMS) 0.9.8 (debian sid)
I couldn't reproduce the problem from a fresh reboot, so I tried to simulate
a high memory usage.
the tests were:
sh -c 'a=1; while true; do echo $a; a=$(($a+1)); aplay ~/empty.wav ; done' and
sh -c 'a=1; while true; do echo $a; a=$(($a+1)); xmms ~/empty.wav ; done'
empty.wav is a ~200ms silence file.
the xmms test was done 2 times, the first time with Oss driver output, and
the second time with Alsa 0.9 driver output.
I didn't mention it before, but I was using xmms + alsa 0.9 driver output
when I got the problem. What about you Brian ?
I was not able to reproduce the problem with both aplay and xmms(oss driver)
loops. Both of them were able to run in these memory usages:
Mem: 1033824k total, 808256k used, 225568k free, 21428k buffers
Swap: 530104k total, 527296k used, 2808k free, 85520k cached
Mem: 1033824k total, 1017000k used, 16824k free, 3068k buffers
Swap: 530104k total, 529276k used, 828k free, 26752k cached
whereas the xmms(alsa drv) loop gave:
ALSA lib pcm_hw.c:297:(snd_pcm_hw_hw_params) SNDRV_PCM_IOCTL_HW_PARAMS failed: Cannot allocate memory
2.4.21pre4 don't produce kernel error, whereas 2.4.21pre4aa1 gives
"kernel: __alloc_pages: 0-order allocation failed (gfp=0x21/0)" kind of error.
After the xmms(alsa output) problem, I was able to rmmod alsa modules, then
reload them.
--
Laurent
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
next prev parent reply other threads:[~2003-02-08 17:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3E40BA0F.9070600@ece.cornell.edu>
2003-02-07 11:56 ` [Alsa-user] sb live dma buffer alloc failure? Takashi Iwai
2003-02-07 19:46 ` Brian J. Tarricone
2003-02-08 17:10 ` laurent.ml [this message]
2003-02-10 12:09 ` Takashi Iwai
2003-02-12 23:00 ` Brian J. Tarricone
2003-02-13 8:56 ` Takashi Iwai
[not found] ` <wazza.87d6m6he5z.fsf@message.id>
2003-02-07 11:58 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wazza.87znp6pul1.fsf@message.id \
--to=laurent.ml@linuxfr.org \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.