Skip to contentSkip to conversation

Artificial task load

Xenomai-help ROSSIER Daniel 2 participants 3 messages May 23, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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 appropriate

when 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.
#2 lore raw
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 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).

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 use xnarch_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.