exec driver CPU limit isn't honored when using cgroupv2 #11120
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/driver/exec
type/bug
Nomad version
Nomad v1.1.4 (acd3d78)
Operating system and Environment details
Debian GNU/Linux 11 with cgroups v2
Issue
CPU limit ignored when using
driver=exec
Reproduction steps
Run tasks with different CPU resources and exec driver. See example job attached.
Expected Result
Tasks with a higher cpu limit get more cpu.
Actual Result
To difference in cpu usage, see screenshot (stress -v and stress -q have same cpu usage):
Compared with
driver="docker"
. stress with-v
gets much lower cpu percent:Job file (if appropriate)
The text was updated successfully, but these errors were encountered: