[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

Vadym Stupakov report at bugs.python.org
Mon Oct 11 02:31:29 EDT 2021


Vadym Stupakov <vadim.stupakov at gmail.com> added the comment:

> Do we have any news about this?

There is IBM effort to do this in container level, so that os.cpu_count() will return right result in container

https://www.phoronix.com/scan.php?page=news_item&px=Linux-CPU-Namespace

----------
nosy: +RedEyed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36054>
_______________________________________


More information about the Python-bugs-list mailing list