Re: 2.6.0-test2-mm1

From: Roger Larsson (roger.larsson@norran.net)
Date: Tue Jul 29 2003 - 14:59:16 EST


On Tuesday 29 July 2003 07.33, ismail (cartman) donmez wrote:
> Hi,
>
> Some things I noticed:
>
> -- snip --
>
> 2- Con's patch makes KDE's sound daemon skip ( aRts ) when using Juk ( KDE
> JukeBox ) [ to skip just minimize/maximize any window fast ] . Seems like
> problem is at aRts decoding as mplayer -ao arts works fine without skips.
>

Is mplayer suid root? (allow SCHED_FIFO/RR usage)
To get the equivalent function you need artswrapper to be suid root,
and "Run soundserver with realtime priority" feature enabled in aRTs config.

[Dangerous with multiuser setups - user can add a plug in that loops forever
with higher priority than all other processes -> dead system.
The SCHED_SOFTRR patch would be a very welcome addition.
a) No need for suid root, artswrapper tries to use SCHED_FIFO

   Davide - SCHED_FIFO should also be handled as a SCHED_SOFTRR request!
   Not only SCHED_RR (SCHED_FIFO is more frequently used!)

b) Automatic prevention of overuse
]

If this is not the case - my mplayer is not suid root.
aRTs adds some overhead to allow mixing audio from several applications.
(even if this is not necessary on some audio boards like SB Live!)
To get the same kind of overhead you should run mplayer with output through
arts...

artsdsp mplayer ...

The final thing to check is KDE Audio Buffer Size (if this is small then it
won't matter if mplayer uses a big buffer...)

/RogerL

-- 
Roger Larsson
Skellefteċ
Sweden
-
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/



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:42 EST