Re: [PATCH 0/3] cgroup/misc: Add hwcap masks to the misc controller
Michal Koutný <[email protected]> Mon, 8 Dec 2025 17:48:47 +0100
| Newsgroups | dev.linux.lists.criu,org.kernel.vger.cgroups,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <6dmgfe5vbbuqw7ycsm4l2ecpv4eppdsau4t22kitjcjglg2gna@dyjlwhfhviif> |
Hello Andrei. On Fri, Dec 05, 2025 at 12:19:04PM -0800, Andrei Vagin <[email protected]> wrote: > If we are talking about C/R use cases, it should be configured when > container is started. It can be adjusted dynamically, but all changes > will affect only new processes. The auxiliary vectors are set on execve. The questions by Ridong are getting at the reasons why cgroup API doesn't sound like a good match for these values. I understand it's tempting to implement this by simply copying some masks from the enclosing cgroup but since there's little to be done upon (dynamic) change or a process migration it's overkill. So I'd look at how other [1] adjustments between fork-exec are done and fit it with them. I guess prctl would be an option as a substitute for non-existent setauxval(). Thanks, Michal [1] Yes, I admit cgroup migration is among them too. Another one is setns(2) which is IMO a closer concept for this modified view of HW, I'm not sure whether hardware namespaces had been brought up (and rejected) in the past.
signature.asc
(application/pgp-signature, 265 B)
-----BEGIN PGP SIGNATURE----- iJEEABYKADkWIQRCE24Fn/AcRjnLivR+PQLnlNv4CAUCaTcBbBsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMSwyLDIACgkQfj0C55Tb+Ai8MAEAyeSN6KCarnIABEa5QMqm oISbZ1p14CvmHATzKA1bOyEBALyv5+on7iSaLxmoTq8ygkMxgB3VKwZP81DcFFDB DEQF =v5da -----END PGP SIGNATURE-----