Skip to contentSkip to conversation

switchbench tests with IPIPE tracer disabled

Adeos-main poornima r 4 participants 10 messages Feb 1, 2007

lore
Share & tools
lore

poornima r

author
#0 lore raw

Hi,

I was able to run latency and switchbench tests on MPC860 board with IPIPE tracer feature enabled/disabled.
Interrupt & scheduling Latencies and switching latencies (with IPIPE tracer option disabled) were having lower values when compared to latency values with IPIPE tracer enabled.
cyclictest test results were same with or without IPIPE tracer enabled.
Is this reduced context switching latency in switchbench test due to timer interrupt?

Thanks,
Poornima

____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

#1 lore raw
Quoted 5 lines · poornima r

Hi,

I was able to run latency and switchbench tests on MPC860 board with IPIPE tracer feature enabled/disabled.

Nice, what versions of Linux and Xenomai did you use for your tests? It is known that Linux 2.6 does not yet work properly for 8xx. It would also be nice if you could briefly post your results on this list as well.

Quoted 4 lines

Interrupt & scheduling Latencies and switching latencies (with IPIPE tracer option disabled) were having lower values when compared to latency values with IPIPE tracer enabled.

The ipipe tracer introduces some overhead (extra code) and as this CPU is very slow, you will notice it.

Quoted 2 lines

cyclictest test results were same with or without IPIPE tracer enabled.

Your results would really be of interest.

Quoted 2 lines

Is this reduced context switching latency in switchbench test due to timer interrupt?

Likely it also due to overhead introduced by the ipipe tracer.

BTW: the switchtest should run as well with the option "-n" (for not using the FPU),

Wolfgang.

author
#2 lore raw

Hi,

Thanks for the reply.

Linux version:linux-2.6.18
Xenomai: xenomai-2.3.0 (Stable version) adeos patch: adeos-ipipe-2.6.18-ppc-1.5-01.patch

The tests were run as follows:
1)The sampling period in the code for latency and switchbench was changed to 1000000000ns(to remove overrun error)
2)switchtest was run with -n5 option 3)cyclictest was run with -t5 option(5 threads were created.)
4)cyclictest was terminated with Illegal instruction (after creating 5 threads) with IPIPE tracer enabled.

These were the results without I-PIPE Tracer option:
(All the tests were run without any load) 1)LATENCY TEST:-
User mode:-
/mnt/out_xen/bin# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT| 00:00:01 (periodic user-mode task, 1000000 us period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     167.000|     167.000|     167.000|       0|  
  167.000|     167.000
RTD|     176.000|     176.000|     176.000|       0|  
  167.000|     176.000
RTD|     168.000|     168.000|     168.000|       0|  
  167.000|     176.000
RTD|     171.000|     171.000|     171.000|       0|  
  167.000|     176.000

Kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     123.000|     123.000|     123.000|       0|  
  123.000|     123.000
RTD|     125.000|     125.000|     125.000|       0|  
  123.000|     125.000
RTD|     128.333|     128.333|     128.333|       0|  
  123.000|     128.333
RTD|     127.000|     127.000|     127.000|       0|  
  123.000|     128.333

Interrupt mode:-

[email protected]# ./latency -t2
== Sampling period: 1000000 us
== Test mode: in-kernel timer handler
== All results in microseconds
warming up...
RTT|  00:00:01  (in-kernel timer handler, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|      45.334|      45.334|      45.334|       0|  
   45.334|      45.334
RTD|      45.000|      45.000|      45.000|       0|  
   45.000|      45.334
RTD|      46.000|      46.000|      46.000|       0|  
   45.000|      46.000
RTD|      47.334|      47.334|      47.334|       0|  
   45.000|      47.334
RTD|      46.334|      46.334|      46.334|       0|  
   45.000|      47.334

2)CYCLICTEST RESULTS:-

[email protected]# ./cyclictest -t5
5.14 3.71 1.72 6/31 216
T: 0 (    0) P:99 I:    1000 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 1 (    0) P:98 I:    1500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 2 (  212) P:97 I:    2000 C:    8112 Min:     169
Act:     189 Avg:     204 Max:     288
T: 3 (    0) P:96 I:    2500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 4 (  216) P:95 I:    3000 C:   21596 Min:     180
Act:    1279 Avg:     702 Max:    1336

3)SWITCHBENCH TEST RESULTS:-

[email protected]# ./switchbench -n5
== Sampling period: 1000000 us
== Do not interrupt this program
RTH|     lat min|     lat avg|     lat max|       
lost
RTD|     229.333|      45.666|     229.333|          
0

Test results with IPIPE tracer enabled
1)LATENCY TEST RESULTS:-
User mode:-

[email protected]# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     340.000|     340.000|     340.000|       0|  
  340.000|     340.000
RTD|     338.666|     338.666|     338.666|       0|  
  338.666|     340.000
RTD|     341.000|     341.000|     341.000|       0|  
  338.666|     341.000
RTD|     342.000|     342.000|     342.000|       0|  
  338.666|     342.000

2)kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     303.333|     303.333|     303.333|       0|  
  303.333|     303.333
RTD|     309.666|     309.666|     309.666|       0|  
  303.333|     309.666
RTD|     325.000|     325.000|     325.000|       0|  
  303.333|     325.000
RTD|     306.333|     306.333|     306.333|       0|  
  303.333|     325.000

Interrupt mode:-

[email protected]# ./latency -t2
== Sampling period: 1000000 us
== Test mode: in-kernel timer handler
== All results in microseconds
warming up...
RTT|  00:00:01  (in-kernel timer handler, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     153.334|     153.334|     153.334|       0|  
  153.334|     153.334
RTD|     154.667|     154.667|     154.667|       0|  
  153.334|     154.667
RTD|     164.334|     164.334|     164.334|       0|  
  153.334|     164.334
RTD|     154.667|     154.667|     154.667|       0|  
  153.334|     164.334
RTD|     163.667|     163.667|     163.667|       0|  
  153.334|     164.334

2)CYCLICTEST RESULTS:-

