Skip to contentSkip to conversation

port 2.6.19 x86_64 to 2.6.20

Adeos-main Applied trem 3 participants 8 messages Feb 25, 2007 – Mar 30, 2007

lore
Share & tools
lore

trem

author
#0 lore raw

Hi

I've tried to port the 2.6.19 x86_64 adeos patch to 2.6.20. you can find it here :
http://zarb.org/~trem/adeos-ipipe-2.6.20-x86_64-1.7-03-trem.patch

I can apply it with with prepare_kernel.sh (from xenomai svn), but I haven't tested it yet (I mean run kernel).

I hope this patch is good enough to be used. Otherwise, I'd be pleased to fix it (maybe with a bit of help).

regards,
trem

#1 lore raw
Quoted 5 lines · trem

Hi

I've tried to port the 2.6.19 x86_64 adeos patch to 2.6.20. you can find it here :
http://zarb.org/~trem/adeos-ipipe-2.6.20-x86_64-1.7-03-trem.patch

The good news is that moving to 2.6.20 does not seem to be too much of a hell. Right?

Quoted 7 lines

I can apply it with with prepare_kernel.sh (from xenomai svn), but I haven't tested it yet (I mean run kernel).

I hope this patch is good enough to be used. Otherwise, I'd be pleased to fix it (maybe with a bit of help).

We are hopefully close to have a reasonably good patch for 2.6.19. Once we achieve this, porting to 2.6.20 should be the next step. Thanks.

Signature · 1 line
Philippe.
author
#2 lore raw
Quoted 4 lines · Philippe Gerum
Quoted 2 lines · trem

Hi

Quoted 9 lines
Quoted 4 lines

I've tried to port the 2.6.19 x86_64 adeos patch to 2.6.20. you can find it here :
http://zarb.org/~trem/adeos-ipipe-2.6.20-x86_64-1.7-03-trem.patch

The good news is that moving to 2.6.20 does not seem to be too much of a hell. Right?

Yes, there are few conflict so it's quite easy to port xenomai to 2.6.20.

Quoted 12 lines
Quoted 7 lines

I can apply it with with prepare_kernel.sh (from xenomai svn), but I haven't tested it yet (I mean run kernel).

I hope this patch is good enough to be used. Otherwise, I'd be pleased to fix it (maybe with a bit of help).

We are hopefully close to have a reasonably good patch for 2.6.19. Once we achieve this, porting to 2.6.20 should be the next step. Thanks.

I've seen ths in the Changelog : "this closes the implementation phase of the x86_64 port."
So I suppose that the patch for 2.6.19 is finished. I've tried it and it works fine.
The result of latency is :

[[email protected] bin]$ sudo ./latency -T 10
== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...

