I ilia987 Well-Known Member Sep 9, 2019 281 14 58 37 May 6, 2020 #1 when running python script inside the lxc all the python functions i found return the original core count of the host, and it should return the amount of recesses allocated to the lxc. anyone got an idea ?
when running python script inside the lxc all the python functions i found return the original core count of the host, and it should return the amount of recesses allocated to the lxc. anyone got an idea ?
Stefan_R Proxmox Retired Staff Retired Staff Jun 4, 2019 1,300 308 88 Vienna May 6, 2020 #2 It depends if you want to read physical or logical cores (this is the same difference between running nproc and nproc --all). See this SO answer on how to get logical cores in python for example: https://stackoverflow.com/a/55423170 Reactions: ilia987
It depends if you want to read physical or logical cores (this is the same difference between running nproc and nproc --all). See this SO answer on how to get logical cores in python for example: https://stackoverflow.com/a/55423170