[email protected]# ./cyclictest -t5
0.18 0.15 0.09 3/26 194
T: 0 (    0) P:99 I:    1000 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 1 (    0) P:98 I:    1500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 2 (  190) P:97 I:    2000 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 3 (    0) P:96 I:    2500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 4 (  193) P:95 I:    3000 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000

Illegal instruction

3)SWITCHBENCHTEST RESULTS:-

[email protected]# ./switchbench -n5
== Sampling period: 1000000 us
== Do not interrupt this program
RTH|     lat min|     lat avg|     lat max|       
lost
RTD|     667.333|     133.333|     667.333|          
0

SWITCHTEST:-
Since FPU is not enabled for ppc, I was not able to get proper results for switchtest. Please mail the results of switchtest.

Thanks,
Poornima

Quoted 32 lines · --- Wolfgang Grandegger
Quoted 5 lines · poornima r

Hi,

I was able to run latency and switchbench tests on MPC860 board with IPIPE tracer feature enabled/disabled.

Nice, what versions of Linux and Xenomai did you use for your tests? It
is known that Linux 2.6 does not yet work properly for 8xx. It would
also be nice if you could briefly post your results on this list as well.

Quoted 3 lines

Interrupt & scheduling Latencies and switching latencies (with IPIPE tracer option disabled) were having lower values when compared to latency

values

Quoted 1 line

with IPIPE tracer enabled.

The ipipe tracer introduces some overhead (extra code) and as this CPU
is very slow, you will notice it.

Quoted 2 lines

cyclictest test results were same with or without IPIPE tracer enabled.

Your results would really be of interest.

Quoted 2 lines

Is this reduced context switching latency in switchbench test due to timer interrupt?

Quoted 10 lines

Likely it also due to overhead introduced by the ipipe tracer.

BTW: the switchtest should run as well with the option "-n" (for not
using the FPU),

Wolfgang.

____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

#3 lore raw
Quoted 7 lines · poornima r

Hi,

Thanks for the reply.

Linux version:linux-2.6.18
Xenomai: xenomai-2.3.0 (Stable version)
adeos patch: adeos-ipipe-2.6.18-ppc-1.5-01.patch

OK, I'm curious, did you use the vanilla kernel from kernel.org? More comments below.

Quoted 62 lines

The tests were run as follows:
1)The sampling period in the code for latency and switchbench was changed to 1000000000ns(to remove overrun error) 2)switchtest was run with -n5 option 3)cyclictest was run with -t5 option(5 threads were created.) 4)cyclictest was terminated with Illegal instruction (after creating 5 threads) with IPIPE tracer enabled.

These were the results without I-PIPE Tracer option:
(All the tests were run without any load) 1)LATENCY TEST:-
User mode:-
/mnt/out_xen/bin# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT| 00:00:01 (periodic user-mode task, 1000000 us period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     167.000|     167.000|     167.000|       0|  
  167.000|     167.000
RTD|     176.000|     176.000|     176.000|       0|  
  167.000|     176.000
RTD|     168.000|     168.000|     168.000|       0|  
  167.000|     176.000
RTD|     171.000|     171.000|     171.000|       0|  
  167.000|     176.000

Kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     123.000|     123.000|     123.000|       0|  
  123.000|     123.000
RTD|     125.000|     125.000|     125.000|       0|  
  123.000|     125.000
RTD|     128.333|     128.333|     128.333|       0|  
  123.000|     128.333
RTD|     127.000|     127.000|     127.000|       0|  
  123.000|     128.333

Interrupt mode:-

[email protected]# ./latency -t2
== Sampling period: 1000000 us
== Test mode: in-kernel timer handler
== All results in microseconds
warming up...
RTT|  00:00:01  (in-kernel timer handler, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|      45.334|      45.334|      45.334|       0|  
   45.334|      45.334
Quoted 8 lines
RTD|      45.000|      45.000|      45.000|       0|  
   45.000|      45.334
RTD|      46.000|      46.000|      46.000|       0|  
   45.000|      46.000
RTD|      47.334|      47.334|      47.334|       0|  
   45.000|      47.334
RTD|      46.334|      46.334|      46.334|       0|  
   45.000|      47.334

I remember similar figures from measurements under 2.4. I guess you tested without load!? Nevertheless, most of the latency is due to code execution time because the system is very slow and the caches are small. The sampling period is 1 second. I think "-p500" should already work.

Quoted 4 lines

2)CYCLICTEST RESULTS:-

[email protected]# ./cyclictest -t5
5.14 3.71 1.72 6/31 216
Quoted 10 lines
T: 0 (    0) P:99 I:    1000 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 1 (    0) P:98 I:    1500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 2 (  212) P:97 I:    2000 C:    8112 Min:     169
Act:     189 Avg:     204 Max:     288
T: 3 (    0) P:96 I:    2500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 4 (  216) P:95 I:    3000 C:   21596 Min:     180
Act:    1279 Avg:     702 Max:    1336

Hm, this looks bogus. What returns "./cyclictest" without options (or -t1)?

Quoted 59 lines

3)SWITCHBENCH TEST RESULTS:-

[email protected]# ./switchbench -n5
== Sampling period: 1000000 us
== Do not interrupt this program
RTH|     lat min|     lat avg|     lat max|       lost
RTD|     229.333|      45.666|     229.333|          0

Test results with IPIPE tracer enabled
1)LATENCY TEST RESULTS:-
User mode:-

[email protected]# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     340.000|     340.000|     340.000|       0|  
  340.000|     340.000
RTD|     338.666|     338.666|     338.666|       0|  
  338.666|     340.000
RTD|     341.000|     341.000|     341.000|       0|  
  338.666|     341.000
RTD|     342.000|     342.000|     342.000|       0|  
  338.666|     342.000

2)kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     303.333|     303.333|     303.333|       0|  
  303.333|     303.333
RTD|     309.666|     309.666|     309.666|       0|  
  303.333|     309.666
RTD|     325.000|     325.000|     325.000|       0|  
  303.333|     325.000
RTD|     306.333|     306.333|     306.333|       0|  
  303.333|     325.000

Interrupt mode:-

[email protected]# ./latency -t2
== Sampling period: 1000000 us
== Test mode: in-kernel timer handler
== All results in microseconds
warming up...
RTT|  00:00:01  (in-kernel timer handler, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     153.334|     153.334|     153.334|       0|  
  153.334|     153.334
Quoted 8 lines
RTD|     154.667|     154.667|     154.667|       0|  
  153.334|     154.667
RTD|     164.334|     164.334|     164.334|       0|  
  153.334|     164.334
RTD|     154.667|     154.667|     154.667|       0|  
  153.334|     164.334
RTD|     163.667|     163.667|     163.667|       0|  
  153.334|     164.334

The IPIPE tracer seems to add quit some code, Jan, does this look OK for you?

Quoted 14 lines

2)CYCLICTEST RESULTS:-

[email protected]# ./cyclictest -t5
0.18 0.15 0.09 3/26 194
T: 0 (    0) P:99 I:    1000 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 1 (    0) P:98 I:    1500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 2 (  190) P:97 I:    2000 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 3 (    0) P:96 I:    2500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 4 (  193) P:95 I:    3000 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
Quoted 1 line

Illegal instruction

Can you post the output of /proc/xenomai/faults after the illegal instruction.

Quoted 8 lines

3)SWITCHBENCHTEST RESULTS:-

[email protected]# ./switchbench -n5
== Sampling period: 1000000 us
== Do not interrupt this program
RTH|     lat min|     lat avg|     lat max|       lost
RTD|     667.333|     133.333|     667.333|          0
Quoted 4 lines

SWITCHTEST:-
Since FPU is not enabled for ppc, I was not able to get proper results for switchtest. Please mail the results of switchtest.

"switchtest -n" will not use FPU instructions. Does this work?

Thanks.

Wolfgang.

Quoted 49 lines

Thanks,
Poornima

Quoted 25 lines · --- Wolfgang Grandegger
Quoted 5 lines · poornima r

Hi,

I was able to run latency and switchbench tests on MPC860 board with IPIPE tracer feature enabled/disabled.

Nice, what versions of Linux and Xenomai did you use
for your tests? It is known that Linux 2.6 does not yet work properly for 8xx. It would also be nice if you could briefly post your results on this list as well.

Quoted 3 lines

Interrupt & scheduling Latencies and switching latencies (with IPIPE tracer option disabled) were having lower values when compared to latency

values

Quoted 1 line

with IPIPE tracer enabled.

The ipipe tracer introduces some overhead (extra code) and as this CPU is very slow, you will notice it.

Quoted 2 lines

cyclictest test results were same with or without IPIPE tracer enabled.

Your results would really be of interest.

Quoted 2 lines

Is this reduced context switching latency in switchbench test due to timer interrupt?

Quoted 9 lines

Likely it also due to overhead introduced by the
ipipe tracer.

BTW: the switchtest should run as well with the
option "-n" (for not using the FPU),

Wolfgang.

____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

author
#4 lore raw

Hi,

1)I am using open source kernel from Kernel.org, but what is meant by vanilla kernel from Kernel.org?

2)With sampling period of 500usec the system simply hangs without printing any results (./latenct -p500)

3)cyclictest with -t1 option (without IPIPE-tracer)

[email protected]# ./cyclictest -t1
2.04 0.50 0.17 8/27 174

T: 0 ( 0) P:99 I: 1000 C: 0 Min: 1000000
Act: 0 Avg: 0 Max:-1000000
Illegal instruction

4)Output of /proc/xenomai/faults after the illegal instruction:-

[email protected]# cat
/proc/xenomai/faults
TRAP         CPU0
  0:            0    (Data or instruction access)
  1:            0    (Alignment)
  2:            0    (Altivec unavailable)
  3:            0    (Program check exception)
  4:            0    (Machine check exception)
  5:            0    (Unknown)
  6:            0    (Instruction breakpoint)
  7:            0    (Run mode exception)
  8:            0    (Single-step exception)
  9:            0    (Non-recoverable exception)
 10:            1    (Software emulation)
 11:            0    (Debug)
 12:            0    (SPE)
 13:            0    (Altivec assist)

5)Running switchtest:-

[email protected]# ./switchtest -n
--The system hangs wihtout printing any results

Thanks,
Poornima

Quoted 190 lines · --- Wolfgang Grandegger
Quoted 7 lines · poornima r

Hi,

Thanks for the reply.

Linux version:linux-2.6.18
Xenomai: xenomai-2.3.0 (Stable version)
adeos patch: adeos-ipipe-2.6.18-ppc-1.5-01.patch

OK, I'm curious, did you use the vanilla kernel from kernel.org?
More comments below.

Quoted 8 lines

The tests were run as follows:
1)The sampling period in the code for latency and
switchbench was changed to 1000000000ns(to remove
overrun error)
2)switchtest was run with -n5 option
3)cyclictest was run with -t5 option(5 threads
were created.)
4)cyclictest was terminated with Illegal

instruction

Quoted 1 line

(after creating 5 threads) with IPIPE tracer

enabled.

Quoted 2 lines

These were the results without I-PIPE Tracer

option:

Quoted 9 lines

(All the tests were run without any load)
1)LATENCY TEST:-
User mode:-
/mnt/out_xen/bin# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT| 00:00:01 (periodic user-mode task, 1000000

us

Quoted 4 lines

