We are running Ubuntu 20.04 with RStudio Server Open Source. The system is using OpenBLAS for linear algebra.
What are the different ways to limit the number of threads on a per user base used for linear algebra from within RStudio Server?
I have tried setting
export OPENBLAS_NUM_THREADS=4
in .profile
and .bashrc
but neither works.
I haven't tried [1] yet. Are there other ways? I would like to make a low number of threads the default for everyone because users are not aware of the different types of parallelism and oversubscribe cores.
I am also not able to limit the number of threads for all users, I have tried setting them in
/etc/environment
/etc/rstudio/env-vars
and also with
systemctl edit rstudio-server.service
nothing works.