View previous topic :: View next topic |
Author |
Message |
volumen1 Guru
Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Sat Oct 16, 2004 6:37 am Post subject: Xmms skips and "warbles" under high disk load |
|
|
Allright, this isn't anything new with me, but I always blamed my XMMS problems on my old hardware. But, I recently built myself a new desktop. It's a dual Opteron system with a 3ware hardware RAID10. So, it should handle itself fairly well.
Anyway, when I listen to mp3s in Xmms, all is well until I do something that really uses the hard disks. For example, if I "par2" or "unrar" a big archive, I will always have problems.
What happens normally is that xmms will hang for a second here and there and skip the track. Or, since I have done this:
Code: | echo 1024 > /proc/sys/dev/rtc/max-user-freq
|
Instead of skipping, xmms sort of warbles playback and adds some static. It's not much better. What do I have to do to get decent mp3 playback even under heavy disk load? Do I need to "nice" my unrar and par action? Or is something hosed?
I'm running 2.6.8-gentoo-r5 with 2 gigs of RAM on a Tyan Tiger K8w Motherboard. I have 4 200G Seagate Barracuda drives on a 3ware 9xxx controller (in RAID10). The audio device is AMD-8111 AC97 Audio. I'm using Alsa (built into the kernel) using the intel-8x0 driver.
Please help me. I'm well-drenched in beer and I really need to hear some "Crack the Sky" without skips right now. I'll share beer with anyone who can help. At least, if you are near Montana I will. Heh.... _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
|
hardcore l33t
Joined: 01 Nov 2003 Posts: 626 Location: MSU, MI
|
Posted: Sat Oct 16, 2004 7:18 am Post subject: |
|
|
You may want to try out different i/o schedulers. Like cfq, as, etc. cfq might be right up your alley, as it's aimed for desktop performance. You can either patch a kernel yourself, or get a prepatched kernel such as ck-sources or love-sources. You'll then have to add a line to your grub.conf or lilo config. I'm not sure what it is, but I know it's on the forums somewhere. Also you could give nitro sources a try, it now has a patch in it that enables CFQ by default. _________________ Nothing can stop me now, cuz I just don't care. |
|
Back to top |
|
|
volumen1 Guru
Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Sun Oct 17, 2004 10:06 pm Post subject: |
|
|
Hmm... I emerged 2.6.8.1-ck7 and I'm running it now. I also added elevator=cfq to my kernel options. I'm still having the warble and static in Xmms when I do anything that causes disk load.
How do I verify that my machine is actually using CFQ for for the io scheduler now?
Are there any other tricks that I could try? _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
|
enrique Guru
Joined: 03 Sep 2002 Posts: 342 Location: Denmark
|
Posted: Sun Oct 17, 2004 10:08 pm Post subject: |
|
|
volumen1 wrote: | Are there any other tricks that I could try? |
Have you enabled DMA on your disks with hdparm? _________________ Kind regards, enrique
Workstation,HTPC,Powerbook |
|
Back to top |
|
|
volumen1 Guru
Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Sun Oct 17, 2004 10:17 pm Post subject: |
|
|
I'm using 4 200G SATA drives with a 3ware 9xxx controller. So, my RAID10 logical drive shows up as /dev/sda.
As I understand it, you can't enable DMA for non-IDE devices? Is that correct? _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
|
micmac l33t
Joined: 28 Nov 2003 Posts: 996
|
Posted: Mon Oct 18, 2004 4:31 am Post subject: |
|
|
Hi,
I had skips and even full stops with xmms and other players like rhythmbox, too. Admittedly I experienced this on a laptop with a slow harddisk and lots of irq sharing. I found dmix to be guilty. Do you use dmix, too? If so, try disabling it.
mic |
|
Back to top |
|
|
enrique Guru
Joined: 03 Sep 2002 Posts: 342 Location: Denmark
|
Posted: Mon Oct 18, 2004 1:40 pm Post subject: |
|
|
volumen1 wrote: | As I understand it, you can't enable DMA for non-IDE devices? Is that correct? |
Oh yeah... you can't on SATA drives. But is there not work being done in the area? _________________ Kind regards, enrique
Workstation,HTPC,Powerbook |
|
Back to top |
|
|
volumen1 Guru
Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Mon Oct 18, 2004 6:38 pm Post subject: dmix? |
|
|
Is dmix an Xmms plugin? If so, then I'm not using it. Whatever my problem is, it is, for sure, directly related to disk utilization.
If I play an mp3, it sounds awesome. But, as soon as I start to unrar a large archive, I see my disk utilization jump to 37M in gkrellm (which I'm assuming is M/s?) and then xmms starts introducing static and warbling like a warped record. _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
|
volumen1 Guru
Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Tue Oct 19, 2004 9:21 pm Post subject: |
|
|
Hmm... just a followup on this. I also see this behavior in zinf, so I don't think it's an xmms thing. I also see it whether I use alsa or OSS emulation. I'm baffled at this point. I've even tried nice-ing my audio app to give it more priority and I've also tried to nice my "unrar" process to try to get it to be less agressive, but nothing has worked.
It feels like my disks are hauling so much ass the kernel just can't keep up? _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
|
eean Guru
Joined: 10 Jun 2002 Posts: 355 Location: Kirksville, MO USA
|
Posted: Tue Oct 19, 2004 9:40 pm Post subject: |
|
|
Do you have arts running?
I would try using a media player that uses more modern engines (gstreamer, xine-lib) like amaroK. |
|
Back to top |
|
|
volumen1 Guru
Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Tue Oct 19, 2004 9:43 pm Post subject: |
|
|
I use fluxbox. But, at this point, I'll try anything. I'll emerge amaroK and see if it behaves any differently. I'll also try using arts and see if that makes a difference. I'll respond soon with an update. Heh... I'm sure you are all holding your breath. _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
|
eean Guru
Joined: 10 Jun 2002 Posts: 355 Location: Kirksville, MO USA
|
Posted: Tue Oct 19, 2004 9:59 pm Post subject: |
|
|
Don't worry about arts. I was going to tell you if you had it to kill it. So be sure to USE gstreamer and xine when you emerge amaroK. |
|
Back to top |
|
|
volumen1 Guru
Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Tue Oct 19, 2004 10:25 pm Post subject: |
|
|
No dice. Amarok does it also. I'm going to try and use a PCI soundcard, instead of using the one on my motherboard and see if that helps. But, I'm not hopeful.
By the way, I tried Amarok with both arts and xine. I couldn't get gstreamer to work. _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
|
HezniK n00b
Joined: 11 Apr 2004 Posts: 61 Location: Szczecin, Poland
|
Posted: Tue Oct 19, 2004 11:37 pm Post subject: |
|
|
hi
I also get this problem. But AFAIR i didn't had those issues before. Currently i have 2.6.8.1-nitro5 with preempt, and when i had it w/o preempt it was sucking also, but enabling preempt didn't solve that. I guess that might be issue with 2.6.8 kernel, i will try today 2.6.9 kernel and see if it's any better.
cheers _________________ ------------------------------
Autor tego postu zaprzecza jakoby aktywnie dzialal w ruchu anarchistycznym. |
|
Back to top |
|
|
eean Guru
Joined: 10 Jun 2002 Posts: 355 Location: Kirksville, MO USA
|
Posted: Wed Oct 20, 2004 12:05 am Post subject: |
|
|
volumen1 wrote: | No dice. Amarok does it also. I'm going to try and use a PCI soundcard, instead of using the one on my motherboard and see if that helps. But, I'm not hopeful.
By the way, I tried Amarok with both arts and xine. I couldn't get gstreamer to work. | Yea, the way gstreamer ebuild is it doesn't work by default. You have to download the gst-plugin-mad and maybe gst-plugins.
But if it warbles with xine (which works best for me), then gstreamer probably won't do anything.
You could look into increasing cache sizes for the various engines. Usually makes it less responsive to start and stop, but better then a warble. But given that Heznik has the same problem, perhaps it is a kernel issue. Which using another sound card could solve. |
|
Back to top |
|
|
volumen1 Guru
Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Wed Oct 20, 2004 4:41 am Post subject: |
|
|
I'll screw around with cache sizes. I've never seen that anywhere, so I'll dig up where to do that. I'm encouraged by Heznik's post.
Heznik, are you hearing both static and pitch changes or just one or the other? I've only had this machine for a little while, so I've been 2.6.8 the whole time. I didn't even think to try a different kernel. Please let me know what you find out!
Thanks! _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
|
micmac l33t
Joined: 28 Nov 2003 Posts: 996
|
Posted: Wed Oct 20, 2004 4:57 am Post subject: Re: dmix? |
|
|
volumen1 wrote: | Is dmix an Xmms plugin? If so, then I'm not using it. Whatever my problem is, it is, for sure, directly related to disk utilization.
If I play an mp3, it sounds awesome. But, as soon as I start to unrar a large archive, I see my disk utilization jump to 37M in gkrellm (which I'm assuming is M/s?) and then xmms starts introducing static and warbling like a warped record. |
Hi!
No, it's not a plugin for xmms. It's an alsa plugin. You have to write your own .asoundrc file (or a global alsa config file) to use it. If you never heard of it I highly doubt that you use it. Check .asoundrc in your homedir and /etc/asound.conf (naming?) for dmix.
Luck
mic |
|
Back to top |
|
|
HezniK n00b
Joined: 11 Apr 2004 Posts: 61 Location: Szczecin, Poland
|
Posted: Mon Oct 25, 2004 2:33 am Post subject: |
|
|
hi
i tried new and fresh 2.6.9-nitro1, problems are the same. f*ck.
first i thought that it could be xmms's fault, but it's even with mpg123 (console player) and mplayer. so even when i play movie (with sound) it sometimes stuck for about 0.5-1.5s, it depends. practically always with high load, but i'm not sure for that, cause even when i have only xmms and QTorrent (with one or two torrents downloading) in background it happens also.
this kernel i also did pre-emptible + (new in this version) some big kernel locks preempting. it didn't helped.
on a side note i encountered strange behaviour with that kernel: when i type "emerge -pv (whatever)", my system hangs! completly! music stops, mouse stops, keybord don't work. can you believe that? jeeezus, kingdom for stable kernel !
btw. i got SB Live 1024, and far worser? procesor, P3 500.
so i think it could be kernel or maybe alsa. maybe upgrading alsa-lib? _________________ ------------------------------
Autor tego postu zaprzecza jakoby aktywnie dzialal w ruchu anarchistycznym. |
|
Back to top |
|
|
HezniK n00b
Joined: 11 Apr 2004 Posts: 61 Location: Szczecin, Poland
|
Posted: Mon Oct 25, 2004 3:36 am Post subject: |
|
|
BREAKING NEWS !
I started my old kernel (gentoo-dev-2.6.3- with preempt) - and it works at blazing speed !
when doing tests like starting firstly xmms, and then a whole bunch of big and (some small) applications (in pararell) , playing flash movies in opera, playing movies in mplayer, extracting big files, and others for almost 10 minutes and xmms maybe two times had very small jumps.
mplayer had sometimes few sound jumps , but it's likely to a/v synchronization, besides my system is a little old to divx'es
beside, i noticed that even opening xterm and mc in it is very fast (while opera and others programs in background openings) comparing to my old 2.6.8 and 2.6.9 (both nitro) system. just amazing !
so it's probably shity scheduler that was a culprit.
next i will try gentoo-dev-2.6.9 and see if it's the same.
me = happy
cheers _________________ ------------------------------
Autor tego postu zaprzecza jakoby aktywnie dzialal w ruchu anarchistycznym. |
|
Back to top |
|
|
volumen1 Guru
Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Mon Oct 25, 2004 3:50 am Post subject: |
|
|
Which scheduler were you using on the 2.6.3 kernel that is working now? Also, is your audio playback halting or does it also change pitch (i.e. sounds like a record player is speeding up and slowing down)? I just want to figure out if you are having the same problem as me, or a different problem with somewhat similar symptoms. _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
|
peter96362930 Tux's lil' helper
Joined: 26 Oct 2003 Posts: 141 Location: S.E. Asia
|
Posted: Mon Oct 25, 2004 4:42 am Post subject: |
|
|
Earlier in this thread enrique asked Quote: | Have you enabled DMA on your disks with hdparm? | but I didn't notice a reply.
I had this problem a while back and it enabling hdparm fixed it.
If you type Code: | # hdparm -tT /dev/hda | or whatever you harddrive is, what do you get? |
|
Back to top |
|
|
volumen1 Guru
Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Mon Oct 25, 2004 5:33 am Post subject: |
|
|
I replied telling him that I am using 4 SATA drives that are connected to a 3ware-9xxx RAID controller. So, my logical drive shows up as /dev/sda. But, I'm fairly certain that I can't enable DMA on logical devices like this. _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
|
HezniK n00b
Joined: 11 Apr 2004 Posts: 61 Location: Szczecin, Poland
|
Posted: Tue Oct 26, 2004 1:48 am Post subject: |
|
|
hi again
I don't have pitch changing with my playback, only halting for moment.
Also, i was little too hurry with those good news. My old kernel (gentoo-dev-2.6.3) also has those xmms stucks. I didn't noticed them earlier (during the test), because (i think so) i didn't used too much ram and swap. Well, i currently have 2.6.9-ck2, which has some VM patches, and situation is little better, i think.
Talking about the symptoms i have, for example: when dragging any window when xmms is playing, sound's terribly getting cut (but this doesn't happen when i play on text consoles with mpg123 some mp3's, so maybe it's just X's issue).
Another thing: when music in xmms is playing, and i click on Preferences/ ALSA Output-plugin/Configure, sound skips few times. This doesn't happen now (with my new 2.6.9-ck2 kernel, probably thanks to -ck patch set).
But even now, when i wrote these words, and xmms is playing, sometimes (i dunno, 2-3 minutes, it depends) music skipping is happening, with empty swap, 90MB ram used and 10% cpu load).
Sorry for misunderstanding. Did a PCI soundcard helped?
cheers _________________ ------------------------------
Autor tego postu zaprzecza jakoby aktywnie dzialal w ruchu anarchistycznym. |
|
Back to top |
|
|
volumen1 Guru
Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Tue Oct 26, 2004 3:35 am Post subject: |
|
|
I'm trying to find a PCI soundcard in my box of goodies, so I haven't tested it yet. I'm also going to see which modules have support for the 3w-9xxx SATA RAID controller that I'm using and maybe I'll have better luck? I'll post my results. I just haven't had time to work on it. I wish someone paid me to fix my audio problems... dang day jobs! _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
|
Languid_Heap n00b
Joined: 20 Apr 2003 Posts: 14
|
Posted: Tue Oct 26, 2004 6:10 am Post subject: |
|
|
Hey, I had similar problems for months before I stumbled across this post by Ormi. Essentially the solution was to add the following to /etc/conf.d/local.start
Code: | #"open up" the PCI bus by allowing fairly long bursts for all devices, increasing performance
setpci -v -d *:* latency_timer=b0
#maximize latency timers for network and audio, allowing them to transmit
#more data per burst, preventing buffer over/underrun conditions
setpci -v -s 00:0c.0 latency_timer=ff
setpci -v -s 00:0d.0 latency_timer=ff |
There's some other good info in that thread, so check it out. Hope this works for you.
L_H |
|
Back to top |
|
|
|