From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Vladimir Riabchun <vladimir.riabchun@virtuozzo.com>
Cc: devel@openvz.org, Sashiko <no-reply@sashiko.virtuozzo.com>
Subject: Re: [Devel] [PATCH hci-8.1 v5 1/2] sched: Fix sched_getaffinity syscall
Date: Thu, 19 Nov 2026 18:32:30 +0100 [thread overview]
Message-ID: <179510955059.321524.14308300660666059765.b4-review@b4> (raw)
In-Reply-To: <20261119-ct-invalid-nrpoc-v5-1-ff22216f458b@virtuozzo.com>
I won't apply this version, please send v6, items 1 and 2 of the
cover letter reply.
On Thu, 19 Nov 2026 10:54:02 +0100, Vladimir Riabchun wrote:
> We can't run on more than count(cpuset) CPUs and we are
> limited by vCPU number. So the minimum of these two is the
Item 2: the vCPU number is task_nr_cpus(p) of the target task, not of
the caller; say so.
On your question in the v3 thread: keep sched_setaffinity() returning
0 in a CT. -EPERM would fail taskset, numactl and systemd units with
CPUAffinity= inside CTs, and the no-op is what makes the prefix mask
from sched_getaffinity() harmless to pass back. If you still want
-EPERM, it is a patch and a ticket of its own.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-19 17:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 9:54 [Devel] [PATCH hci-8.1 v5 0/2] sched: Fix incorrect nproc report inside CT Vladimir Riabchun
2026-11-19 9:54 ` [Devel] [PATCH hci-8.1 v5 1/2] sched: Fix sched_getaffinity syscall Vladimir Riabchun
2026-11-19 17:32 ` Konstantin Khorenko [this message]
2026-11-19 9:54 ` [Devel] [PATCH hci-8.1 v5 2/2] selftests: ve: Test sched_getaffinity in VE Vladimir Riabchun
2026-11-19 10:01 ` no-reply
2026-11-19 17:32 ` Konstantin Khorenko
2026-11-19 17:32 ` [Devel] [PATCH hci-8.1 v5 0/2] sched: Fix incorrect nproc report inside CT Konstantin Khorenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179510955059.321524.14308300660666059765.b4-review@b4 \
--to=khorenko@virtuozzo.com \
--cc=devel@openvz.org \
--cc=no-reply@sashiko.virtuozzo.com \
--cc=vladimir.riabchun@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.