Re: [PATCH] Nick's scheduler policy v12

From: Martin J. Bligh
Date: Sat Sep 06 2003 - 21:39:41 EST


> If you dont see why X is super special then why is xmms even a part of
> the discussion?

Because it's an example of why X *isn't* super special - it's just another
interactive app. If we have to explicitly boost every interactive app,
we're screwed.

> All of this basing scheduling performance on a bloated wannabe winamp
> makes as much sense as gauging car performance using a van. If this
> was a purely scheduling problem, then why do other players like
> alsaplayer and such not suck as bad as xmms when under the exact same
> priority and all? At least use something without a frontend so that
> you can limit the possibility that the programmers did something stupid
> like make decoding dependent on some update to the gui.
> xmms was coded first and foremost to look and work like winamp.
> Streamlined - even low latency performance was not a base goal.

The reality is that people use xmms, and whilst it may not be the greatest
program known to man, I don't believe it's *that* fundamentally screwed up
that it should skip under normal desktop loads. *Especially* if it worked
fine under 2.4 ;-)

Some people have observed that ALSA drivers seem worse than the older
ones ... I haven't done enough comparisons to be sure that's true, but
maybe they have less buffering or something. More buffering in the kernel
side might get rid of the sound skips.

> And outside of these two programs X and some audio player, how are
> things going to be effected? Forget having to renice certain
> processes, if i have a video player that say, outputs using X will
> the video thread get lowered below certain other processes because
> the audio thread is getting a higher dynamic priority and the video
> thread uses a lot of cpu (maybe i dont have hw accel). What about
> video players that dont use theads, they require both a lot of cpu
> and audio playing performance to stay in sync, will it be dropped
> below the priority of other apps?

Don't think that's really so easy to solve, unless you do the hardware
boost thing. The original focus seemed to be giving a prio boost to
tasks that weren't cpu hogs.

> It's early for me so maybe i'm overreacting. I just dont see the logic
> in using a program like xmms to guage audio playback performance since
> it's main goal is to be like winamp, not efficiently playback audio
> and so can be introducing all kinds of performance hits not found in
> other players.

People should gague performance by how well we do on the apps they want
to run. If people want to run xmms, they'll be interested in how well
it works. My main objection to benchmarking like this is (and window
wiggle tests) are that they're pretty much subjective, and hard to
measure.

Personally, I just use xmms because I've found nothing better, but the
the UI does suck. Mostly that's because I'm too idle to look hard (or
I have better things to do) and it's good enough. Here is _not_ the
place for people to tell me what I should use instead ;-)

M.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/