period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     167.000|     167.000|     167.000|      

0|

Quoted 2 lines

167.000| 167.000
RTD| 176.000| 176.000| 176.000|

0|

Quoted 2 lines

167.000| 176.000
RTD| 168.000| 168.000| 168.000|

0|

Quoted 2 lines

167.000| 176.000
RTD| 171.000| 171.000| 171.000|

0|

Quoted 9 lines

167.000| 176.000

Kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000

us

Quoted 4 lines

period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     123.000|     123.000|     123.000|      

0|

Quoted 2 lines

123.000| 123.000
RTD| 125.000| 125.000| 125.000|

0|

Quoted 2 lines

123.000| 125.000
RTD| 128.333| 128.333| 128.333|

0|

Quoted 2 lines

123.000| 128.333
RTD| 127.000| 127.000| 127.000|

0|

Quoted 9 lines

123.000| 128.333

Interrupt mode:-

[email protected]# ./latency -t2
== Sampling period: 1000000 us
== Test mode: in-kernel timer handler
== All results in microseconds
warming up...
RTT|  00:00:01  (in-kernel timer handler, 1000000

us

Quoted 4 lines

period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|      45.334|      45.334|      45.334|      

0|

Quoted 2 lines
   45.334|      45.334

RTD| 45.000| 45.000| 45.000|

0|

Quoted 2 lines
   45.000|      45.334

RTD| 46.000| 46.000| 46.000|

0|

Quoted 2 lines
   45.000|      46.000

RTD| 47.334| 47.334| 47.334|

0|

Quoted 2 lines
   45.000|      47.334

RTD| 46.334| 46.334| 46.334|

0|

Quoted 1 line
   45.000|      47.334

I remember similar figures from measurements under 2.4. I guess you
tested without load!? Nevertheless, most of the latency is due to code
execution time because the system is very slow and the caches are small.
The sampling period is 1 second. I think "-p500" should already work.

Quoted 2 lines

2)CYCLICTEST RESULTS:-

[email protected]# ./cyclictest

-t5

Quoted 3 lines

5.14 3.71 1.72 6/31 216

T: 0 ( 0) P:99 I: 1000 C: 0 Min:

1000000

Quoted 2 lines

Act: 0 Avg: 0 Max:-1000000
T: 1 ( 0) P:98 I: 1500 C: 0 Min:

1000000

Quoted 2 lines

Act: 0 Avg: 0 Max:-1000000
T: 2 ( 212) P:97 I: 2000 C: 8112 Min:

169

Quoted 2 lines

Act: 189 Avg: 204 Max: 288
T: 3 ( 0) P:96 I: 2500 C: 0 Min:

1000000

Quoted 2 lines

Act: 0 Avg: 0 Max:-1000000
T: 4 ( 216) P:95 I: 3000 C: 21596 Min:

180

Quoted 1 line

Act: 1279 Avg: 702 Max: 1336

Hm, this looks bogus. What returns "./cyclictest"
without options (or -t1)?

Quoted 2 lines

3)SWITCHBENCH TEST RESULTS:-

[email protected]# ./switchbench

-n5

Quoted 11 lines

== Sampling period: 1000000 us
== Do not interrupt this program
RTH| lat min| lat avg| lat max|
lost
RTD| 229.333| 45.666| 229.333|

0

Test results with IPIPE tracer enabled
1)LATENCY TEST RESULTS:-
User mode:-

Quoted 6 lines
[email protected]# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 1000000

us

Quoted 4 lines

period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     340.000|     340.000|     340.000|      

0|

Quoted 2 lines

340.000| 340.000
RTD| 338.666| 338.666| 338.666|

0|

Quoted 2 lines

338.666| 340.000
RTD| 341.000| 341.000| 341.000|

0|

Quoted 2 lines

338.666| 341.000
RTD| 342.000| 342.000| 342.000|

0|

Quoted 9 lines

338.666| 342.000

2)kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000

us

Quoted 4 lines

period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     303.333|     303.333|     303.333|      

0|

Quoted 2 lines

303.333| 303.333
RTD| 309.666| 309.666| 309.666|

Quoted 12 lines

0|

Quoted 2 lines

303.333| 309.666
RTD| 325.000| 325.000| 325.000|

0|

Quoted 2 lines

303.333| 325.000
RTD| 306.333| 306.333| 306.333|

0|

Quoted 4 lines

303.333| 325.000

Interrupt mode:-

[email protected]# ./latency -t2

=== message truncated ===

____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

#5 lore raw
Quoted 4 lines · poornima r

Hi,

1)I am using open source kernel from Kernel.org, but what is meant by vanilla kernel from Kernel.org?

It's the kernel from kernel.org. This means that the Linux kernel 2.6.18 is running fine on your MPC860 platform as is? Thanks for the info.

Quoted 2 lines

2)With sampling period of 500usec the system simply hangs without printing any results (./latenct -p500)

OK.

Quoted 19 lines

3)cyclictest with -t1 option (without IPIPE-tracer)

[email protected]# ./cyclictest -t1
2.04 0.50 0.17 8/27 174

T: 0 ( 0) P:99 I: 1000 C: 0 Min: 1000000
Act: 0 Avg: 0 Max:-1000000
Illegal instruction

4)Output of /proc/xenomai/faults after the illegal instruction:-

[email protected]# cat
/proc/xenomai/faults
TRAP         CPU0
  0:            0    (Data or instruction access)
  1:            0    (Alignment)
  2:            0    (Altivec unavailable)
  3:            0    (Program check exception)
  4:            0    (Machine check exception)
  5:            0    (Unknown)
Quoted 8 lines
  6:            0    (Instruction breakpoint)
  7:            0    (Run mode exception)
  8:            0    (Single-step exception)
  9:            0    (Non-recoverable exception)
 10:            1    (Software emulation)
 11:            0    (Debug)
 12:            0    (SPE)
 13:            0    (Altivec assist)

