Commit 0a4dbf8
fix: ignore cpuset when it matches all online CPUs
cgroup v2 always exposes cpuset.cpus.effective listing every CPU even
when no user-visible cpuset restriction is configured. Compare the set
against /sys/devices/system/cpu/online and return null when it covers
all of them, so the v1 fallback remains reachable and "no restriction"
is no longer misrepresented as "cpuset = all CPUs".
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f573d01 commit 0a4dbf8
1 file changed
Lines changed: 36 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
269 | 259 | | |
270 | 260 | | |
271 | | - | |
272 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
273 | 269 | | |
| 270 | + | |
| 271 | + | |
274 | 272 | | |
275 | 273 | | |
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
279 | 300 | | |
280 | 301 | | |
281 | 302 | | |
| |||
0 commit comments