linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* xmms (audio) skipping in 2.5 (not 2.4)
@ 2003-03-04  5:25 Martin J. Bligh
  2003-03-04  5:36 ` Con Kolivas
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Martin J. Bligh @ 2003-03-04  5:25 UTC (permalink / raw)
  To: linux-kernel

OK, so I finally took the plunge, and put 2.5 on my main desktop as well as
just the lab machines ;-)

Generally seems to work very well, and VM performance is much more stable
than 2.4 ... but xmms seems to skip if I just waggle the scrollbar in some
windows. This happens most in my email client (which is Mulberry), but
other things show it to a more limited extent.

The audio pauses happen on a simple window scroll down, without intensive
CPU background activity ... they're very short in duration, which makes it
*feel* more like the audio buffer is too small than a scheduler problem,
but I'm just guessing really.

So ... is there any easy way I can diagnose this? Does anyone else have a
similar problem?

Audio is SiS SI7012 ALSA driver emulating OSS. Athalon 2100, 512Mb.
kernel = 2.5.63-mjb2

M.

PS. In the unlikely even that anyone's particularly fascinated by one app,
Mulberry isn't free, but a free demo can be downloaded from
http://www.cyrusoft.com if you wade through the registration ... as I say,
unlikely ;-)

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04  5:25 xmms (audio) skipping in 2.5 (not 2.4) Martin J. Bligh
@ 2003-03-04  5:36 ` Con Kolivas
  2003-03-04  5:52   ` Martin J. Bligh
  2003-03-04  9:48   ` Giuliano Pochini
  2003-03-04 14:13 ` Anton Blanchard
  2003-03-04 18:39 ` Aaron Lehmann
  2 siblings, 2 replies; 16+ messages in thread
From: Con Kolivas @ 2003-03-04  5:36 UTC (permalink / raw)
  To: Martin J. Bligh, linux-kernel

On Tue, 4 Mar 2003 04:25 pm, Martin J. Bligh wrote:
> OK, so I finally took the plunge, and put 2.5 on my main desktop as well as
> just the lab machines ;-)
>
> Generally seems to work very well, and VM performance is much more stable
> than 2.4 ... but xmms seems to skip if I just waggle the scrollbar in some
> windows. This happens most in my email client (which is Mulberry), but
> other things show it to a more limited extent.
>
> The audio pauses happen on a simple window scroll down, without intensive
> CPU background activity ... they're very short in duration, which makes it
> *feel* more like the audio buffer is too small than a scheduler problem,
> but I'm just guessing really.
>
> So ... is there any easy way I can diagnose this? Does anyone else have a
> similar problem?

Most of us who have worked with an O(1) scheduler based kernel have found this 
at various times. See the previous discussion with akpm about the 
interactivity estimator. Akpm found that decreasing the maximum timeslice 
duration would blunt the effect of the interactivity estimator giving 
preference to the "wrong" task. In 2.4.20-ck4 I avoid this problem with the 
"desktop tuning" of making the max timeslice==min timeslice. Try an -mm 
kernel with the scheduler tunables patch and try playing with the max 
timeslice. Most have found that <=25 will usually stop these skips. The 
default max timeslice of 300ms is just too long for the desktop and 
interactivity estimator.
 