Hm, I see a software emulation exception which is also the reason for the illegal instructions. What toolchain do you use? The toolchain should support software FP emulation.

Quoted 213 lines

5)Running switchtest:-

[email protected]# ./switchtest -n
--The system hangs wihtout printing any results

Thanks,
Poornima

Quoted 181 lines · --- Wolfgang Grandegger
Quoted 7 lines · poornima r

Hi,

Thanks for the reply.

Linux version:linux-2.6.18
Xenomai: xenomai-2.3.0 (Stable version)
adeos patch: adeos-ipipe-2.6.18-ppc-1.5-01.patch

OK, I'm curious, did you use the vanilla kernel from kernel.org?
More comments below.

Quoted 6 lines

The tests were run as follows:
1)The sampling period in the code for latency and switchbench was changed to 1000000000ns(to remove overrun error) 2)switchtest was run with -n5 option 3)cyclictest was run with -t5 option(5 threads were created.) 4)cyclictest was terminated with Illegal

instruction

Quoted 1 line

(after creating 5 threads) with IPIPE tracer

enabled.

Quoted 1 line

These were the results without I-PIPE Tracer

option:

Quoted 9 lines

(All the tests were run without any load)
1)LATENCY TEST:-
User mode:-
/mnt/out_xen/bin# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT| 00:00:01 (periodic user-mode task, 1000000

us

Quoted 4 lines

period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     167.000|     167.000|     167.000|      

0|

Quoted 2 lines

167.000| 167.000
RTD| 176.000| 176.000| 176.000|

0|

Quoted 2 lines

167.000| 176.000
RTD| 168.000| 168.000| 168.000|

0|

Quoted 2 lines

167.000| 176.000
RTD| 171.000| 171.000| 171.000|

0|

Quoted 9 lines

167.000| 176.000

Kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000

us

Quoted 4 lines

period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     123.000|     123.000|     123.000|      

0|

Quoted 2 lines

123.000| 123.000
RTD| 125.000| 125.000| 125.000|

0|

Quoted 2 lines

123.000| 125.000
RTD| 128.333| 128.333| 128.333|

0|

Quoted 2 lines

123.000| 128.333
RTD| 127.000| 127.000| 127.000|

0|

Quoted 9 lines

123.000| 128.333

Interrupt mode:-

[email protected]# ./latency -t2
== Sampling period: 1000000 us
== Test mode: in-kernel timer handler
== All results in microseconds
warming up...
RTT|  00:00:01  (in-kernel timer handler, 1000000

us

Quoted 4 lines

period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|      45.334|      45.334|      45.334|      

0|

Quoted 2 lines
   45.334|      45.334

RTD| 45.000| 45.000| 45.000|

0|

Quoted 2 lines
   45.000|      45.334

RTD| 46.000| 46.000| 46.000|

0|

Quoted 2 lines
   45.000|      46.000

RTD| 47.334| 47.334| 47.334|

0|

Quoted 2 lines
   45.000|      47.334

RTD| 46.334| 46.334| 46.334|

0|

Quoted 1 line
   45.000|      47.334

I remember similar figures from measurements under
2.4. I guess you tested without load!? Nevertheless, most of the latency is due to code execution time because the system is very slow and the caches are small.
The sampling period is 1 second. I think "-p500"
should already work.

Quoted 2 lines

2)CYCLICTEST RESULTS:-

[email protected]# ./cyclictest

-t5

Quoted 3 lines

5.14 3.71 1.72 6/31 216

T: 0 ( 0) P:99 I: 1000 C: 0 Min:

1000000

Quoted 2 lines

Act: 0 Avg: 0 Max:-1000000
T: 1 ( 0) P:98 I: 1500 C: 0 Min:

1000000

Quoted 2 lines

Act: 0 Avg: 0 Max:-1000000
T: 2 ( 212) P:97 I: 2000 C: 8112 Min:

169

Quoted 2 lines

Act: 189 Avg: 204 Max: 288
T: 3 ( 0) P:96 I: 2500 C: 0 Min:

1000000

Quoted 2 lines

Act: 0 Avg: 0 Max:-1000000
T: 4 ( 216) P:95 I: 3000 C: 21596 Min:

180

Quoted 1 line

Act: 1279 Avg: 702 Max: 1336

Hm, this looks bogus. What returns "./cyclictest"
without options (or -t1)?

Quoted 2 lines

3)SWITCHBENCH TEST RESULTS:-

[email protected]# ./switchbench

-n5

Quoted 10 lines

== Sampling period: 1000000 us
== Do not interrupt this program

RTH|     lat min|     lat avg|     lat max|       lost
RTD|     229.333|      45.666|     229.333|       

0

Test results with IPIPE tracer enabled
1)LATENCY TEST RESULTS:-
User mode:-

Quoted 6 lines
[email protected]# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 1000000

us

Quoted 4 lines

period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     340.000|     340.000|     340.000|      

0|

Quoted 2 lines

340.000| 340.000
RTD| 338.666| 338.666| 338.666|

0|

Quoted 2 lines

338.666| 340.000
RTD| 341.000| 341.000| 341.000|

0|

Quoted 2 lines

338.666| 341.000
RTD| 342.000| 342.000| 342.000|

0|

Quoted 9 lines

338.666| 342.000

2)kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000

us

Quoted 4 lines

period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     303.333|     303.333|     303.333|      

0|

Quoted 2 lines

303.333| 303.333
RTD| 309.666| 309.666| 309.666|

Quoted 11 lines

0|

Quoted 2 lines

303.333| 309.666
RTD| 325.000| 325.000| 325.000|

0|

Quoted 2 lines

303.333| 325.000
RTD| 306.333| 306.333| 306.333|

0|

Quoted 4 lines

303.333| 325.000

Interrupt mode:-

