Skip to contentSkip to conversation

The linux-evl and libevl stable version

DISCUSSION Yao Yongxian 2 participants 12 messages Dec 22, 2023 – Sep 2

lore
Share & tools
lore
#0 lore raw

Hi All,

Have the stable versions of the linux-evl and libevl, which can be used in the product been officially released?

Thanks.

--
Yao Yongxian

#1 lore raw
Quoted 4 lines · Yao Yongxian

Hi All,

Have the stable versions of the linux-evl and libevl, which can be used in the product been officially released?

linux-evl is provided in three active branches:
- 2 based on latest LTS kernels (currently 6.1 and 6.6)
- 1 tracking the latest development kernel (currently 6.7-rc)

So, you likely want 6.6 when starting a new product development today, and you will have 2 years of support for that baseline.

libevl is single-branched and does not fork-off specific stable branches so far. You can follow the API revision history at
https://v4.xenomai.org/core/user-api/api-revs/, and you will see that this is fairly stable already, primarily adding APIs, not changing or removing much anymore.

Regarding the management and stability of the interface between linux-evl and libevl (i.e. the ABI), see
https://v4.xenomai.org/core/under-the-hood/abi/.

For more details (or to correct me), Philippe may help.

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
#2 lore raw

Hi Jan,

Thank you for your reply.

We plan to use Debian11.x(the Debian kernel is based linux-5.10.x LTS) on our product.

Is there compatibility issues between debian11's glibc library and linux-evl-6.6. x LTS?

----
Yao Yongxian

Quoted 30 lines · Jan Kiszka
Quoted 4 lines · Yao Yongxian

Hi All,

Have the stable versions of the linux-evl and libevl, which can be used in the product been officially released?

linux-evl is provided in three active branches:
- 2 based on latest LTS kernels (currently 6.1 and 6.6)
- 1 tracking the latest development kernel (currently 6.7-rc)

So, you likely want 6.6 when starting a new product development today, and you will have 2 years of support for that baseline.

libevl is single-branched and does not fork-off specific stable branches so far. You can follow the API revision history at
https://v4.xenomai.org/core/user-api/api-revs/, and you will see that this is fairly stable already, primarily adding APIs, not changing or removing much anymore.

Regarding the management and stability of the interface between linux-evl and libevl (i.e. the ABI), see
https://v4.xenomai.org/core/under-the-hood/abi/.

For more details (or to correct me), Philippe may help.

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
#3 lore raw
Quoted 10 lines · Yao Yongxian

Hi Jan,

Thank you for your reply.

We plan to use Debian11.x(the Debian kernel is based linux-5.10.x LTS) on our product.

Is there compatibility issues between debian11's glibc library and linux-evl-6.6. x LTS?

I don't expect any, just we won't test on that anymore.

Why are you starting a new development with a 3-years-old baseline?

Jan

Quoted 35 lines

----
Yao Yongxian

Quoted 30 lines · Jan Kiszka
Quoted 4 lines · Yao Yongxian

Hi All,

Have the stable versions of the linux-evl and libevl, which can be used in the product been officially released?

linux-evl is provided in three active branches:
- 2 based on latest LTS kernels (currently 6.1 and 6.6)
- 1 tracking the latest development kernel (currently 6.7-rc)

So, you likely want 6.6 when starting a new product development today, and you will have 2 years of support for that baseline.

libevl is single-branched and does not fork-off specific stable branches so far. You can follow the API revision history at
https://v4.xenomai.org/core/user-api/api-revs/, and you will see that this is fairly stable already, primarily adding APIs, not changing or removing much anymore.

Regarding the management and stability of the interface between linux-evl and libevl (i.e. the ABI), see
https://v4.xenomai.org/core/under-the-hood/abi/.

For more details (or to correct me), Philippe may help.

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
#4 lore raw
Quoted 5 lines · Jan Kiszka
Quoted 4 lines · Yao Yongxian

Hi Jan,

Quoted 10 lines
Quoted 6 lines

Thank you for your reply.

We plan to use Debian11.x(the Debian kernel is based linux-5.10.x LTS) on our product.

Is there compatibility issues between debian11's glibc library and linux-evl-6.6. x LTS?

I don't expect any, just we won't test on that anymore.

Quoted 1 line

Why are you starting a new development with a 3-years-old baseline?

And v5.10.y-evl-rebase is end-of life!

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
#5 lore raw
In reply to Jan Kiszka
Quoted 12 lines · Jan Kiszka
Quoted 5 lines · Yao Yongxian

