FormingWorlds / PROTEUS

Coupled atmosphere-interior framework to simulate the temporal evolution of rocky planets.
https://fwl-proteus.readthedocs.io
Apache License 2.0
12 stars 1 forks source link

Too many file descriptors #80

Open nichollsh opened 8 months ago

nichollsh commented 8 months ago

PROTEUS (and its submodules) are opening too many files. This is an issue for model runtime but it also means that when many cases of the model are running at once (e.g. in a grid), we can encounter the hard limit on the number of open files.

For example, I am running a grid of 1029 points with 105 processes at a time. After a few minutes of runtime, my user has 49k files open which can be broken down as follows...

This information can be obtained using the lsof command.

It would be valuable to investigate whether there are resource leaks occurring somewhere. I am sure we can also reduce the number of imported libraries; I can see that scipy is importing its FFT subroutines but they aren't used anywhere in the model.

This might relate to Issue #70.