Con

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04  5:36 ` Con Kolivas
@ 2003-03-04  5:52   ` Martin J. Bligh
  2003-03-04  7:28     ` Con Kolivas
  2003-03-12 22:59     ` Pavel Machek
  2003-03-04  9:48   ` Giuliano Pochini
  1 sibling, 2 replies; 16+ messages in thread
From: Martin J. Bligh @ 2003-03-04  5:52 UTC (permalink / raw)
  To: Con Kolivas, linux-kernel

>> So ... is there any easy way I can diagnose this? Does anyone else have a
>> similar problem?
> 
> Most of us who have worked with an O(1) scheduler based kernel have found
> this  at various times. See the previous discussion with akpm about the 
> interactivity estimator. Akpm found that decreasing the maximum timeslice 
> duration would blunt the effect of the interactivity estimator giving 
> preference to the "wrong" task. In 2.4.20-ck4 I avoid this problem with
> the  "desktop tuning" of making the max timeslice==min timeslice. Try an
> -mm  kernel with the scheduler tunables patch and try playing with the
> max  timeslice. Most have found that <=25 will usually stop these skips.
> The  default max timeslice of 300ms is just too long for the desktop and 
> interactivity estimator.

Heh, cool. I have the same patch in my tree too, fixed it without rebooting
even ;-) Still a *tiny* bit of skipping, but infinitely better than it was.
Thanks very much,

M.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04  5:52   ` Martin J. Bligh
@ 2003-03-04  7:28     ` Con Kolivas
  2003-03-04  7:48       ` Martin J. Bligh
  2003-03-12 22:59     ` Pavel Machek
  1 sibling, 1 reply; 16+ messages in thread
From: Con Kolivas @ 2003-03-04  7:28 UTC (permalink / raw)
  To: Martin J. Bligh, linux-kernel

On Tue, 4 Mar 2003 04:52 pm, Martin J. Bligh wrote:
> >> So ... is there any easy way I can diagnose this? Does anyone else have
> >> a similar problem?
> >
> > Most of us who have worked with an O(1) scheduler based kernel have found
> > this  at various times. See the previous discussion with akpm about the
> > interactivity estimator. Akpm found that decreasing the maximum timeslice
> > duration would blunt the effect of the interactivity estimator giving
> > preference to the "wrong" task. In 2.4.20-ck4 I avoid this problem with
> > the  "desktop tuning" of making the max timeslice==min timeslice. Try an
> > -mm  kernel with the scheduler tunables patch and try playing with the
> > max  timeslice. Most have found that <=25 will usually stop these skips.
> > The  default max timeslice of 300ms is just too long for the desktop and
> > interactivity estimator.
>
> Heh, cool. I have the same patch in my tree too, fixed it without rebooting
> even ;-) Still a *tiny* bit of skipping, but infinitely better than it was.

Try decreasing prio_bonus_ratio to 15 as well

> Thanks very much,

Pleasure

Con

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04  7:28     ` Con Kolivas
@ 2003-03-04  7:48       ` Martin J. Bligh
  2003-03-04  8:15         ` Con Kolivas
  0 siblings, 1 reply; 16+ messages in thread
From: Martin J. Bligh @ 2003-03-04  7:48 UTC (permalink / raw)
  To: Con Kolivas, linux-kernel

>> >> So ... is there any easy way I can diagnose this? Does anyone else
>> >> have a similar problem?
>> > 
>> > Most of us who have worked with an O(1) scheduler based kernel have
>> > found this  at various times. See the previous discussion with akpm
>> > about the interactivity estimator. Akpm found that decreasing the
>> > maximum timeslice duration would blunt the effect of the interactivity
>> > estimator giving preference to the "wrong" task. In 2.4.20-ck4 I avoid
>> > this problem with the  "desktop tuning" of making the max
>> > timeslice==min timeslice. Try an -mm  kernel with the scheduler
>> > tunables patch and try playing with the max  timeslice. Most have
>> > found that <=25 will usually stop these skips. The  default max
>> > timeslice of 300ms is just too long for the desktop and interactivity
>> > estimator.
>> 
>> Heh, cool. I have the same patch in my tree too, fixed it without
>> rebooting even ;-) Still a *tiny* bit of skipping, but infinitely better
>> than it was.
> 
> Try decreasing prio_bonus_ratio to 15 as well

Doesn't seem to make much difference, actually.
But "waggle scrollbar a bit" isn't very scientific .. ;-)
Does contest (or anything else) measure this kind of thing more precisely?

M.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04  7:48       ` Martin J. Bligh
@ 2003-03-04  8:15         ` Con Kolivas
  2003-03-04 10:00           ` Andrew McGregor
  0 siblings, 1 reply; 16+ messages in thread
From: Con Kolivas @ 2003-03-04  8:15 UTC (permalink / raw)
  To: Martin J. Bligh, linux-kernel

On Tue, 4 Mar 2003 06:48 pm, Martin J. Bligh wrote:
> >> >> So ... is there any easy way I can diagnose this? Does anyone else
> >> >> have a similar problem?
> >> >
> >> > Most of us who have worked with an O(1) scheduler based kernel have
> >> > found this  at various times. See the previous discussion with akpm
> >> > about the interactivity estimator. Akpm found that decreasing the
> >> > maximum timeslice duration would blunt the effect of the interactivity
> >> > estimator giving preference to the "wrong" task. In 2.4.20-ck4 I avoid
> >> > this problem with the  "desktop tuning" of making the max
> >> > timeslice==min timeslice. Try an -mm  kernel with the scheduler
> >> > tunables patch and try playing with the max  timeslice. Most have
> >> > found that <=25 will usually stop these skips. The  default max
> >> > timeslice of 300ms is just too long for the desktop and interactivity
> >> > estimator.
> >>
> >> Heh, cool. I have the same patch in my tree too, fixed it without
> >> rebooting even ;-) Still a *tiny* bit of skipping, but infinitely better
> >> than it was.
> >
> > Try decreasing prio_bonus_ratio to 15 as well
>
> Doesn't seem to make much difference, actually.
> But "waggle scrollbar a bit" isn't very scientific .. ;-)
> Does contest (or anything else) measure this kind of thing more precisely?

Last time I tried to do a whole swag of tunables it was showing differences 
but I was plagued by memory leaks ruining the data. I'll try again in the 
near future. Also Bill Davidsen's trivial response benchmark may show 
something too.

Con


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04  5:36 ` Con Kolivas
  2003-03-04  5:52   ` Martin J. Bligh
@ 2003-03-04  9:48   ` Giuliano Pochini
  1 sibling, 0 replies; 16+ messages in thread
From: Giuliano Pochini @ 2003-03-04  9:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: Con Kolivas



> Try an -mm 
> kernel with the scheduler tunables patch and try playing with the max
> timeslice. Most have found that <=25 will usually stop these skips. The
> default max timeslice of 300ms is just too long for the desktop and
> interactivity estimator.

IMHO 300ms is way too much. Timeslice should be in the 10-50ms range
to get good interactive performance. Why is it so long ?

Bye.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04  8:15         ` Con Kolivas
@ 2003-03-04 10:00           ` Andrew McGregor
  2003-03-04 15:59             ` Martin J. Bligh
  0 siblings, 1 reply; 16+ messages in thread
From: Andrew McGregor @ 2003-03-04 10:00 UTC (permalink / raw)
  To: Con Kolivas, Martin J. Bligh, linux-kernel

Per chance, do you have an NVidia graphics card and Maestro 3 or USB audio? 
If so, you're possibly getting DMA starvation.  There are games you can 
play with the PCI latency timers to help with this, but I cannot recall the 
details; searching around for Dell Inspiron laptop audio issues might find 
them.  I just replaced the machine I saw this on, so I can't help anymore.

Andrew

--On Tuesday, 4 March 2003 7:15 p.m. +1100 Con Kolivas <kernel@kolivas.org> 
wrote:

> On Tue, 4 Mar 2003 06:48 pm, Martin J. Bligh wrote:
>> >> >> So ... is there any easy way I can diagnose this? Does anyone else
>> >> >> have a similar problem?
>> >> >
>> >> > Most of us who have worked with an O(1) scheduler based kernel have
>> >> > found this  at various times. See the previous discussion with akpm
>> >> > about the interactivity estimator. Akpm found that decreasing the
>> >> > maximum timeslice duration would blunt the effect of the
>> >> > interactivity estimator giving preference to the "wrong" task. In
>> >> > 2.4.20-ck4 I avoid this problem with the  "desktop tuning" of
>> >> > making the max timeslice==min timeslice. Try an -mm  kernel with
>> >> > the scheduler tunables patch and try playing with the max
>> >> > timeslice. Most have found that <=25 will usually stop these skips.
>> >> > The  default max timeslice of 300ms is just too long for the
>> >> > desktop and interactivity estimator.
>> >>
>> >> Heh, cool. I have the same patch in my tree too, fixed it without
>> >> rebooting even ;-) Still a *tiny* bit of skipping, but infinitely
>> >> better than it was.
>> >
>> > Try decreasing prio_bonus_ratio to 15 as well
>>
>> Doesn't seem to make much difference, actually.
>> But "waggle scrollbar a bit" isn't very scientific .. ;-)
>> Does contest (or anything else) measure this kind of thing more
>> precisely?
>
> Last time I tried to do a whole swag of tunables it was showing
> differences  but I was plagued by memory leaks ruining the data. I'll try
> again in the  near future. Also Bill Davidsen's trivial response
> benchmark may show  something too.
>
> Con
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
>
>



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04  5:25 xmms (audio) skipping in 2.5 (not 2.4) Martin J. Bligh
  2003-03-04  5:36 ` Con Kolivas
