openvz tmpfs and dcachesize
Mon, 12/12/2011 - 16:21 — sandipWhen using tmpfs inside OpenVZ containers, make sure to monitor and increase dcachesize (directory and inode entries) appropriately.
tmpfs mounts can be used to speed up applications doing lots of read/writes to temporary diskspace such a php sessions and mysql tmp directory.
Mount using "/etc/fstab":
tmpfs /dev/shm &nbs p; tmpfs noexec,nosuid,nodev   ; 0 0
tmpfs /var/lib/php/session &nbs p; tmpfs mode=770,gid=48,size=500M,noex ec,nosuid,nodev,noatime & nbsp; 0 0
Note: default folder permission of "/var/lib/php/session" is 770 and set to the apache Group ID.