You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Advise on HPC conda environments consuming home directory quota #30
It's been a repeated occurrence that conda environments, which default to living in a user's home directory, causes the user's quota to exceed the file count limit on OSC.
To fix this, conda can be configured to store environments and packages in a custom location, scratch storage being an appropriate option I use and have recommended. E.g., in a ~/.condarc file:
Yes, putting conda environments into your home directory on a shared cluster is a bad idea, including in major ways for the reason you say. Another is that they are then essentially not shareable.
The simple practice I use and that has worked entirely fine is to put conda environments into places where there is enough storage, and that is accessible to a whole lab group, which is easily done using the -p argument to conda create. I.e., when creating a confide environment, use paths, not names. The former is much more reproducible than the former.
That said, this still doesn't address the location of the package cache, which also defaults to your home directory. So a mechanism is still needed to ensure the package cache goes somewhere else, and arguably it should be scratch (in contrast to conda environments, which arguably should not go to scratch space, where they are at risk of getting purged after some time).
Activity
hlapp commentedon Feb 28, 2025
Yes, putting conda environments into your home directory on a shared cluster is a bad idea, including in major ways for the reason you say. Another is that they are then essentially not shareable.
The simple practice I use and that has worked entirely fine is to put conda environments into places where there is enough storage, and that is accessible to a whole lab group, which is easily done using the
-pargument toconda create. I.e., when creating a confide environment, use paths, not names. The former is much more reproducible than the former.That said, this still doesn't address the location of the package cache, which also defaults to your home directory. So a mechanism is still needed to ensure the package cache goes somewhere else, and arguably it should be scratch (in contrast to conda environments, which arguably should not go to scratch space, where they are at risk of getting purged after some time).