
04-05-2009, 12:00 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
If you got some spare memory in your server not being actively used, there is one tip to improve PHP and overall server performance. 
Requirements:
* there are enough free memory to spare.
* /dev/shm/ should be mounted as tmpfs.
Install eaccelerator with PHP suEXEC, set disk cache storage to /dev/shm/eaccelerator/ instead of /tmp/eaccelerator/, then add a cron job to clean the cache directory every 5-10 minutes, so cache files not being used frequently will not fill up the precious shared memory storage.
Noticed that the server load going down from 4.x to 1.x on one client's server.
|