[email protected]# ./latency -t2

=== message truncated ===

____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

#6 lore raw
In reply to Wolfgang Grandegger
Quoted 173 lines · Wolfgang Grandegger
Quoted 7 lines · poornima r

Hi,

Thanks for the reply.

Linux version:linux-2.6.18
Xenomai: xenomai-2.3.0 (Stable version)
adeos patch: adeos-ipipe-2.6.18-ppc-1.5-01.patch

OK, I'm curious, did you use the vanilla kernel from kernel.org? More comments below.

Quoted 62 lines

The tests were run as follows:
1)The sampling period in the code for latency and switchbench was changed to 1000000000ns(to remove overrun error) 2)switchtest was run with -n5 option 3)cyclictest was run with -t5 option(5 threads were created.) 4)cyclictest was terminated with Illegal instruction (after creating 5 threads) with IPIPE tracer enabled.

These were the results without I-PIPE Tracer option:
(All the tests were run without any load) 1)LATENCY TEST:-
User mode:-
/mnt/out_xen/bin# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT| 00:00:01 (periodic user-mode task, 1000000 us period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     167.000|     167.000|     167.000|       0|    167.000|    

167.000
RTD| 176.000| 176.000| 176.000| 0| 167.000|
176.000
RTD| 168.000| 168.000| 168.000| 0| 167.000|
176.000
RTD| 171.000| 171.000| 171.000| 0| 167.000|
176.000

Kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     123.000|     123.000|     123.000|       0|    123.000|    
123.000
RTD|     125.000|     125.000|     125.000|       0|    123.000|    
125.000
RTD|     128.333|     128.333|     128.333|       0|    123.000|    
128.333
RTD|     127.000|     127.000|     127.000|       0|    123.000|    
128.333

Interrupt mode:-

[email protected]# ./latency -t2
== Sampling period: 1000000 us
== Test mode: in-kernel timer handler
== All results in microseconds
warming up...
RTT|  00:00:01  (in-kernel timer handler, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|      45.334|      45.334|      45.334|       0|     45.334|     
45.334
Quoted 8 lines
RTD|      45.000|      45.000|      45.000|       0|     45.000|     
45.334
RTD|      46.000|      46.000|      46.000|       0|     45.000|     
46.000
RTD|      47.334|      47.334|      47.334|       0|     45.000|     
47.334
RTD|      46.334|      46.334|      46.334|       0|     45.000|     
47.334

I remember similar figures from measurements under 2.4. I guess you tested without load!? Nevertheless, most of the latency is due to code execution time because the system is very slow and the caches are small. The sampling period is 1 second. I think "-p500" should already work.

Quoted 4 lines

2)CYCLICTEST RESULTS:-

[email protected]# ./cyclictest -t5
5.14 3.71 1.72 6/31 216
Quoted 10 lines
T: 0 (    0) P:99 I:    1000 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 1 (    0) P:98 I:    1500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 2 (  212) P:97 I:    2000 C:    8112 Min:     169
Act:     189 Avg:     204 Max:     288
T: 3 (    0) P:96 I:    2500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 4 (  216) P:95 I:    3000 C:   21596 Min:     180
Act:    1279 Avg:     702 Max:    1336

Hm, this looks bogus. What returns "./cyclictest" without options (or -t1)?

Quoted 59 lines

3)SWITCHBENCH TEST RESULTS:-

[email protected]# ./switchbench -n5
== Sampling period: 1000000 us
== Do not interrupt this program
RTH|     lat min|     lat avg|     lat max|       lost
RTD|     229.333|      45.666|     229.333|          0

Test results with IPIPE tracer enabled
1)LATENCY TEST RESULTS:-
User mode:-

[email protected]# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     340.000|     340.000|     340.000|       0|    340.000|    
340.000
RTD|     338.666|     338.666|     338.666|       0|    338.666|    
340.000
RTD|     341.000|     341.000|     341.000|       0|    338.666|    
341.000
RTD|     342.000|     342.000|     342.000|       0|    338.666|    
342.000

2)kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     303.333|     303.333|     303.333|       0|    303.333|    
303.333
RTD|     309.666|     309.666|     309.666|       0|    303.333|    
309.666
RTD|     325.000|     325.000|     325.000|       0|    303.333|    
325.000
RTD|     306.333|     306.333|     306.333|       0|    303.333|    
325.000

Interrupt mode:-

[email protected]# ./latency -t2
== Sampling period: 1000000 us
== Test mode: in-kernel timer handler
== All results in microseconds
warming up...
RTT|  00:00:01  (in-kernel timer handler, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     153.334|     153.334|     153.334|       0|    153.334|    
153.334
Quoted 8 lines
RTD|     154.667|     154.667|     154.667|       0|    153.334|    
154.667
RTD|     164.334|     164.334|     164.334|       0|    153.334|    
164.334
RTD|     154.667|     154.667|     154.667|       0|    153.334|    
164.334
RTD|     163.667|     163.667|     163.667|       0|    153.334|    
164.334
Quoted 2 lines

The IPIPE tracer seems to add quit some code, Jan, does this look OK for you?

I've seen almost 2 times higher numbers on an old Pentium I 133 MHz. But I'm lacking information to relate this particular system to that values. The increment appears to be fairly high.

BTW, latests i-pipe patches for x86 now include a simple calibration loop to estimate the minimum tracing overhead per function call. So, when looking at a real trace, one might be able to asses the impact better.

Jan

#7 lore raw
Quoted 142 lines · Jan Kiszka
Quoted 141 lines · Wolfgang Grandegger
Quoted 7 lines · poornima r

Hi,

Thanks for the reply.

Linux version:linux-2.6.18
Xenomai: xenomai-2.3.0 (Stable version)
adeos patch: adeos-ipipe-2.6.18-ppc-1.5-01.patch

OK, I'm curious, did you use the vanilla kernel from kernel.org? More comments below.

Quoted 41 lines

The tests were run as follows:
1)The sampling period in the code for latency and switchbench was changed to 1000000000ns(to remove overrun error) 2)switchtest was run with -n5 option 3)cyclictest was run with -t5 option(5 threads were created.) 4)cyclictest was terminated with Illegal instruction (after creating 5 threads) with IPIPE tracer enabled. These were the results without I-PIPE Tracer option:
(All the tests were run without any load)
1)LATENCY TEST:-
User mode:-
/mnt/out_xen/bin# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT| 00:00:01 (periodic user-mode task, 1000000 us period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     167.000|     167.000|     167.000|       0|    167.000|    167.000
RTD|     176.000|     176.000|     176.000|       0|    167.000|    176.000
RTD|     168.000|     168.000|     168.000|       0|    167.000|    176.000
RTD|     171.000|     171.000|     171.000|       0|    167.000|    176.000

Kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     123.000|     123.000|     123.000|       0|    123.000|    123.000
RTD|     125.000|     125.000|     125.000|       0|    123.000|    125.000
RTD|     128.333|     128.333|     128.333|       0|    123.000|    128.333
RTD|     127.000|     127.000|     127.000|       0|    123.000|    128.333

Interrupt mode:-

Quoted 14 lines
[email protected]# ./latency -t2
== Sampling period: 1000000 us
== Test mode: in-kernel timer handler
== All results in microseconds
warming up...
RTT|  00:00:01  (in-kernel timer handler, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|      45.334|      45.334|      45.334|       0|     45.334|     45.334
RTD|      45.000|      45.000|      45.000|       0|     45.000|     45.334
RTD|      46.000|      46.000|      46.000|       0|     45.000|     46.000
RTD|      47.334|      47.334|      47.334|       0|     45.000|     47.334
RTD|      46.334|      46.334|      46.334|       0|     45.000|     47.334

I remember similar figures from measurements under 2.4. I guess you tested without load!? Nevertheless, most of the latency is due to code execution time because the system is very slow and the caches are small. The sampling period is 1 second. I think "-p500" should already work.

Quoted 4 lines

2)CYCLICTEST RESULTS:-

[email protected]# ./cyclictest -t5
5.14 3.71 1.72 6/31 216
Quoted 10 lines
T: 0 (    0) P:99 I:    1000 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 1 (    0) P:98 I:    1500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 2 (  212) P:97 I:    2000 C:    8112 Min:     169
Act:     189 Avg:     204 Max:     288
T: 3 (    0) P:96 I:    2500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 4 (  216) P:95 I:    3000 C:   21596 Min:     180
Act:    1279 Avg:     702 Max:    1336

Hm, this looks bogus. What returns "./cyclictest" without options (or -t1)?

Quoted 54 lines

3)SWITCHBENCH TEST RESULTS:-

[email protected]# ./switchbench -n5
== Sampling period: 1000000 us
== Do not interrupt this program
RTH|     lat min|     lat avg|     lat max|       lost
RTD|     229.333|      45.666|     229.333|          0

Test results with IPIPE tracer enabled
1)LATENCY TEST RESULTS:-
User mode:-

[email protected]# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     340.000|     340.000|     340.000|       0|    340.000|    340.000
RTD|     338.666|     338.666|     338.666|       0|    338.666|    340.000
RTD|     341.000|     341.000|     341.000|       0|    338.666|    341.000
RTD|     342.000|     342.000|     342.000|       0|    338.666|    342.000

2)kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     303.333|     303.333|     303.333|       0|    303.333|    303.333
RTD|     309.666|     309.666|     309.666|       0|    303.333|    309.666
RTD|     325.000|     325.000|     325.000|       0|    303.333|    325.000
RTD|     306.333|     306.333|     306.333|       0|    303.333|    325.000

Interrupt mode:-

[email protected]# ./latency -t2
== Sampling period: 1000000 us
== Test mode: in-kernel timer handler
== All results in microseconds
warming up...
RTT|  00:00:01  (in-kernel timer handler, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     153.334|     153.334|     153.334|       0|    153.334|    153.334
RTD|     154.667|     154.667|     154.667|       0|    153.334|    154.667
RTD|     164.334|     164.334|     164.334|       0|    153.334|    164.334
RTD|     154.667|     154.667|     154.667|       0|    153.334|    164.334
RTD|     163.667|     163.667|     163.667|       0|    153.334|    164.334
Quoted 6 lines
Quoted 2 lines

The IPIPE tracer seems to add quit some code, Jan, does this look OK for you?

I've seen almost 2 times higher numbers on an old Pentium I 133 MHz. But I'm lacking information to relate this particular system to that values. The increment appears to be fairly high.

It's a MPC860 at 50 MHz, I guess, which is slower than a Pentium I at 133 MHz. The factor of 2 matches fine (= twice as as much code).

Quoted 3 lines

BTW, latests i-pipe patches for x86 now include a simple calibration loop to estimate the minimum tracing overhead per function call. So, when looking at a real trace, one might be able to asses the impact better.

Is it already in IPIPE v1.5?

Wolfgang.

#8 lore raw
Quoted 173 lines · Wolfgang Grandegger
Quoted 172 lines · Jan Kiszka
Quoted 170 lines · Wolfgang Grandegger
Quoted 7 lines · poornima r

Hi,

Thanks for the reply.

Linux version:linux-2.6.18
Xenomai: xenomai-2.3.0 (Stable version)
adeos patch: adeos-ipipe-2.6.18-ppc-1.5-01.patch

OK, I'm curious, did you use the vanilla kernel from kernel.org? More comments below.

Quoted 60 lines

The tests were run as follows:
1)The sampling period in the code for latency and switchbench was changed to 1000000000ns(to remove overrun error) 2)switchtest was run with -n5 option 3)cyclictest was run with -t5 option(5 threads were created.) 4)cyclictest was terminated with Illegal instruction (after creating 5 threads) with IPIPE tracer enabled. These were the results without I-PIPE Tracer option:
(All the tests were run without any load)
1)LATENCY TEST:-
User mode:-
/mnt/out_xen/bin# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT| 00:00:01 (periodic user-mode task, 1000000 us period, priority 99)

RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     167.000|     167.000|     167.000|       0|    167.000|   

167.000
RTD| 176.000| 176.000| 176.000| 0| 167.000|
176.000
RTD| 168.000| 168.000| 168.000| 0| 167.000|
176.000
RTD| 171.000| 171.000| 171.000| 0| 167.000|
176.000

Kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     123.000|     123.000|     123.000|       0|    123.000|   
123.000
RTD|     125.000|     125.000|     125.000|       0|    123.000|   
125.000
RTD|     128.333|     128.333|     128.333|       0|    123.000|   
128.333
RTD|     127.000|     127.000|     127.000|       0|    123.000|   
128.333

Interrupt mode:-

[email protected]# ./latency -t2
== Sampling period: 1000000 us
== Test mode: in-kernel timer handler
== All results in microseconds
warming up...
RTT|  00:00:01  (in-kernel timer handler, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|      45.334|      45.334|      45.334|       0|     45.334|    
45.334
Quoted 8 lines
RTD|      45.000|      45.000|      45.000|       0|     45.000|    
45.334
RTD|      46.000|      46.000|      46.000|       0|     45.000|    
46.000
RTD|      47.334|      47.334|      47.334|       0|     45.000|    
47.334
RTD|      46.334|      46.334|      46.334|       0|     45.000|    
47.334

I remember similar figures from measurements under 2.4. I guess you tested without load!? Nevertheless, most of the latency is due to code execution time because the system is very slow and the caches are small. The sampling period is 1 second. I think "-p500" should already work.

Quoted 4 lines

2)CYCLICTEST RESULTS:-

[email protected]# ./cyclictest -t5
5.14 3.71 1.72 6/31 216
Quoted 10 lines
T: 0 (    0) P:99 I:    1000 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 1 (    0) P:98 I:    1500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 2 (  212) P:97 I:    2000 C:    8112 Min:     169
Act:     189 Avg:     204 Max:     288
T: 3 (    0) P:96 I:    2500 C:       0 Min: 1000000
Act:       0 Avg:       0 Max:-1000000
T: 4 (  216) P:95 I:    3000 C:   21596 Min:     180
Act:    1279 Avg:     702 Max:    1336

Hm, this looks bogus. What returns "./cyclictest" without options (or -t1)?

Quoted 59 lines

3)SWITCHBENCH TEST RESULTS:-

[email protected]# ./switchbench -n5
== Sampling period: 1000000 us
== Do not interrupt this program
RTH|     lat min|     lat avg|     lat max|       lost
RTD|     229.333|      45.666|     229.333|          0

Test results with IPIPE tracer enabled
1)LATENCY TEST RESULTS:-
User mode:-

[email protected]# ./latency -t0
== Sampling period: 1000000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     340.000|     340.000|     340.000|       0|    340.000|   
340.000
RTD|     338.666|     338.666|     338.666|       0|    338.666|   
340.000
RTD|     341.000|     341.000|     341.000|       0|    338.666|   
341.000
RTD|     342.000|     342.000|     342.000|       0|    338.666|   
342.000

2)kernel mode:-

[email protected]# ./latency -t1
== Sampling period: 1000000 us
== Test mode: in-kernel periodic task
== All results in microseconds
warming up...
RTT|  00:00:00  (in-kernel periodic task, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     303.333|     303.333|     303.333|       0|    303.333|   
303.333
RTD|     309.666|     309.666|     309.666|       0|    303.333|   
309.666
RTD|     325.000|     325.000|     325.000|       0|    303.333|   
325.000
RTD|     306.333|     306.333|     306.333|       0|    303.333|   
325.000

Interrupt mode:-

[email protected]# ./latency -t2
== Sampling period: 1000000 us
== Test mode: in-kernel timer handler
== All results in microseconds
warming up...
RTT|  00:00:01  (in-kernel timer handler, 1000000 us
period, priority 99)
RTH|-----lat min|-----lat avg|-----lat
max|-overrun|----lat best|---lat worst
RTD|     153.334|     153.334|     153.334|       0|    153.334|   
153.334
Quoted 8 lines
RTD|     154.667|     154.667|     154.667|       0|    153.334|   
154.667
RTD|     164.334|     164.334|     164.334|       0|    153.334|   
164.334
RTD|     154.667|     154.667|     154.667|       0|    153.334|   
164.334
RTD|     163.667|     163.667|     163.667|       0|    153.334|   
164.334

The IPIPE tracer seems to add quit some code, Jan, does this look OK for you?

Quoted 6 lines
Quoted 3 lines

I've seen almost 2 times higher numbers on an old Pentium I 133 MHz. But I'm lacking information to relate this particular system to that values. The increment appears to be fairly high.

It's a MPC860 at 50 MHz, I guess, which is slower than a Pentium I at 133 MHz. The factor of 2 matches fine (= twice as as much code).

Yeah, might explain it. Seeing some back trace might explain it even better...

Quoted 7 lines
Quoted 5 lines

BTW, latests i-pipe patches for x86 now include a simple calibration loop to estimate the minimum tracing overhead per function call. So, when looking at a real trace, one might be able to asses the impact better.

Is it already in IPIPE v1.5?

http://www.denx.de/cgi-bin/gitweb.cgi?p=ipipe-2.6.git;a=commitdiff;h=fbf44bc1edb77d433a327d1796128d036188635e
(there are no tags in the non-arch branch, are there?)

In the x86 branch, that was merged for 1.6-05.

Jan