Artificial task load
Hello,
Maybe this issue has already been raised up, anyway...
What would be the best way to simulate a task load in Xenomai RT tasks, avoiding the rt_timer_spin() which is not appropriate
when multiple task context switching occur?
(I've already experimented a simple loop with rt_timer_spin(1), but it is not reasonable since the loop instructions consumes some CPU time as well).
Thanks for any advice.
Daniel
Quoted 11 lines · ROSSIER Daniel
Hello,
Maybe this issue has already been raised up, anyway...
What would be the best way to simulate a task load in Xenomai RT tasks, avoiding the
rt_timer_spin()which is not appropriatewhen multiple task context switching occur?
Quoted 7 lines
(I've already experimented a simple loop with
rt_timer_spin(1), but it is not reasonable since the loop instructions consumes some CPU time as well).Thanks for any advice.
Sorry, but I do not understand what is wrong with rt_timer_spin(). If you do not want to use this service, maybe you can use xnarch_get_cpu_tsc() (or __xn_rdtsc() in user-space) ?
Signature · 1 line
Gilles Chanteperdrix.
Quoted 18 lines · Gilles Chanteperdrix
Quoted 17 lines · ROSSIER Daniel
Hello,
Maybe this issue has already been raised up, anyway...
What would be the best way to simulate a task load in Xenomai RT tasks, avoiding the
rt_timer_spin()which is not appropriatewhen multiple task context switching occur?
(I've already experimented a simple loop with
rt_timer_spin(1), but it is not reasonable since the loop instructions consumes some CPU time as well).
Quoted 5 lines
Quoted 1 line
Thanks for any advice.
Sorry, but I do not understand what is wrong with
rt_timer_spin(). If you do not want to use this service, maybe you can usexnarch_get_cpu_tsc()(or__xn_rdtsc()in user-space) ?
Got it, you want a service that really burns a given quantity of CPU. What about linux udelay ?
Signature · 1 line
Gilles Chanteperdrix.