We plan to use Debian11.x(the Debian kernel is based linux-5.10.x LTS) on our product.

Is there compatibility issues between debian11's glibc library and linux-evl-6.6. x LTS?

I don't expect any, just we won't test on that anymore.

Why are you starting a new development with a 3-years-old baseline?

Debian 11 has been used on our products for several years, and we only want to upgrade the kernel to the latest version without upgrading the operating system distribution.

But we are not sure if there will be compatibility issues?

----
Yao Yongxian

#6 lore raw

Regarding the issue of rt_timer_read

In reply to Yao Yongxian

Hi,

On the same computer, immediately execute rt_timer_read() after rebooting the machine to obtain the time:

a) When running Linux 4.19.89 + ipipe + Xenomai3.1, rt_timer_read() return 8715069990ns
b) When running Linux 5.10.199 + dovetail + Xenomai 3.2.4, rt_timer_read() return 50879028ns

The time read by rt_timer_read is the relative time since the system startup. Why does scenario a read time as long as over two hours, while scenario b is normal?

--
Thanks,
Yao Yongxian

#7 lore raw

Re: Regarding the issue of rt_timer_read

Quoted 10 lines · Yao Yongxian

Hi,

On the same computer, immediately execute rt_timer_read() after rebooting the machine to obtain the time:

a) When running Linux 4.19.89 + ipipe + Xenomai3.1, rt_timer_read() return 8715069990ns
b) When running Linux 5.10.199 + dovetail + Xenomai 3.2.4, rt_timer_read() return 50879028ns

The time read by rt_timer_read is the relative time since the system startup. Why does scenario a read time as long as over two hours, while scenario b is normal?

I-pipe used it's own timebase that was sync'ed by Xenomai to Linux once during boot-up, IIRC against CLOCK_REALTIME which might not have been set yet at this point. With dovetail, we can use the Linux clocks directly so that you are reading CLOCK_MONOTONIC here.

That means that old code which used to run over i-pipe should not have relied on the clock being sync'ed anything (we had CLOCK_HOST_REALTIME under posix for that).

Jan

Signature · 2 lines
Siemens AG, Foundational Technologies
Linux Expert Center
#8 lore raw

Re:Re: Regarding the issue of rt_timer_read

Hi,

Quoted 7 lines · Jan Kiszka
Quoted 6 lines · Yao Yongxian

Hi,

On the same computer, immediately execute rt_timer_read() after rebooting the machine to obtain the time:

a) When running Linux 4.19.89 + ipipe + Xenomai3.1, rt_timer_read() return 8715069990ns

Correct : a) When running Linux 4.19.89 + ipipe + Xenomai3.1, rt_timer_read()/1000 return 8715069990ns

Quoted 1 line
Quoted 1 line

b) When running Linux 5.10.199 + dovetail + Xenomai 3.2.4, rt_timer_read() return 50879028ns

Correct: b) When running Linux 5.10.199 + dovetail + Xenomai 3.2.4, rt_timer_read()/1000 return 50879028ns

Quoted 4 lines
Quoted 3 lines

The time read by rt_timer_read is the relative time since the system startup. Why does scenario a read time as long as over two hours, while scenario b is normal?

Quoted 8 lines

I-pipe used it's own timebase that was sync'ed by Xenomai to Linux once during boot-up, IIRC against CLOCK_REALTIME which might not have been set yet at this point. With dovetail, we can use the Linux clocks directly so that you are reading CLOCK_MONOTONIC here.

That means that old code which used to run over i-pipe should not have relied on the clock being sync'ed anything (we had CLOCK_HOST_REALTIME under posix for that).

The value return by rt_timer_read is supposed to be the time elapsed since system startup.
However, the value return by I-pipe is over two hous, which is clearly incorrect, as I executed it shortly after the system started.

What does the value return by rt_timer_read represent under I-pipe?

--
Thanks,
Yao Yongxian

#9 lore raw

Re: Regarding the issue of rt_timer_read

Quoted 25 lines · Yao Yongxian

Hi,

Quoted 7 lines · Jan Kiszka
Quoted 6 lines · Yao Yongxian

Hi,

On the same computer, immediately execute rt_timer_read() after rebooting the machine to obtain the time:

a) When running Linux 4.19.89 + ipipe + Xenomai3.1, rt_timer_read() return 8715069990ns

Correct : a) When running Linux 4.19.89 + ipipe + Xenomai3.1, rt_timer_read()/1000 return 8715069990ns

Quoted 1 line
Quoted 1 line

