When 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 tmpfs noexec,nosuid,nodev 0 0
tmpfs /var/lib/php/session tmpfs mode=770,gid=48,size=500M,noexec,nosuid,nodev,noatime 0 0Note: default folder permission of "/var/lib/php/session" is 770 and set to the apache Group ID.
Select the checkbox besides the new agent that is created and click on the "Share" button.
Enter email address of person to share the agent with and select "Offer assistance" tab and click "OK".
In The "Targets" page, click on the "Authorize Access" tab to "Enable" access and get the required ssh credentials to log in to the remote server via ssh.
Login via ssh to the IP and port specified on the "Access" page.