@ 2003-03-04 14:13 ` Anton Blanchard
  2003-03-04 14:18   ` Maciej Soltysiak
                     ` (2 more replies)
  2003-03-04 18:39 ` Aaron Lehmann
  2 siblings, 3 replies; 16+ messages in thread
From: Anton Blanchard @ 2003-03-04 14:13 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: linux-kernel


> OK, so I finally took the plunge, and put 2.5 on my main desktop as well as
> just the lab machines ;-)
> 
> Generally seems to work very well, and VM performance is much more stable
> than 2.4 ... but xmms seems to skip if I just waggle the scrollbar in some
> windows. This happens most in my email client (which is Mulberry), but
> other things show it to a more limited extent.
> 
> The audio pauses happen on a simple window scroll down, without intensive
> CPU background activity ... they're very short in duration, which makes it
> *feel* more like the audio buffer is too small than a scheduler problem,
> but I'm just guessing really.

Are you running debian? It likes to nice -10 the X server. Renicing it
back to 0 fixes my xmms skips with 2.5.

Anton

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04 14:13 ` Anton Blanchard
@ 2003-03-04 14:18   ` Maciej Soltysiak
  2003-03-04 14:31   ` Sean Neakums
  2003-03-04 16:17   ` Martin J. Bligh
  2 siblings, 0 replies; 16+ messages in thread
From: Maciej Soltysiak @ 2003-03-04 14:18 UTC (permalink / raw)
  To: Anton Blanchard; +Cc: Martin J. Bligh, linux-kernel

> Are you running debian? It likes to nice -10 the X server. Renicing it
> back to 0 fixes my xmms skips with 2.5.
Nice, good to know that.

> Anton
Maciej


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04 14:13 ` Anton Blanchard
  2003-03-04 14:18   ` Maciej Soltysiak
@ 2003-03-04 14:31   ` Sean Neakums
  2003-03-04 16:17   ` Martin J. Bligh
  2 siblings, 0 replies; 16+ messages in thread
From: Sean Neakums @ 2003-03-04 14:31 UTC (permalink / raw)
  To: linux-kernel

commence  Anton Blanchard quotation:

> Are you running debian? It likes to nice -10 the X server. Renicing it
> back to 0 fixes my xmms skips with 2.5.

You can alter this permanently with 'dpkg-reconfigure xserver-common';
if you elect not to have /etc/X11/Xwrapper.config managed by debconf,
simply edit it directly.

-- 
 /                          |
[|] Sean Neakums            | Size *does* matter.
[|] <sneakums@zork.net>     | That's why I use Emacs.
 \                          |

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04 10:00           ` Andrew McGregor
@ 2003-03-04 15:59             ` Martin J. Bligh
  0 siblings, 0 replies; 16+ messages in thread
From: Martin J. Bligh @ 2003-03-04 15:59 UTC (permalink / raw)
  To: Andrew McGregor, Con Kolivas, linux-kernel

> Per chance, do you have an NVidia graphics card and Maestro 3 or USB
> audio? 

Neither ...


M.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04 14:13 ` Anton Blanchard
  2003-03-04 14:18   ` Maciej Soltysiak
  2003-03-04 14:31   ` Sean Neakums
@ 2003-03-04 16:17   ` Martin J. Bligh
  2 siblings, 0 replies; 16+ messages in thread
From: Martin J. Bligh @ 2003-03-04 16:17 UTC (permalink / raw)
  To: Anton Blanchard, Sean Neakums; +Cc: linux-kernel

> Anton:
>
> Are you running debian? It likes to nice -10 the X server. Renicing it
> back to 0 fixes my xmms skips with 2.5.

Excellent - that seems to fix it totally. I guess O(1) pays more attention
to nice than 2.4.

