Re: [LAD] Kontakt Spikes

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Tue Oct 11 2011 - 11:52:07 EEST

I wrote:
> What is the time quantum that sched_rr_get_interval() returns for these
> threads?

Bah, the documentation of sched_rr_get_interval() is wrong; the kernel
uses a fixed RR time quantum of 100 ms which cannot be changed (except
by changing DEF_TIMESLICE in kernel/sched.c).

This means that, when you have five RR/50 threads on one core, a thread
will run for 100 ms and then be interrupted for 400 ms. The only way
for the threads to user shorter intervals is for all of them to
cooperate and to call sched_yield() after having completed such
an interval.

Regards,
Clemens
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Tue Oct 11 12:15:03 2011

This archive was generated by hypermail 2.1.8 : Tue Oct 11 2011 - 12:15:03 EEST