[issue36054] Way to detect CPU count inside docker container

Keir Lawson report at bugs.python.org
Wed Feb 20 15:24:27 EST 2019


Keir Lawson <keirlawson at gmail.com> added the comment:

I believe this is related to this ticket: https://bugs.python.org/issue26692

Looking at Java's implementation it seems like they are checking if cgroups are enabled via /proc/self/cgroup and then if it is parsing the cgroup information out of the filesystem.

----------

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


More information about the Python-bugs-list mailing list