Five Eligible CPUs, a Four-CPU Quota: What Runtimes Report and What It Costs
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Octri's Emad Khair compares what runtimes report in a container with five eligible CPUs but a four-CPU quota: Python 3.13 and Go 1.23 say five, Node.js 22 and OpenJDK 21 say four. In a small Python test, five CPU-bound workers instead of four left batch time near 1.0 s but raised 95th-percentile job time from 50.4 to 70.9 ms, with throttling in nine of ten periods. The workload is narrow, but it supports setting worker counts explicitly. Go 1.25 now considers cgroup quotas in its default GOMAXPROCS.