Re: [PATCH] kthread: always create the kernel threads with normal priority

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Ingo Molnar <mingo@...>, Michal Schmidt <mschmidt@...>, <linux-kernel@...>, Eric W. Biederman <ebiederm@...>, Jon Masters <jcm@...>, Satoru Takeuchi <takeuchi_satoru@...>
Date: Monday, January 7, 2008 - 1:47 pm

On Mon, 2008-01-07 at 09:29 -0800, Andrew Morton wrote:
=20
=20

Its an artifact of rt group scheduling. Each group will have to specify
a period and runtime limit therein (and the normalized sum thereof must
not exceed the total time available - otherwise the set is not
schedulable).

So say we have two groups A and B. A has a period of 2 seconds and a
runtime limit of 1, that gives him an avg of 50% cpu time. If B then has
a period of 1 second with a runtime limit of .25s (avg 25%) the total
time required to schedule the realtime groups would be 75% on average.

Without group scheduling everything is considered one group but we still
have the period and runtime limits.

So as long as the realtime cpu usage fits within the given limits it
acts as before. Once it exceeds its limit it will be capped hard - which
is ok, since it exceeded its hard limit, and realtime applications are
supposed to be deterministic and thus be able to tell how much time
they'd require. [ If only this model were true, but its a model
frequently used and quite accepted ]
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] kthread: always create the kernel threads with n..., Peter Zijlstra, (Mon Jan 7, 1:47 pm)