Why podman exec is not inheriting the cpuset options from the container in Red Hat Enterprise Linux 9?

Solution Verified - Updated -

Issue

  • Why podman exec is not inheriting the cpuset options from the container in Red Hat Enterprise Linux 9 ?

For the container process, cpu affinity is set for CPU 0 and 1

[root@atomic-test ~]# podman ps --ns
CONTAINER ID  NAMES        PID         CGROUPNS    IPC         MNT         NET         PIDNS       USERNS      UTS
2d388bfcb1f4  sad_ganguly  4576        4026532755  4026532753  4026532751  4026532679  4026532754  4026531837  4026532752
[root@atomic-test ~]# taskset -cp 4576
pid 4576's current affinity list: 0,1

With podman exec, bash process affinity is set 0 - 4 and not 0 and 1

[root@atomic-test ~]# podman exec -it sad_ganguly bash
[root@2d388bfcb1f4 /]# taskset -cp 12
pid 12's current affinity list: 0-3

Environment

  • Red Hat Enterprise Linux 9.2
  • podman-4.6.1-5.el9.x86_64
  • crun-1.8.7-1.el9.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content