Post #2167952
2026-05-05 20:38 UTC
@jake It's aware of CPU affinity. It is _not_ aware of cgroups.
```
$ docker run -it --cpus=3 python:3.14-slim python -c "import os; print(os.process_cpu_count())"
20
```
Should have printed 3 if it was cgroups-aware.
Replies (1)
-
@jake@mastodon.theorangeone.net 2026-05-06 08:03
@itamarst TIL! That feels like a real foot-gun