There is a way to do this. The best way would be a resource management system which allocates cgroups. Without the RMS it is possible to define a cgroup for a given user (group ?) such that they are within the cgroup when logging in.
https://github.com/plaguedbypenguins/splosh It would be interesting to test this on a multi node MPI job - would it work with MPI launchers? On Mon, 26 Jun 2023 at 18:08, Dave Martin via users < users@lists.open-mpi.org> wrote: > Hi, > > I am using OpenMPI 4.1.1 (without a scheduler) and I want to limit the > number of CPU or threads a specific user (or host, if I must) can use. > Is there a configuration or environment variable I can use? This user > has not been following our resource management policy so simply asking > him to use -np 2 will not suffice. > > Thank you, > > Dave Martin > >