> Sean Neakums <sneakums@zork.net> wrote:
>
> You can alter this permanently with 'dpkg-reconfigure xserver-common';
> if you elect not to have /etc/X11/Xwrapper.config managed by debconf,
> simply edit it directly.

Even better ;-)

Thanks,

M.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04  5:25 xmms (audio) skipping in 2.5 (not 2.4) Martin J. Bligh
  2003-03-04  5:36 ` Con Kolivas
  2003-03-04 14:13 ` Anton Blanchard
@ 2003-03-04 18:39 ` Aaron Lehmann
  2 siblings, 0 replies; 16+ messages in thread
From: Aaron Lehmann @ 2003-03-04 18:39 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: linux-kernel

On Mon, Mar 03, 2003 at 09:25:59PM -0800, Martin J. Bligh wrote:
> So ... is there any easy way I can diagnose this? Does anyone else have a
> similar problem?

I have a very similar problem. Selecting text in a Mathematica window
causes xmms to skip almost always. Sometimes xmms also skips when I
scroll in xft-antialiased mozilla. This never happened in 2.4.

xmms is reading music over NFS.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-04  5:52   ` Martin J. Bligh
  2003-03-04  7:28     ` Con Kolivas
@ 2003-03-12 22:59     ` Pavel Machek
  2003-03-12 23:42       ` Martin J. Bligh
  1 sibling, 1 reply; 16+ messages in thread
From: Pavel Machek @ 2003-03-12 22:59 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: Con Kolivas, linux-kernel

Hi!

> > the  "desktop tuning" of making the max timeslice==min timeslice. Try an
> > -mm  kernel with the scheduler tunables patch and try playing with the
> > max  timeslice. Most have found that <=25 will usually stop these skips.
> > The  default max timeslice of 300ms is just too long for the desktop and 
> > interactivity estimator.
> 
> Heh, cool. I have the same patch in my tree too, fixed it without rebooting
> even ;-) Still a *tiny* bit of skipping, but infinitely better than it was.

Fixed without rebooting? You binary-patched
kernel or what?
				Pavel
-- 
				Pavel
Written on sharp zaurus, because my Velo1 broke. If you have Velo you don't need...


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: xmms (audio) skipping in 2.5 (not 2.4)
  2003-03-12 22:59     ` Pavel Machek
@ 2003-03-12 23:42       ` Martin J. Bligh
  0 siblings, 0 replies; 16+ messages in thread
From: Martin J. Bligh @ 2003-03-12 23:42 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Con Kolivas, linux-kernel

>> > the  "desktop tuning" of making the max timeslice==min timeslice. Try an
>> > -mm  kernel with the scheduler tunables patch and try playing with the
>> > max  timeslice. Most have found that <=25 will usually stop these skips.
>> > The  default max timeslice of 300ms is just too long for the desktop and 
>> > interactivity estimator.
>> 
>> Heh, cool. I have the same patch in my tree too, fixed it without rebooting
>> even ;-) Still a *tiny* bit of skipping, but infinitely better than it was.
> 
> Fixed without rebooting? You binary-patched
> kernel or what?
> 				Pavel

Nope, the sched tunables patch from Robert (which is in -mjb and -mm, 
so I was already running) exposes those parameters out to userspace 
for sysctl to change ... I just ran sysctl once, and it was done ;-)

M.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2003-03-12 23:41 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-04  5:25 xmms (audio) skipping in 2.5 (not 2.4) Martin J. Bligh
2003-03-04  5:36 ` Con Kolivas
2003-03-04  5:52   ` Martin J. Bligh
2003-03-04  7:28     ` Con Kolivas
2003-03-04  7:48       ` Martin J. Bligh
2003-03-04  8:15         ` Con Kolivas
2003-03-04 10:00           ` Andrew McGregor
2003-03-04 15:59             ` Martin J. Bligh
2003-03-12 22:59     ` Pavel Machek
2003-03-12 23:42       ` Martin J. Bligh
2003-03-04  9:48   ` Giuliano Pochini
2003-03-04 14:13 ` Anton Blanchard
2003-03-04 14:18   ` Maciej Soltysiak
2003-03-04 14:31   ` Sean Neakums
2003-03-04 16:17   ` Martin J. Bligh
2003-03-04 18:39 ` Aaron Lehmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).