Il giorno Tue, 03 Feb 2009 10:11:20 -0800
Fernando Lopez-Lezcano ha scritto:> > - what's the difference between running some app realtime, say
What I meant there was (if I got how it works right):
- jackd already manages audio thread priority, which get SCHED_FIFO
and therefore can preempt every other process/thread in the system
- all other processes are sheduled SCHED_OTHER with various nice levels
So, isn't it better to schedule SCHED_RR audio processes (say lmms,
hydrogen and zynaddsubfx) so a cronjob, xorg, daemons and such can't
possibly preempt audio processes?
I think such a situation (i.e. a cronjob preempting zynaddsubfx)
would not give you xruns, but it could lead to audio dropouts
(zynaddsubfx not having time to process audio), which is as bad as xruns
'cause you lose your sound.
Same goes for any other setup in which some apps aren't connected to
jack or properly designed.
> SCHED_RR will be preempted when it uses up its time slice. That
I imagine this scenario being very close to the machine not having
enough power to fulfill the requested tasks.
If a round robin across all audio threads gives xruns a fifo on jackd's
audio thread would leave other ones with no cpu time left, I guess.
> > - apart from irq threads, is there any other big improvement a -rt
Yep, I run 2.6.28.
Thank for your reply, I've made my mind clearer on some interesting
points now.
bye,
Nicola.
_______________________________________________
Linux-audio-tuning mailing list
Linux-audio-tuning@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-tuning
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.