Webserver: Performance impact when storing session files on /dev/shm

Posted by GetFree on Server Fault See other posts from Server Fault or by GetFree
Published on 2010-05-04T01:38:13Z Indexed on 2010/05/04 1:48 UTC
Read the original article Hit count: 279

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??

© Server Fault or respective owner

Related posts about linux

Related posts about webserver