latency: pthread_create(latency): Operation not permitted
hi xenomai,
I had a problem when running /usr/lib/xenomai/testsuite/latency: == Sampling period: 100 us == Test mode: periodic user-mode task
== All results in microseconds
/usr/lib/xenomai/testsuite/latency: pthread_create(latency): Operation not permitted
xenomai version:v3.2.4; kernel version: 5.10.199-xenomai.3.2.4
I happened to find this problem is related to install containerd.io_1.6.24-1_amd64.deb. if dpkg -r containerd.io_xx.deb then the latency test is ok .
how can i make latency work with containerd.io.
does containerd.io effect the env of xenomai appliction?
thanks and regards
Quoted 9 lines · On Thu, 2024-01-18 at 17:10 +0800, [email protected] wrote:
hi xenomai,
I had a problem when running /usr/lib/xenomai/testsuite/latency: == Sampling period: 100 us == Test mode: periodic user-mode task
== All results in microseconds
/usr/lib/xenomai/testsuite/latency:pthread_create(latency): Operation not permitted
Quoted 7 lines
xenomai version:v3.2.4; kernel version: 5.10.199-xenomai.3.2.4
I happened to find this problem is related to install containerd.io_1.6.24-1_amd64.deb. if dpkg -r containerd.io_xx.deb then the latency test is ok .
how can i make latency work with containerd.io.
does containerd.io effect the env of xenomai appliction?
Are you trying to run the latency utility from inside or outside the container?
In case you're trying to run it inside a container: We might have a namespacing issue here. I can remember that we had fixed some of them, but maybe there is more.
Florian
Quoted 3 lines
thanks and regards
To Florian
This error is running the latency utility outside the container.
I installed the containerd.io package through the dpkg -i command ,then running latency utility outside the container and this error will occur.
Setting kernel.sched_rt_runtime_us=-1 can avoid this error.
For the normal operation of rt applications,should I do this setting after installing containerd.io ? Is there an absolutely correct approach or official settings of xenomai ?
Looking forward to your suggestions
Best regards
Quoted 30 lines · 在 2024-01-18 19:58:10,"Florian Bezdeka" <[email protected]> 写道:
Quoted 9 lines · On Thu, 2024-01-18 at 17:10 +0800, [email protected] wrote:
hi xenomai,
I had a problem when running /usr/lib/xenomai/testsuite/latency: == Sampling period: 100 us == Test mode: periodic user-mode task
== All results in microseconds
/usr/lib/xenomai/testsuite/latency:pthread_create(latency): Operation not permittedQuoted 7 lines
xenomai version:v3.2.4; kernel version: 5.10.199-xenomai.3.2.4
I happened to find this problem is related to install containerd.io_1.6.24-1_amd64.deb. if dpkg -r containerd.io_xx.deb then the latency test is ok .
how can i make latency work with containerd.io.
does containerd.io effect the env of xenomai appliction?Are you trying to run the latency utility from inside or outside the container?
In case you're trying to run it inside a container: We might have a namespacing issue here. I can remember that we had fixed some of them, but maybe there is more.
Florian
Quoted 3 lines
thanks and regards
Quoted 5 lines · On Sun, 2024-01-21 at 21:03 +0800, mars_liu2023 wrote:
To Florian
This error is running the latency utility outside the container.
I installed the containerd.io package through the dpkg -i command ,then running latency utility outside the container and this error will occur.
I tried to reproduce that here in three different combinations:
a)
- docker 20.10.24+dfsg1 (docker.io package from Debian 12)
- Xenomai 3.2.4
- Dovetail/Kernel 5.10.
b)
- Dovetail/Kernel 6.1 instead of 5.10
c)
- Xenomai 3.3-dev (next branch) instead of stable
- Dovetail/Kernel 6.6 instead of 6.1/5.10
a) is running fine here
b) showed the problem
/usr/lib/xenomai/testsuite/latency: pthread_create(latency): Operation not permitted
c) Same result as b)
Disabling the systemd units docker, docker.socket and containerd followed by a reboot "solves" this problem. I have no idea what's going on, but I guess it's something related to cgroups or any resource limit that is changed by one of the daemons on startup.
Further investigations necessary, unclear if I will look into that soon.
Florian
Quoted 41 lines
Setting kernel.sched_rt_runtime_us=-1 can avoid this error.
For the normal operation of rt applications,should I do this setting after installing containerd.io ? Is there an absolutely correct approach or official settings of xenomai ?Looking forward to your suggestions
Best regardsQuoted 30 lines · 在 2024-01-18 19:58:10,"Florian Bezdeka" <[email protected]> 写道:
Quoted 9 lines · On Thu, 2024-01-18 at 17:10 +0800, [email protected] wrote:
hi xenomai,
I had a problem when running /usr/lib/xenomai/testsuite/latency: == Sampling period: 100 us == Test mode: periodic user-mode task
== All results in microseconds
/usr/lib/xenomai/testsuite/latency:pthread_create(latency): Operation not permittedQuoted 7 lines
xenomai version:v3.2.4; kernel version: 5.10.199-xenomai.3.2.4
I happened to find this problem is related to install containerd.io_1.6.24-1_amd64.deb. if dpkg -r containerd.io_xx.deb then the latency test is ok .
how can i make latency work with containerd.io.
does containerd.io effect the env of xenomai appliction?Are you trying to run the latency utility from inside or outside the container?
In case you're trying to run it inside a container: We might have a namespacing issue here. I can remember that we had fixed some of them, but maybe there is more.
Florian
Quoted 3 lines
thanks and regards
Quoted 26 lines · Florian Bezdeka
Quoted 5 lines · On Sun, 2024-01-21 at 21:03 +0800, mars_liu2023 wrote:
To Florian
This error is running the latency utility outside the container.
I installed the containerd.io package through the dpkg -i command ,then running latency utility outside the container and this error will occur.I tried to reproduce that here in three different combinations:
a)
- docker 20.10.24+dfsg1 (docker.io package from Debian 12)
- Xenomai 3.2.4
- Dovetail/Kernel 5.10.b)
- Dovetail/Kernel 6.1 instead of 5.10c)
- Xenomai 3.3-dev (next branch) instead of stable
- Dovetail/Kernel 6.6 instead of 6.1/5.10a) is running fine here
b) showed the problem
/usr/lib/xenomai/testsuite/latency:pthread_create(latency): Operation not permitted
c) Same result as b)
Quoted 7 lines
Disabling the systemd units docker, docker.socket and containerd followed by a reboot "solves" this problem. I have no idea what's going on, but I guess it's something related to cgroups or any resource limit that is changed by one of the daemons on startup.
Further investigations necessary, unclear if I will look into that soon.
I vaguely recall such an issue... Once you run a docker runtime, there is a policy change applied that even prevents normal cyclictest to be started under preempt-rt outside of any container. I don't recall the needed changes to make that work again ATM.
Jan
Quoted 32 lines · Jan Kiszka
Quoted 31 lines · Florian Bezdeka
Quoted 5 lines · On Sun, 2024-01-21 at 21:03 +0800, mars_liu2023 wrote:
To Florian
This error is running the latency utility outside the container.
I installed the containerd.io package through the dpkg -i command ,then running latency utility outside the container and this error will occur.I tried to reproduce that here in three different combinations:
a)
- docker 20.10.24+dfsg1 (docker.io package from Debian 12)
- Xenomai 3.2.4
- Dovetail/Kernel 5.10.b)
- Dovetail/Kernel 6.1 instead of 5.10c)
- Xenomai 3.3-dev (next branch) instead of stable
- Dovetail/Kernel 6.6 instead of 6.1/5.10a) is running fine here
b) showed the problem
/usr/lib/xenomai/testsuite/latency:pthread_create(latency): Operation not permitted
c) Same result as b)Disabling the systemd units docker, docker.socket and containerd followed by a reboot "solves" this problem. I have no idea what's going on, but I guess it's something related to cgroups or any resource limit that is changed by one of the daemons on startup.
Quoted 9 lines
Quoted 2 lines
Further investigations necessary, unclear if I will look into that soon.
I vaguely recall such an issue... Once you run a docker runtime, there is a policy change applied that even prevents normal cyclictest to be started under preempt-rt outside of any container. I don't recall the needed changes to make that work again ATM.
How about now ? do you recall the changes or what can i do to get closer to the solution. Looking forward to your prompt
Regards
Quoted 1 line
Jan
Quoted 26 lines · Florian Bezdeka
Quoted 5 lines · On Sun, 2024-01-21 at 21:03 +0800, mars_liu2023 wrote:
To Florian
This error is running the latency utility outside the container.
I installed the containerd.io package through the dpkg -i command ,then running latency utility outside the container and this error will occur.I tried to reproduce that here in three different combinations:
a)
- docker 20.10.24+dfsg1 (docker.io package from Debian 12)
- Xenomai 3.2.4
- Dovetail/Kernel 5.10.b)
- Dovetail/Kernel 6.1 instead of 5.10c)
- Xenomai 3.3-dev (next branch) instead of stable
- Dovetail/Kernel 6.6 instead of 6.1/5.10a) is running fine here
b) showed the problem
/usr/lib/xenomai/testsuite/latency:pthread_create(latency): Operation not permitted
c) Same result as b)
Quoted 9 lines
Disabling the systemd units docker, docker.socket and containerd followed by a reboot "solves" this problem. I have no idea what's going on, but I guess it's something related to cgroups or any resource limit that is changed by one of the daemons on startup.
Further investigations necessary, unclear if I will look into that soon.
Thank you for your reply and comments
After some time we still can't get around the above problem . Has the solution to this problem been found?
Regards
Quoted 44 lines
Florian
Quoted 41 lines
Setting kernel.sched_rt_runtime_us=-1 can avoid this error.
For the normal operation of rt applications,should I do this setting after installing containerd.io ? Is there an absolutely correct approach or official settings of xenomai ?Looking forward to your suggestions
Best regardsQuoted 30 lines · 在 2024-01-18 19:58:10,"Florian Bezdeka" <[email protected]> 写道:
Quoted 9 lines · On Thu, 2024-01-18 at 17:10 +0800, [email protected] wrote:
hi xenomai,
I had a problem when running /usr/lib/xenomai/testsuite/latency: == Sampling period: 100 us == Test mode: periodic user-mode task
== All results in microseconds
/usr/lib/xenomai/testsuite/latency:pthread_create(latency): Operation not permittedQuoted 7 lines
xenomai version:v3.2.4; kernel version: 5.10.199-xenomai.3.2.4
I happened to find this problem is related to install containerd.io_1.6.24-1_amd64.deb. if dpkg -r containerd.io_xx.deb then the latency test is ok .
how can i make latency work with containerd.io.
does containerd.io effect the env of xenomai appliction?Are you trying to run the latency utility from inside or outside the container?
In case you're trying to run it inside a container: We might have a namespacing issue here. I can remember that we had fixed some of them, but maybe there is more.
Florian
Quoted 3 lines
thanks and regards
Quoted 35 lines · On 20.02.24 09:21, mars_liu2023 wrote:
Quoted 31 lines · Florian Bezdeka
Quoted 5 lines · On Sun, 2024-01-21 at 21:03 +0800, mars_liu2023 wrote:
To Florian
This error is running the latency utility outside the container.
I installed the containerd.io package through the dpkg -i command ,then running latency utility outside the container and this error will occur.I tried to reproduce that here in three different combinations:
a)
- docker 20.10.24+dfsg1 (docker.io package from Debian 12)
- Xenomai 3.2.4
- Dovetail/Kernel 5.10.b)
- Dovetail/Kernel 6.1 instead of 5.10c)
- Xenomai 3.3-dev (next branch) instead of stable
- Dovetail/Kernel 6.6 instead of 6.1/5.10a) is running fine here
b) showed the problem
/usr/lib/xenomai/testsuite/latency:pthread_create(latency): Operation not permitted
c) Same result as b)Disabling the systemd units docker, docker.socket and containerd followed by a reboot "solves" this problem. I have no idea what's going on, but I guess it's something related to cgroups or any resource limit that is changed by one of the daemons on startup.
Quoted 7 lines
Quoted 4 lines
Further investigations necessary, unclear if I will look into that soon.
Thank you for your reply and comments
After some time we still can't get around the above problem . Has the solution to this problem been found?
I also suspect it's something around cgroups, maybe similar to
https://access.redhat.com/discussions/2950611. But I don't have setup here to reproduce like Florian had.
Jan
Signature · 2 lines
Siemens AG, Technology Linux Expert Center
Hi,
I reproduced this problem with Florian's combinations based on the recipes-kernel/linux/files/amd64_defconfig.
This does not seem to be a xenomai-specific problem.
I could get rid of the "Operation not permitted" error when running the xenomai latency tool by disabling CONFIG_RT_GROUP_SCHED in the kernel config, see [1]: "The use of CONFIG_RT_GROUP_SCHED=y results in docker and its child containers to not be able to use system functions like sched_setscheduler() to raise a process' realtime priority." Do you have CONFIG_RT_GROUP_SCHED enabled?
According to [2], it is not recommended to set kernel.sched_rt_runtime_us to -1: "A "run-away" real-time task will be permitted to monopolise a CPU which could (potentially) lock up a system."
For getting docker to run successfully, I had to enable a few more kernel options based on the amd64_defconfig. Therefore my question: Is docker running fine on your system? Which kernel config are you using?
[1]: https://github.com/home-assistant/operating-system/issues/1235
[2]: https://access.redhat.com/solutions/1604133
Best,
Clara
Quoted 72 lines
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Mittwoch, 21. Februar 2024 19:27
To:mars_liu2023<[email protected]>; Bezdeka, Florian (T CED OES- DE) <[email protected]>
Cc: xenomai <[email protected]>
Subject: Re: latency:pthread_create(latency): Operation not permittedQuoted 4 lines · On 20.02.24 09:21, mars_liu2023 wrote:
At 2024-01-25 00:39:17, "Florian Bezdeka"
Quoted 5 lines · <[email protected]> wrote:
Quoted 5 lines · On Sun, 2024-01-21 at 21:03 +0800, mars_liu2023 wrote:
Quoted 4 lines
To Florian
This error is running the latency utility outside the container. I installed the containerd.io package through the dpkg -i command ,thenrunning latency utility outside the container and this error will occur.
Quoted 27 lines
Quoted 27 lines
Quoted 1 line
I tried to reproduce that here in three different combinations:
a)
- docker 20.10.24+dfsg1 (docker.io package from Debian 12)
- Xenomai 3.2.4
- Dovetail/Kernel 5.10.b)
- Dovetail/Kernel 6.1 instead of 5.10c)
- Xenomai 3.3-dev (next branch) instead of stable
- Dovetail/Kernel 6.6 instead of 6.1/5.10a) is running fine here
b) showed the problem/usr/lib/xenomai/testsuite/latency:pthread_create(latency):
Operation not permitted
c) Same result as b)Disabling the systemd units docker, docker.socket and containerd followed by a reboot "solves" this problem. I have no idea what's going on, but I guess it's something related to cgroups or any resource limit that is changed by one of the daemons on startup.
Quoted 8 lines
Quoted 4 lines
Further investigations necessary, unclear if I will look into that soon.
Thank you for your reply and comments
After some time we still can't get around the above problem . Has the solution to this problem been found?I also suspect it's something around cgroups, maybe similar to
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Facces
s.redhat.com%2Fdiscussions%2F2950611&data=05%7C02%7Cclara.kowalsk y%40siemens.com%7C8beecbd780c248ea7d9e08dc330affd0%7C38ae3bcd 95794fd4addab42e1495d55a%7C1%7C0%7C638441369538549173%7CUn known%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI 6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=ncEx22tfXnSo5iCml 2wOalCR6PZ2NNxtO1JMydVK9ao%3D&reserved=0. But I don't have setup here to reproduce like Florian had.Jan
--
Siemens AG, Technology
Linux Expert Center
Quoted 6 lines · Clara
Hi,
I reproduced this problem with Florian's combinations based on the recipes-kernel/linux/files/amd64_defconfig.
This does not seem to be a xenomai-specific problem.
Quoted 8 lines
I could get rid of the "Operation not permitted" error when running the xenomai latency tool by disabling
CONFIG_RT_GROUP_SCHEDin the kernel config, see [1]: "The use ofCONFIG_RT_GROUP_SCHED=yresults in docker and its child containers to not be able to use system functions likesched_setscheduler()to raise a process' realtime priority." Do you haveCONFIG_RT_GROUP_SCHEDenabled?
Right , our kernel config have enabled CONFIG_RT_GROUP_SCHED.
Quoted 10 lines
According to [2], it is not recommended to set kernel.sched_rt_runtime_us to -1: "A "run-away" real-time task will be permitted to monopolise a CPU which could (potentially) lock up a system."
For getting docker to run successfully, I had to enable a few more kernel options based on the
amd64_defconfig. Therefore my question: Is docker running fine on your system? Which kernel config are you using?
Our docker is work well ,whatever CONFIG_RT_GROUP_SCHED is enable or disable.
I don't recall which base config i used. Seems to come from debian10.
We will use recipes-kernel/linux/files/amd64_defconfig for the base config next time , but i couldn't find the base config for dovetail linux. where i can get it ?
Best regardsMars_liu
Quoted 79 lines
[1]: https://github.com/home-assistant/operating-system/issues/1235
[2]: https://access.redhat.com/solutions/1604133Best,
ClaraQuoted 72 lines
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Mittwoch, 21. Februar 2024 19:27
To:mars_liu2023<[email protected]>; Bezdeka, Florian (T CED OES- DE) <[email protected]>
Cc: xenomai <[email protected]>
Subject: Re: latency:pthread_create(latency): Operation not permittedQuoted 4 lines · On 20.02.24 09:21, mars_liu2023 wrote:
At 2024-01-25 00:39:17, "Florian Bezdeka"
Quoted 5 lines · <[email protected]> wrote:
Quoted 5 lines · On Sun, 2024-01-21 at 21:03 +0800, mars_liu2023 wrote:
Quoted 4 lines
To Florian
This error is running the latency utility outside the container. I installed the containerd.io package through the dpkg -i command ,thenrunning latency utility outside the container and this error will occur.
Quoted 27 lines
Quoted 27 lines
Quoted 1 line
I tried to reproduce that here in three different combinations:
a)
- docker 20.10.24+dfsg1 (docker.io package from Debian 12)
- Xenomai 3.2.4
- Dovetail/Kernel 5.10.b)
- Dovetail/Kernel 6.1 instead of 5.10c)
- Xenomai 3.3-dev (next branch) instead of stable
- Dovetail/Kernel 6.6 instead of 6.1/5.10a) is running fine here
b) showed the problem/usr/lib/xenomai/testsuite/latency:pthread_create(latency):
Operation not permitted
c) Same result as b)Disabling the systemd units docker, docker.socket and containerd followed by a reboot "solves" this problem. I have no idea what's going on, but I guess it's something related to cgroups or any resource limit that is changed by one of the daemons on startup.
Quoted 8 lines
Quoted 4 lines
Further investigations necessary, unclear if I will look into that soon.
Thank you for your reply and comments
After some time we still can't get around the above problem . Has the solution to this problem been found?I also suspect it's something around cgroups, maybe similar to
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Facces
s.redhat.com%2Fdiscussions%2F2950611&data=05%7C02%7Cclara.kowalsk y%40siemens.com%7C8beecbd780c248ea7d9e08dc330affd0%7C38ae3bcd 95794fd4addab42e1495d55a%7C1%7C0%7C638441369538549173%7CUn known%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI 6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=ncEx22tfXnSo5iCml 2wOalCR6PZ2NNxtO1JMydVK9ao%3D&reserved=0. But I don't have setup here to reproduce like Florian had.Jan
--
Siemens AG, Technology
Linux Expert Center
Quoted 29 lines
-----Original Message-----
From:mars_liu2023<[email protected]>
Sent: Donnerstag, 7. März 2024 07:14
To: Kowalsky, Clara (T CED OES-DE) <[email protected]>
Cc: xenomai <[email protected]>; Bezdeka, Florian (T CED OES-DE) <[email protected]>
Subject: Re:RE: latency:pthread_create(latency): Operation not permittedAt 2024-02-28 18:27:11, "Kowalsky, Clara" <[email protected]>
Quoted 6 lines · wrote:
Hi,
I reproduced this problem with Florian's combinations based on the recipes-kernel/linux/files/amd64_defconfig.
This does not seem to be a xenomai-specific problem.Quoted 8 lines
I could get rid of the "Operation not permitted" error when running the xenomai latency tool by disabling
CONFIG_RT_GROUP_SCHEDin the kernel config, see [1]: "The use ofCONFIG_RT_GROUP_SCHED=yresults in docker and its child containers to not be able to use system functions likesched_setscheduler()to raise a process' realtime priority." Do you haveCONFIG_RT_GROUP_SCHEDenabled?
Quoted 2 lines
Right , our kernel config have enabled
CONFIG_RT_GROUP_SCHED.
I assume this has therefore solved your problem?
Quoted 12 lines
Quoted 10 lines
According to [2], it is not recommended to set kernel.sched_rt_runtime_us to -1: "A "run-away" real-time task will be permitted to monopolise a CPU which could (potentially) lock up a system."
For getting docker to run successfully, I had to enable a few more kernel options based on the
amd64_defconfig. Therefore my question: Is docker running fine on your system? Which kernel config are you using?
Quoted 7 lines
Our docker is work well ,whatever
CONFIG_RT_GROUP_SCHEDis enable or disable.
I don't recall which base config i used. Seems to come from debian10. We will use recipes-kernel/linux/files/amd64_defconfig for the base config next time , but i couldn't find the base config for dovetail linux. where i can get it ?
The dovetail defconfigs for e.g., x86 are located in arch/x86/configs.
Have a look at the arch/x86/Makefile for checking which one gets used.
In dovetail, the defconfigs for x86_64 and arm64 don't have CONFIG_RT_GROUP_SCHED enabled.
Best
Clara
Quoted 129 lines
Best regards
Mars_liuQuoted 2 lines
[1]:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithu
Quoted 1 line
b.com%2Fhome-assistant%2Foperating-
system%2Fissues%2F1235&data=05%7C02%
Quoted 1 line
7Cclara.kowalsky%40siemens.com%7C7078180c4cc5480d00b908dc3e6dc
805%7C38a
Quoted 1 line
e3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638453888427103377
%7CUnknown%7C
Quoted 1 line
TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWw
iLCJXVCI
Quoted 1 line
6Mn0%3D%7C0%7C%7C%7C&sdata=D0GD31v%2Bjen%2FXiuTG0xYmng8rc
iEwDvLzg6x51Ld
Quoted 3 lines
UJM%3D&reserved=0
[2]:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Facces
Quoted 1 line
s.redhat.com%2Fsolutions%2F1604133&data=05%7C02%7Cclara.kowalsky
%40siem
Quoted 1 line
ens.com%7C7078180c4cc5480d00b908dc3e6dc805%7C38ae3bcd95794fd
4addab42e14Quoted 1 line
95d55a%7C1%7C0%7C638453888427111224%7CUnknown%7CTWFpbGZ
sb3d8eyJWIjoiMC4
Quoted 1 line
wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C
%7C%7C&sd
Quoted 1 line
ata=oT1Tnan7BVAmdECHvRmLz7B4%2Fa3Z2EHUDptSnH4F24Q%3D&reserv
ed=0
Quoted 65 lines
Best,
ClaraQuoted 61 lines
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Mittwoch, 21. Februar 2024 19:27
To:mars_liu2023<[email protected]>; Bezdeka, Florian (T CED OES- DE) <[email protected]>
Cc: xenomai <[email protected]>
Subject: Re: latency:pthread_create(latency): Operation not permittedQuoted 4 lines · On 20.02.24 09:21, mars_liu2023 wrote:
At 2024-01-25 00:39:17, "Florian Bezdeka"
Quoted 6 lines · <[email protected]> wrote:
Quoted 6 lines · On Sun, 2024-01-21 at 21:03 +0800, mars_liu2023 wrote:
Quoted 5 lines
To Florian
This error is running the latency utility outside the container. I installed the containerd.io package through the dpkg -i command ,thenrunning latency utility outside the container and this error will occur.
Quoted 27 lines
Quoted 27 lines
Quoted 1 line
I tried to reproduce that here in three different combinations:
a)
- docker 20.10.24+dfsg1 (docker.io package from Debian 12)
- Xenomai 3.2.4
- Dovetail/Kernel 5.10.b)
- Dovetail/Kernel 6.1 instead of 5.10c)
- Xenomai 3.3-dev (next branch) instead of stable
- Dovetail/Kernel 6.6 instead of 6.1/5.10a) is running fine here
b) showed the problem/usr/lib/xenomai/testsuite/latency:pthread_create(latency):
Operation not permitted
c) Same result as b)Disabling the systemd units docker, docker.socket and containerd followed by a reboot "solves" this problem. I have no idea what's going on, but I guess it's something related to cgroups or any resource limit that is changed by one of the daemons on startup.
Quoted 8 lines
Quoted 4 lines
Further investigations necessary, unclear if I will look into that soon.
Thank you for your reply and comments After some time we still can't get around the above problem . Has the solution to this problem been found?
I also suspect it's something around cgroups, maybe similar to
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Facces%2F&data=05%7C02%7Cclara.kowalsky%40siemens.com%7C7078180c4c c5480d0
Quoted 1 line
Quoted 1 line
0b908dc3e6dc805%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0% 7C63845388
Quoted 1 line
Quoted 1 line
8427116299%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJ QIjoiV2luMz
Quoted 1 line
Quoted 1 line
IiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=BD3jUHMN wN6ZhCFsO
Quoted 2 lines
Quoted 2 lines
rQUMfTNGPcreyI7qqGuzW%2FTwjs%3D&reserved=0
s.redhat.com%2Fdiscussions%2F2950611&data=05%7C02%7Cclara.kowalsk
Quoted 1 line
Quoted 1 line
y%40siemens.com%7C8beecbd780c248ea7d9e08dc330affd0%7C38ae3bcd
Quoted 1 line
Quoted 1 line
95794fd4addab42e1495d55a%7C1%7C0%7C638441369538549173%7CUn
Quoted 1 line
Quoted 1 line
known%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI
Quoted 1 line
Quoted 1 line
6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=ncEx22tfXnSo5iCml
Quoted 1 line
Quoted 1 line
2wOalCR6PZ2NNxtO1JMydVK9ao%3D&reserved=0. But I don't have setup
here
Quoted 9 lines
Quoted 8 lines
to reproduce like Florian had.
Jan
--
Siemens AG, Technology
Linux Expert Center
Quoted 29 lines · Clara
Quoted 29 lines
-----Original Message-----
From:mars_liu2023<[email protected]>
Sent: Donnerstag, 7. März 2024 07:14
To: Kowalsky, Clara (T CED OES-DE) <[email protected]>
Cc: xenomai <[email protected]>; Bezdeka, Florian (T CED OES-DE) <[email protected]>
Subject: Re:RE: latency:pthread_create(latency): Operation not permittedAt 2024-02-28 18:27:11, "Kowalsky, Clara" <[email protected]>
Quoted 14 lines · wrote:
Hi,
I reproduced this problem with Florian's combinations based on the recipes-kernel/linux/files/amd64_defconfig.
This does not seem to be a xenomai-specific problem.I could get rid of the "Operation not permitted" error when running the xenomai latency tool by disabling
CONFIG_RT_GROUP_SCHEDin the kernel config, see [1]: "The use ofCONFIG_RT_GROUP_SCHED=yresults in docker and its child containers to not be able to use system functions likesched_setscheduler()to raise a process' realtime priority." Do you haveCONFIG_RT_GROUP_SCHEDenabled?
Quoted 5 lines
Quoted 2 lines
Right , our kernel config have enabled
CONFIG_RT_GROUP_SCHED.I assume this has therefore solved your problem?
yep, it helps me a lot. thank you so much.
Best regardMars_liu
Quoted 156 lines
Quoted 12 lines
Quoted 10 lines
According to [2], it is not recommended to set kernel.sched_rt_runtime_us to -1: "A "run-away" real-time task will be permitted to monopolise a CPU which could (potentially) lock up a system."
For getting docker to run successfully, I had to enable a few more kernel options based on the
amd64_defconfig. Therefore my question: Is docker running fine on your system? Which kernel config are you using?Quoted 7 lines
Our docker is work well ,whatever
CONFIG_RT_GROUP_SCHEDis enable or disable.
I don't recall which base config i used. Seems to come from debian10. We will use recipes-kernel/linux/files/amd64_defconfig for the base config next time , but i couldn't find the base config for dovetail linux. where i can get it ?The dovetail defconfigs for e.g., x86 are located in
arch/x86/configs.
Have a look at thearch/x86/Makefilefor checking which one gets used.
In dovetail, the defconfigs forx86_64and arm64 don't haveCONFIG_RT_GROUP_SCHEDenabled.Best
ClaraQuoted 129 lines
Best regards
Mars_liuQuoted 2 lines
[1]:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithu
Quoted 1 line
b.com%2Fhome-assistant%2Foperating-
system%2Fissues%2F1235&data=05%7C02%
Quoted 1 line
7Cclara.kowalsky%40siemens.com%7C7078180c4cc5480d00b908dc3e6dc
805%7C38a
Quoted 1 line
e3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638453888427103377
%7CUnknown%7C
Quoted 1 line
TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWw
iLCJXVCI
Quoted 1 line
6Mn0%3D%7C0%7C%7C%7C&sdata=D0GD31v%2Bjen%2FXiuTG0xYmng8rc
iEwDvLzg6x51Ld
Quoted 3 lines
UJM%3D&reserved=0
[2]:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Facces
Quoted 1 line
s.redhat.com%2Fsolutions%2F1604133&data=05%7C02%7Cclara.kowalsky
%40siem
Quoted 1 line
ens.com%7C7078180c4cc5480d00b908dc3e6dc805%7C38ae3bcd95794fd
4addab42e14Quoted 1 line
95d55a%7C1%7C0%7C638453888427111224%7CUnknown%7CTWFpbGZ
sb3d8eyJWIjoiMC4
Quoted 1 line
wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C
%7C%7C&sd
Quoted 1 line
ata=oT1Tnan7BVAmdECHvRmLz7B4%2Fa3Z2EHUDptSnH4F24Q%3D&reserv
ed=0
Quoted 65 lines
Best,
ClaraQuoted 61 lines
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Mittwoch, 21. Februar 2024 19:27
To:mars_liu2023<[email protected]>; Bezdeka, Florian (T CED OES- DE) <[email protected]>
Cc: xenomai <[email protected]>
Subject: Re: latency:pthread_create(latency): Operation not permittedQuoted 4 lines · On 20.02.24 09:21, mars_liu2023 wrote:
At 2024-01-25 00:39:17, "Florian Bezdeka"
Quoted 6 lines · <[email protected]> wrote:
Quoted 6 lines · On Sun, 2024-01-21 at 21:03 +0800, mars_liu2023 wrote:
Quoted 5 lines
To Florian
This error is running the latency utility outside the container. I installed the containerd.io package through the dpkg -i command ,thenrunning latency utility outside the container and this error will occur.
Quoted 27 lines
Quoted 27 lines
Quoted 1 line
I tried to reproduce that here in three different combinations:
a)
- docker 20.10.24+dfsg1 (docker.io package from Debian 12)
- Xenomai 3.2.4
- Dovetail/Kernel 5.10.b)
- Dovetail/Kernel 6.1 instead of 5.10c)
- Xenomai 3.3-dev (next branch) instead of stable
- Dovetail/Kernel 6.6 instead of 6.1/5.10a) is running fine here
b) showed the problem/usr/lib/xenomai/testsuite/latency:pthread_create(latency):
Operation not permitted
c) Same result as b)Disabling the systemd units docker, docker.socket and containerd followed by a reboot "solves" this problem. I have no idea what's going on, but I guess it's something related to cgroups or any resource limit that is changed by one of the daemons on startup.
Quoted 8 lines
Quoted 4 lines
Further investigations necessary, unclear if I will look into that soon.
Thank you for your reply and comments After some time we still can't get around the above problem . Has the solution to this problem been found?
I also suspect it's something around cgroups, maybe similar to
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Facces%2F&data=05%7C02%7Cclara.kowalsky%40siemens.com%7C7078180c4c c5480d0
Quoted 1 line
Quoted 1 line
0b908dc3e6dc805%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0% 7C63845388
Quoted 1 line
Quoted 1 line
8427116299%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJ QIjoiV2luMz
Quoted 1 line
Quoted 1 line
IiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=BD3jUHMN wN6ZhCFsO
Quoted 2 lines
Quoted 2 lines
rQUMfTNGPcreyI7qqGuzW%2FTwjs%3D&reserved=0
s.redhat.com%2Fdiscussions%2F2950611&data=05%7C02%7Cclara.kowalsk
Quoted 1 line
Quoted 1 line
y%40siemens.com%7C8beecbd780c248ea7d9e08dc330affd0%7C38ae3bcd
Quoted 1 line
Quoted 1 line
95794fd4addab42e1495d55a%7C1%7C0%7C638441369538549173%7CUn
Quoted 1 line
Quoted 1 line
known%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI
Quoted 1 line
Quoted 1 line
6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=ncEx22tfXnSo5iCml
Quoted 1 line
Quoted 1 line
2wOalCR6PZ2NNxtO1JMydVK9ao%3D&reserved=0. But I don't have setup
here
Quoted 9 lines
Quoted 8 lines
to reproduce like Florian had.
Jan
--
Siemens AG, Technology
Linux Expert Center