-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some operations fail with out-of-/tmp-space errors #887
Comments
Do we need to add a kwarg to set the temp directory to write to? Or write to the current directory like CASA? |
I think this is a documentation need first. Writing to the current directory is not a better default option - it depends on the machine & architecture of the storage system. But we should try to prevent writing tmp files larger than the tmp drive - frankly, I think dask should be doing this, but we will lose users if we don't come up with a solution |
Agreed. Looks like it can be set in a |
@ashleythomasbarnes Could you fill in more details about what you're trying? I think we can come to a solution but we need tracebacks and/or details about what went wrong. |
I'm trying to create a mean spectrum of a large MUSE datacube (~60GB), but this was filling up
|
@ashleythomasbarnes Thanks, that's helpful. Could you confirm that the cube is being read as a There are a few workarounds for this. Some are to do with dask, as noted above, but another approach is to force a non-dask spectral cube and do |
Or set the temporary directory to a location that has sufficient storage:
|
I don't think so @adamginsburg...
|
OK, then there's a different answer here. Try my suggestion, The other thing you can do is pass the |
@e-koch real issue here, though: How did Ash hit a case where tempfiles were being used? Tempfiles are only created by the |
Is it the memory mapping in |
No, that's not relevant - |
@d-l-walker @ashleythomasbarnes please help fill in details!
The brief version is: running some code in this file:
https://github.com/ACES-CMZ/reduction_ACES/blob/main/aces/joint_deconvolution/reproject_mosaic_funcs.py
resulted in failures because the
/tmp
drive got filled up.This is almost certainly a side effect of
dask
caching files to /tmp directories.We need to add documentation about this problem, and/or, do a filesystem size check before dumping things to
/tmp
The text was updated successfully, but these errors were encountered: