Re: jails and CPU pinning

From: Peter 'PMc' Much <pmc_at_citylink.dinoex.sub.org>
Date: Thu, 22 Feb 2024 13:20:40 UTC
On 2024-02-13, Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> wrote:
> Dear Knowledgeable Hackers,
>
> is CPU pinning supposed to work from inside the jail if the jail CPU set 
> is full?
>  From my observations processes inside the jails don't walk over 
> CPUs(?!) and can be pinned to specific CPUs neither from the host nor 
> from the jail. Is this expected behavior?

root@edge:~ # jexec admn
root@admn:/ # cpuset -g -p $$
pid 54831 mask: 6, 7, 8, 9
pid 54831 domain policy: prefer mask: 0
root@admn:/ # cpuset -l 9 bash
[root@admn /]# cpuset -g -p $$
pid 55156 mask: 9
pid 55156 domain policy: first-touch mask: 0, 1

So what exactly is Your problem?