Skip to contentSkip to conversation

Jitter-test

Xenomai Uttamkumar Sinojia 2 participants 2 messages Jul 14, 2012 – Jul 20, 2012

lore
Share & tools
lore
#0 lore raw

Respected sir,

I have prepared a setup for checking the scheduling jitter values(current time - expected wake-up time) among five periodic task having same priority.

I have created 5 periodic real-time tasks with equal priority(say, 5) and wake them at the same time.
Choosen task periods of 100us, 200us, 300us, 400us and 500us , respectively. Here in this case when more than one tasks are going to wake-up at same expected time, which process will be scheduled should be non-deterministic and i was getting it.

In another case, I have created 5 periodic real-time tasks with equal priority(say, 5) and wake them at the same time. Choosen task periods of 1ms, 2ms, 3ms, 4ms and 5ms , respectively. In this case i was getting the deterministic behavior in scheduling of the task(When expected time for more than one task was same, task with larger period was woken-up first). So, i was not getting the reason for this deterministic behavior.

[ 4530.480198] Xenomai: 1->iteration 1 ..expected task wake-up....value         1339875162478491464 
[ 4530.480200] Xenomai: 1->iteration 1 ..actual task wake-up....value              1339875162478491498 
[ 4530.480202] Xenomai: 1->1 th jitter initial jitter after first task wake-up....value 34 
[ 4530.480206] 
[ 4530.481206] Xenomai: 2->iteration 1 ..expected task wake-up....value         1339875162479491464 
[ 4530.481209] Xenomai: 2->iteration 1 ..actual task wake-up....value              1339875162479492503 
[ 4530.481211] Xenomai: 2->1 th jitter initial jitter after first task wake-up....value 1039 
[ 4530.481216] 
[ 4530.481220] Xenomai: 1->iteration 2 ..expected task wake-up....value         1339875162479491464 
[ 4530.481223] Xenomai: 1->iteration 2 ..actual task wake-up....value              1339875162479496632 
[ 4530.481225] Xenomai: 1->2 th jitter initial jitter after first task wake-up....value 5168 
[ 4530.481230] 
[ 4530.482201] Xenomai: 3->iteration 1 ..expected task wake-up....value         1339875162480491464 
[ 4530.482203] Xenomai: 3->iteration 1 ..actual task wake-up....value              1339875162480491406 
[ 4530.482205] Xenomai: 3->1 th jitter initial jitter after first task wake-up....value -58 
[ 4530.482208] 
[ 4530.482211] Xenomai: 1->iteration 3 ..expected task wake-up....value         1339875162480491464 
[ 4530.482213] Xenomai: 1->iteration 3 ..actual task wake-up....value              1339875162480494531 
[ 4530.482215] Xenomai: 1->3 th jitter initial jitter after first task wake-up....value 3067 
[ 4530.482218] 
[ 4530.483204] Xenomai: 4->iteration 1 ..expected task wake-up....value         1339875162481491464 
[ 4530.483206] Xenomai: 4->iteration 1 ..actual task wake-up....value              1339875162481491620 
[ 4530.483208] Xenomai: 4->1 th jitter initial jitter after first task wake-up....value 156 
[ 4530.483211] 
[ 4530.483215] Xenomai: 2->iteration 2 ..expected task wake-up....value         1339875162481491464 
[ 4530.483216] Xenomai: 2->iteration 2 ..actual task wake-up....value              1339875162481494697 
[ 4530.483218] Xenomai: 2->2 th jitter initial jitter after first task wake-up....value 3233 
[ 4530.483221] 
[ 4530.483224] Xenomai: 1->iteration 4 ..expected task wake-up....value         1339875162481491464 
[ 4530.483226] Xenomai: 1->iteration 4 ..actual task wake-up....value              1339875162481497647 
[ 4530.483228] Xenomai: 1->4 th jitter initial jitter after first task wake-up....value 6183 
#1 lore raw
Quoted 15 lines · Uttamkumar Sinojia

Respected sir,

I have prepared a setup for checking the scheduling jitter values(current time - expected wake-up time) among five periodic task having same priority.

I have created 5 periodic real-time tasks with equal priority(say, 5) and wake them at the same time. Choosen task periods of 100us, 200us, 300us, 400us and 500us , respectively. Here in this case when more than one tasks are going to wake-up at same expected time, which process will be scheduled should be non-deterministic and i was getting it.

Quoted 7 lines

In another case, I have created 5 periodic real-time tasks with equal priority(say, 5) and wake them at the same time. Choosen task periods of 1ms, 2ms, 3ms, 4ms and 5ms , respectively. In this case i was getting the deterministic behavior in scheduling of the task(When expected time for more than one task was same, task with larger period was woken-up first). So, i was not getting the reason for this deterministic behavior.

Please post the test code, tell us which version of xenomai you use, and post the kernel configuration. And explain with the code what you would expect and what you get.

Signature · 1 line
                                                                Gilles.