My very basic understanding of cgroups is that it can be used to limit cpu processing time for a group, and to ensure fair distribution of processing time within the group, but I don't know of a way to use cgroups to limit the number of CPUs available to a cgroup.
On Mon, Aug 31, 2020 at 8:56 AM Brock Palen <bro...@umich.edu> wrote: > > Hello, > > I have a small utility, it is currently using multiprocess.cpu_count() > Which currently ignores cgroups etc. > > I see https://gitlab.com/guystreeter/python-hwloc > But appears stale, > > How would you detect number of threads that are safe to start in a cgroup > from Python3 ? > > Thanks! > > Brock Palen > IG: brockpalen1984 > www.umich.edu/~brockp > Director Advanced Research Computing - TS > bro...@umich.edu > (734)936-1985 > _______________________________________________ > hwloc-users mailing list > hwloc-users@lists.open-mpi.org > https://lists.open-mpi.org/mailman/listinfo/hwloc-users _______________________________________________ hwloc-users mailing list hwloc-users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/hwloc-users