title: How and when to use /dev/shm for efficiency?
body: <p>How is <code>/dev/shm</code> more efficient than writing the file on the regular file system? As far as I know, <code>/dev/shm</code> is also a space on the HDD so the read/write speeds are the same.   </p>
  
  <p>My problem is, I have a 96GB file and only 64GB RAM (+ 64GB swap). Then, multiple threads from the same process need to read small random chunks of the file (about 1.5MB).</p>
  
  <p>Is <code>/dev/shm</code> a good use case for this?<br>
  Will it be faster than opening the file in read-only mode from <code>/home</code> and then passing over to the threads to do the reading the required random chunks?</p>