RTT|  00:00:01  (periodic user-mode task, 100 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat

worst
RTD| 0.760| 1.073| 3.660| 0| 0.760|
3.660
RTD| 0.737| 1.063| 3.012| 0| 0.737|
3.660
RTD| 0.741| 1.083| 3.396| 0| 0.737|
3.660
RTD| 0.755| 1.088| 2.344| 0| 0.737|
3.660
RTD| 0.754| 1.093| 3.431| 0| 0.737|
3.660
RTD| 0.755| 1.089| 5.119| 0| 0.737|
5.119
RTD| 0.724| 1.091| 3.126| 0| 0.724|
5.119
RTD| 0.762| 1.089| 3.171| 0| 0.724|
5.119
RTD| 0.751| 1.097| 5.508| 0| 0.724|
5.508

---|------------|------------|------------|--------|-------------------------
RTS|       0.724|       1.085|       5.508|       0|    00:00:10/00:00:10

If I don't mistake, I see a max latency of 5us. Is it realistic ?

Now, the port to 2.6.20 is open ? we can work on ?

trem

#3 lore raw
Quoted 59 lines · trem
Quoted 4 lines · Philippe Gerum
Quoted 2 lines · trem

Hi

Quoted 9 lines
Quoted 4 lines

I've tried to port the 2.6.19 x86_64 adeos patch to 2.6.20. you can find it here :
http://zarb.org/~trem/adeos-ipipe-2.6.20-x86_64-1.7-03-trem.patch

The good news is that moving to 2.6.20 does not seem to be too much of a hell. Right?

Yes, there are few conflict so it's quite easy to port xenomai to 2.6.20.

Quoted 12 lines
Quoted 7 lines

I can apply it with with prepare_kernel.sh (from xenomai svn), but I haven't tested it yet (I mean run kernel).

I hope this patch is good enough to be used. Otherwise, I'd be pleased to fix it (maybe with a bit of help).

We are hopefully close to have a reasonably good patch for 2.6.19. Once we achieve this, porting to 2.6.20 should be the next step. Thanks.

I've seen ths in the Changelog : "this closes the implementation phase of the x86_64 port."
So I suppose that the patch for 2.6.19 is finished. I've tried it and it works fine.
The result of latency is :

[[email protected] bin]$ sudo ./latency -T 10
== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...

RTT|  00:00:01  (periodic user-mode task, 100 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat

worst
RTD| 0.760| 1.073| 3.660| 0| 0.760|
3.660
RTD| 0.737| 1.063| 3.012| 0| 0.737|
3.660
RTD| 0.741| 1.083| 3.396| 0| 0.737|
3.660
RTD| 0.755| 1.088| 2.344| 0| 0.737|
3.660
RTD| 0.754| 1.093| 3.431| 0| 0.737|
3.660
RTD| 0.755| 1.089| 5.119| 0| 0.737|
5.119
RTD| 0.724| 1.091| 3.126| 0| 0.724|
5.119
RTD| 0.762| 1.089| 3.171| 0| 0.724|
5.119
RTD| 0.751| 1.097| 5.508| 0| 0.724|
5.508

Quoted 5 lines
---|------------|------------|------------|--------|-------------------------
RTS|       0.724|       1.085|       5.508|       0|    00:00:10/00:00:10

If I don't mistake, I see a max latency of 5us. Is it realistic ?

Yes. X-related problems Paul told us about being put aside (likely MTRR issues, still to be chased), I see < 10 us under SMP test load on a 2 x dual core Opteron 285 here (test load meaning two parallel kernel compilations (-j5), and some significant network load).

We still have to benchmark this port more exhaustively and aggressively (e.g. different I/O loads and severe cache trashing, for longer than 8 hours), but the foundations look sane, especially since the Xenomai/x86_64 port currently runs with a default latency calibration set to 500 ns over this.

Quoted 2 lines

Now, the port to 2.6.20 is open ? we can work on ?

Yep. Have fun.

Quoted 5 lines

trem

Signature · 1 line
Philippe.
author
#4 lore raw

Hi

As I've got your start now, I've ported (at least tried) the 2.6.19 x86_64 adeos patch to 2.6.20.
I've tried it and it seems to works fine, here the latency :

[[email protected] ~]$ cat latency_xenomai_2_6_20.txt [[email protected] bin]$ sudo ./latency -T 10 == Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...

RTT|  00:00:01  (periodic user-mode task, 100 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat

worst
RTD| 0.737| 1.067| 3.332| 0| 0.737|
3.332
RTD| 0.744| 1.067| 3.568| 0| 0.737|
3.568
RTD| 0.724| 1.080| 3.362| 0| 0.724|
3.568
RTD| 0.730| 1.070| 2.900| 0| 0.724|
3.568
RTD| 0.711| 1.071| 3.441| 0| 0.711|
3.568
RTD| 0.733| 1.066| 3.547| 0| 0.711|
3.568
RTD| 0.735| 1.079| 4.523| 0| 0.711|
4.523
RTD| 0.716| 1.072| 3.307| 0| 0.711|
4.523
RTD| 0.715| 1.066| 3.507| 0| 0.711|
4.523

---|------------|------------|------------|--------|-------------------------
RTS|       0.711|       1.071|       4.523|       0|    00:00:10/00:00:10

The patch (2.6.20 x86_64) can be found here :
http://zarb.org/~trem/adeos-ipipe-2.6.20-x86_64-1.7-07-trem.patch

I hope it could be used.

regards,
trem

Quoted 97 lines · Philippe Gerum
Quoted 64 lines · trem
Quoted 5 lines · Philippe Gerum
Quoted 2 lines · trem

Hi

Quoted 10 lines
Quoted 5 lines

I've tried to port the 2.6.19 x86_64 adeos patch to 2.6.20. you can find it here :
http://zarb.org/~trem/adeos-ipipe-2.6.20-x86_64-1.7-03-trem.patch

The good news is that moving to 2.6.20 does not seem to be too much of a hell. Right?

Yes, there are few conflict so it's quite easy to port xenomai to 2.6.20.

Quoted 13 lines
Quoted 8 lines

I can apply it with with prepare_kernel.sh (from xenomai svn), but I haven't tested it yet (I mean run kernel).

I hope this patch is good enough to be used. Otherwise, I'd be pleased to fix it (maybe with a bit of help).

We are hopefully close to have a reasonably good patch for 2.6.19. Once we achieve this, porting to 2.6.20 should be the next step. Thanks.

I've seen ths in the Changelog : "this closes the implementation phase of the x86_64 port."
So I suppose that the patch for 2.6.19 is finished. I've tried it and it works fine.
The result of latency is :

[[email protected] bin]$ sudo ./latency -T 10
== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...

RTT|  00:00:01  (periodic user-mode task, 100 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat

worst
RTD| 0.760| 1.073| 3.660| 0| 0.760|
3.660
RTD| 0.737| 1.063| 3.012| 0| 0.737|
3.660
RTD| 0.741| 1.083| 3.396| 0| 0.737|
3.660
RTD| 0.755| 1.088| 2.344| 0| 0.737|
3.660
RTD| 0.754| 1.093| 3.431| 0| 0.737|
3.660
RTD| 0.755| 1.089| 5.119| 0| 0.737|
5.119
RTD| 0.724| 1.091| 3.126| 0| 0.724|
5.119
RTD| 0.762| 1.089| 3.171| 0| 0.724|
5.119
RTD| 0.751| 1.097| 5.508| 0| 0.724|
5.508

Quoted 6 lines
---|------------|------------|------------|--------|-------------------------
RTS|       0.724|       1.085|       5.508|       0|    00:00:10/00:00:10

If I don't mistake, I see a max latency of 5us. Is it realistic ?

Yes. X-related problems Paul told us about being put aside (likely MTRR issues, still to be chased), I see < 10 us under SMP test load on a 2 x dual core Opteron 285 here (test load meaning two parallel kernel compilations (-j5), and some significant network load).

We still have to benchmark this port more exhaustively and aggressively (e.g. different I/O loads and severe cache trashing, for longer than 8 hours), but the foundations look sane, especially since the Xenomai/x86_64 port currently runs with a default latency calibration set to 500 ns over this.

Quoted 3 lines

Now, the port to 2.6.20 is open ? we can work on ?

Yep. Have fun.

Quoted 5 lines

trem

#5 lore raw
Quoted 33 lines · trem

Hi

As I've got your start now, I've ported (at least tried) the 2.6.19 x86_64 adeos patch to 2.6.20.
I've tried it and it seems to works fine, here the latency :

[[email protected] ~]$ cat latency_xenomai_2_6_20.txt [[email protected] bin]$ sudo ./latency -T 10 == Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...

RTT|  00:00:01  (periodic user-mode task, 100 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat

worst
RTD| 0.737| 1.067| 3.332| 0| 0.737|
3.332
RTD| 0.744| 1.067| 3.568| 0| 0.737|
3.568
RTD| 0.724| 1.080| 3.362| 0| 0.724|
3.568
RTD| 0.730| 1.070| 2.900| 0| 0.724|
3.568
RTD| 0.711| 1.071| 3.441| 0| 0.711|
3.568
RTD| 0.733| 1.066| 3.547| 0| 0.711|
3.568
RTD| 0.735| 1.079| 4.523| 0| 0.711|
4.523
RTD| 0.716| 1.072| 3.307| 0| 0.711|
4.523
RTD| 0.715| 1.066| 3.507| 0| 0.711|
4.523

Quoted 7 lines
---|------------|------------|------------|--------|-------------------------
RTS|       0.711|       1.071|       4.523|       0|    00:00:10/00:00:10

The patch (2.6.20 x86_64) can be found here :
http://zarb.org/~trem/adeos-ipipe-2.6.20-x86_64-1.7-07-trem.patch

s,1.7-07,1.0-07,

Quoted 2 lines

I hope it could be used.

Nice. Will use this work as the upcoming 2.6.20/x86_64 baseline in my git repo. Thanks.

Signature · 1 line
Philippe.
#6 lore raw
In reply to trem
Quoted 33 lines · trem

Hi

As I've got your start now, I've ported (at least tried) the 2.6.19 x86_64 adeos patch to 2.6.20.
I've tried it and it seems to works fine, here the latency :

[[email protected] ~]$ cat latency_xenomai_2_6_20.txt [[email protected] bin]$ sudo ./latency -T 10 == Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...

RTT|  00:00:01  (periodic user-mode task, 100 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat

worst
RTD| 0.737| 1.067| 3.332| 0| 0.737|
3.332
RTD| 0.744| 1.067| 3.568| 0| 0.737|
3.568
RTD| 0.724| 1.080| 3.362| 0| 0.724|
3.568
RTD| 0.730| 1.070| 2.900| 0| 0.724|
3.568
RTD| 0.711| 1.071| 3.441| 0| 0.711|
3.568
RTD| 0.733| 1.066| 3.547| 0| 0.711|
3.568
RTD| 0.735| 1.079| 4.523| 0| 0.711|
4.523
RTD| 0.716| 1.072| 3.307| 0| 0.711|
4.523
RTD| 0.715| 1.066| 3.507| 0| 0.711|
4.523

Quoted 9 lines
---|------------|------------|------------|--------|-------------------------
RTS|       0.711|       1.071|       4.523|       0|    00:00:10/00:00:10

The patch (2.6.20 x86_64) can be found here :
http://zarb.org/~trem/adeos-ipipe-2.6.20-x86_64-1.7-07-trem.patch

I hope it could be used.

Merged, thanks. This upgrade is now available from the Adeos GIT repo and Xenomai's SVN trunk.

Quoted 104 lines

regards,
trem

Quoted 97 lines · Philippe Gerum
Quoted 64 lines · trem
Quoted 5 lines · Philippe Gerum
Quoted 2 lines · trem

Hi

Quoted 10 lines
Quoted 5 lines

I've tried to port the 2.6.19 x86_64 adeos patch to 2.6.20. you can find it here :
http://zarb.org/~trem/adeos-ipipe-2.6.20-x86_64-1.7-03-trem.patch

The good news is that moving to 2.6.20 does not seem to be too much of a hell. Right?

Yes, there are few conflict so it's quite easy to port xenomai to 2.6.20.

Quoted 13 lines
Quoted 8 lines

I can apply it with with prepare_kernel.sh (from xenomai svn), but I haven't tested it yet (I mean run kernel).

I hope this patch is good enough to be used. Otherwise, I'd be pleased to fix it (maybe with a bit of help).

We are hopefully close to have a reasonably good patch for 2.6.19. Once we achieve this, porting to 2.6.20 should be the next step. Thanks.

I've seen ths in the Changelog : "this closes the implementation phase of the x86_64 port."
So I suppose that the patch for 2.6.19 is finished. I've tried it and it works fine.
The result of latency is :

[[email protected] bin]$ sudo ./latency -T 10
== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...

RTT|  00:00:01  (periodic user-mode task, 100 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat

worst
RTD| 0.760| 1.073| 3.660| 0| 0.760|
3.660
RTD| 0.737| 1.063| 3.012| 0| 0.737|
3.660
RTD| 0.741| 1.083| 3.396| 0| 0.737|
3.660
RTD| 0.755| 1.088| 2.344| 0| 0.737|
3.660
RTD| 0.754| 1.093| 3.431| 0| 0.737|
3.660
RTD| 0.755| 1.089| 5.119| 0| 0.737|
5.119
RTD| 0.724| 1.091| 3.126| 0| 0.724|
5.119
RTD| 0.762| 1.089| 3.171| 0| 0.724|
5.119
RTD| 0.751| 1.097| 5.508| 0| 0.724|
5.508

Quoted 6 lines
---|------------|------------|------------|--------|-------------------------
RTS|       0.724|       1.085|       5.508|       0|    00:00:10/00:00:10

If I don't mistake, I see a max latency of 5us. Is it realistic ?

Yes. X-related problems Paul told us about being put aside (likely MTRR issues, still to be chased), I see < 10 us under SMP test load on a 2 x dual core Opteron 285 here (test load meaning two parallel kernel compilations (-j5), and some significant network load).

We still have to benchmark this port more exhaustively and aggressively (e.g. different I/O loads and severe cache trashing, for longer than 8 hours), but the foundations look sane, especially since the Xenomai/x86_64 port currently runs with a default latency calibration set to 500 ns over this.

Quoted 3 lines

Now, the port to 2.6.20 is open ? we can work on ?

Yep. Have fun.

Quoted 5 lines

trem

Signature · 1 line
Philippe.
#7 lore raw
Quoted 7 lines · Philippe Gerum
Quoted 4 lines

The patch (2.6.20 x86_64) can be found here :
http://zarb.org/~trem/adeos-ipipe-2.6.20-x86_64-1.7-07-trem.patch

I hope it could be used.

Merged, thanks. This upgrade is now available from the Adeos GIT repo and Xenomai's SVN trunk.

Attempting to compile against 2.6.20.4, hit a couple of minor snags.. Two includes in kernel/ipipe/tracer.c. linux/ipipe.h for __ipipe_pipeline and linux/sched.h for tasklist_lock - Also needed to insert an extern for cpu_khz in asm-x86_64/ipipe.h (no diffs available I'm afraid)..

It looks like the kernel developers are starting to clean up the rats nest of includes, so I suspect there are going to be more "undefined variable" errors cropping up in the future.

The 2.6.20.4 packages are available on http://zathras.tuxcnc.org/xenomai if anyone would like to test - Latest builds use r2340 trunk from SVN.

Regards, Paul.