Is there any way to avoid to write in /dev/shm ?

16 views
Skip to first unread message

Sergi Ruiz-Barragan

unread,
Jun 18, 2026, 4:14:59 PMJun 18
to NWChem Forum
Dear users,
I'm trying to do some CCSD calculations but nwchem requires space in /dev/shm. As I done the calculations in a cluster, I cannot control the space assigned to shm and the calculation died because shm is out of space. 

hostname: , [7] /dev/shm fs has size 4834 bytes left, new shm area has size 7150 need to increase /dev/shm by 2316 Mbytes
check_devshm: /dev/shm out of space: Success

Is there any way to avoid shm and use the SCRATCH disk ?

jeff.science

unread,
Jun 20, 2026, 1:32:49 PMJun 20
to NWChem Forum
It is up to your cluster admins to ensure that the schedule (e.g. slurm) does proper cleanup of /dev/shm after jobs terminate.  At least on exclusive nodes, this is trivial - they just need to nuke /dev/shm and /tmp in the slurm epilogue.

In any case, the use of /dev/shm is not due to NWChem, but the communication layer.  Both the native ARMCI ports and MPI use shared memory (Sys5 or POSIX).  This is necessary and there is a low bound on what is required for them to function.  For Global Arrays applications like NWChem, it can be a large amount, since all GA allocations will go there.

2.3 GB is a lot of /dev/shm but is not surprising for NWChem CCSD jobs.  If you are running TCE, you can use the filesystem instead but the code will run so much slower it's not worth doing.  You will not only have very slow performance due to the disk speed but you will also lose some of the GA-specific algorithms that make CCSD go faster.

Jeff

Reply all
Reply to author
Forward
0 new messages