How to recover unavailable memory in /dev/shm
- by Alain Labbe
Good day to all, I have a question regarding the use of /dev/shm. I use it as a temporary folder for large files to speed up processing and save IO off the HD. My problem is that some of my scripts sometimes require "forceful" interruption for a variety of reasons. I can then manually remove the files left over in /dev/shm but the memory is not returned to available space (as seen by df -h). Is there any way to recover the memory without restarting the system?
I'm using LTS12.04 and most of the scripts are PERL running system call on C programs (bioinformatics tools).
Thanks.