[Devel] [PATCH hci-8.1 v5 0/2] sched: Fix incorrect nproc report inside CT

Konstantin Khorenko khorenko at virtuozzo.com
Thu Nov 19 20:32:30 MSK 2026


I won't apply this version, please send v6 on top of hci-8.2 with the
changes below.

1. Base v6 on hci-8.2 (branch-rh10-6.12.0-211.75.1.26.x.vz10-ovz), not
   on hci-8.1: the series goes to hci-8.2. v5 does not apply there,
   patch 2 conflicts in the selftests/ve Makefile and .gitignore lists.
   With those resolved it still does not build: 26182b5f9943c
   ("selftests/ve: open the host cgroup2 mount instead of creating
   one") replaced mount_cg2_fd() with open_cg2_fd().
2. Patch 1 message: say that the vCPU limit is the one of the target
   task, task_nr_cpus(p). This part of v3 item 2 is still missing.
3. Patch 2: drop the unused includes Sashiko listed: asm/unistd.h,
   linux/sched.h, sys/syscall.h, sys/stat.h and stdlib.h.
4. Cover letter: v3 item 6 is still open. The old code did use
   num_online_vcpus(), the bug was the rounding; "64 no matter what"
   holds up to 64 vCPUs only; fix the typos "nonsence", "insted" and
   "mesage"; name the gnulib function instead of linking a line of
   master.

The other v3 items are done, thanks. The Fixes tag on 17e30fe0e094 is
right for this branch.

On Thu, 19 Nov 2026 10:54:01 +0100, Vladimir Riabchun wrote:
> It appears that this syscall returned complete nonsence when
> called from VE - we ignored both num_online_vcpus and

Item 4: the cover letter text is the same as in v3.

Sashiko's other two remarks on v5 2/2 need no change. The CT cgroup is
left behind only when prepare_namespaces() fails in the setup, as in
ve_mount_accounting_test.c. Under "taskset -c 0,1" the test passes:
cpuset_attach() keeps a task's mask when the old and the new cgroup
have the same effective CPUs; it would fail only in a cgroup with a
narrower cpuset.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list