
04-06-2009, 03:00 AM
|
|
Senior Member
|
|
Join Date: Sep 2008
Posts: 121
|
|
Quote:
Originally Posted by mistwang
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.
|
How can do it?
* there are enough free memory to spare.
* /dev/shm/ should be mounted as tmpfs.
|