b) When running Linux 5.10.199 + dovetail + Xenomai 3.2.4, rt_timer_read() return 50879028ns

Correct: b) When running Linux 5.10.199 + dovetail + Xenomai 3.2.4, rt_timer_read()/1000 return 50879028ns

Quoted 9 lines
Quoted 3 lines

The time read by rt_timer_read is the relative time since the system startup. Why does scenario a read time as long as over two hours, while scenario b is normal?

I-pipe used it's own timebase that was sync'ed by Xenomai to Linux once during boot-up, IIRC against CLOCK_REALTIME which might not have been set yet at this point. With dovetail, we can use the Linux clocks directly so that you are reading CLOCK_MONOTONIC here.

Quoted 5 lines
Quoted 3 lines

That means that old code which used to run over i-pipe should not have relied on the clock being sync'ed anything (we had CLOCK_HOST_REALTIME under posix for that).

The value return by rt_timer_read is supposed to be the time elapsed since system startup.

I'm not sure if we ever guaranteed that. Anyway, I-pipe is history.

Quoted 4 lines

However, the value return by I-pipe is over two hous, which is clearly incorrect, as I executed it shortly after the system started.

What does the value return by rt_timer_read represent under I-pipe?

"the current time maintained by the Xenomai core clock" - I don't think we have clearly specified what that clock is. Thus, you cannot relate it to anything else than itself.

Jan

Signature · 2 lines
Siemens AG, Foundational Technologies
Linux Expert Center
#10 lore raw

dd keeps the CPU fully loaded

Hi,

When testing latency(latency -P 1 -p 100 -T 43200), use the dd command to fully load all CPU cores.

1. bs=16M, the maximum delay exceeds 100 μs

    dd if=/dev/zero of=/dev/null bs=16M

RTT|  00:04:55  (periodic user-mode task, 100 us period, priority 1)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD|        1.129|        7.108|       66.484|            1|         0 |      0.879 |     103.594
RTD|        1.260|        7.294|       71.064|            1|         0 |      0.879 |     103.594
RTD|        1.187|        7.015|       58.703|            1|         0 |      0.879 |     103.594
RTD|        1.103|        6.909|       57.830|            1|         0 |      0.879 |     103.594

2. bs=1M, the maximum delay is less than 10 μs.
    dd if=/dev/zero of=/dev/null bs=1M

RTT|  01:40:28  (periodic user-mode task, 100 us period, priority 1)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD|        1.415|        1.753|         2.125|            0|          0|        0.856|        6.255
RTD|        1.465|        1.756|         2.533|            0|          0|        0.856|        6.255
RTD|        1.417|        1.751|         2.163|            0|          0|        0.856|        6.255
RTD|        1.432|        1.752|         2.179|            0|          0|        0.856|        6.255

Why is there such a big difference?

Thanks

--
Yongxian Yao

#11 lore raw

Re: dd keeps the CPU fully loaded

Quoted 19 lines · Yongxian Yao

Hi,

When testing latency(latency -P 1 -p 100 -T 43200), use the dd command to fully load all CPU cores.

1. bs=16M, the maximum delay exceeds 100 μs

    dd if=/dev/zero of=/dev/null bs=16M

RTT|  00:04:55  (periodic user-mode task, 100 us period, priority 1)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD|        1.129|        7.108|       66.484|            1|         0 |      0.879 |     103.594
RTD|        1.260|        7.294|       71.064|            1|         0 |      0.879 |     103.594
RTD|        1.187|        7.015|       58.703|            1|         0 |      0.879 |     103.594
RTD|        1.103|        6.909|       57.830|            1|         0 |      0.879 |     103.594

2. bs=1M, the maximum delay is less than 10 μs.
    dd if=/dev/zero of=/dev/null bs=1M

Quoted 9 lines
RTT|  01:40:28  (periodic user-mode task, 100 us period, priority 1)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD|        1.415|        1.753|         2.125|            0|          0|        0.856|        6.255
RTD|        1.465|        1.756|         2.533|            0|          0|        0.856|        6.255
RTD|        1.417|        1.751|         2.163|            0|          0|        0.856|        6.255
RTD|        1.432|        1.752|         2.179|            0|          0|        0.856|        6.255

Why is there such a big difference?

Caching effects, IRQ-off sections und I/O load, possibly magnified by unfortunate configurations (forgotten debug switches?), but likely not by factors. What is your target hardware.

Jan

PS: Please start new topic in new email threads, rather than replying to older ones.

Signature · 2 lines
Siemens AG, Foundational Technologies
Linux Expert Center