I read some articles about using tmpfs for /tmp and PHP sessions directories for better performance, and it sounds interesting.
I'm using Centos 6 server with LAMP stack (+FastCGI) and in my fcgid.conf I can see two configurations that are responsible for socket files:
FcgidIPCDir /var/run/mod_fcgid
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
Can I (and should I?) move those directories to another location and put those under tmpfs? I can't find any articles about it, but it sounds very reasonable to me, after all it shouldn't be persistent.
Edited: I removed another sub-question.
Thanks :)