open-discussion
open-discussion > RE: Changing location for working files
19 hours ago | Paul Wright - University College London
RE: Changing location for working files
Originally posted by Christopher Schwarz:
If your $MCR_CACHE_ROOT on $scratch_dir is shared across multiple jobs, you may run into difficulties where two jobs start at roughly the same time, causing one to delete the cache that the other just unpacked. Ideally you would seed time or jobID into the scratch_dir name to avoid collisions, but 350MB x n jobs may be more scratch than your node has available. It's an unfortunately tricky balance inherent to deployed matlab applications.
Yes, I currently have:
scratch_dir=/scratch0/${USER}/mri_reface_${JOB_ID}.${SGE_TASK_ID}
As you say, that means I have multiple copies of the MCR
cache, even if they are short-lived. I agree it's a balancing
act!
Threaded View
| Title | Author | Date |
|---|---|---|
| Paul Wright | May 13, 2026 | |
| Christopher Schwarz | May 15, 2026 | |
| Paul Wright | 19 hours ago | |
