Webserver: Performance impact when storing session files on /dev/shm
- by GetFree
I have a website runing on a typical setup: Linux, Apache, PHP, MySQL.
However, what's not typical about it, is that it's getting tons of traffic (400,000+ visits a day) and so, efficiency is becoming more and more important to me.
I'm constantly looking for things I could optimize and, right now, my attention is focused on PHP's session files.
There's a hell lot of session files constantly being read and created on the /tmp directory.
So my question is: Is it a good idea to store the session files in /dev/shm (tmpfs) in order to speed things up a little bit??