In general I/O to the disk are the slowest thing on a server.
Anything that uses more ram then the hard disk will be "softer" on your CPU.
If you got the ram try all in RAM: shm_only or if your ram fills up try shm and finally shm_and_disk.
As a rule you have to reduce the time, the current number of computations take to perform, to reduce the load on the CPU. So anything that will make these computations fasters will enable then to be "in and out" of the CPU faster and reduce your load.
So if you got the RAM, use more of it. This is true for all application layers involved (System caches, WWW Server caches, eAccelerator cache, database caches....). For example, if you use IIS, tweak it to use more ram for your "high traffic" files (logs ? etc...), reduce the time it take to process DB requests...etc...
Also high CPU is not realy a problem if you site is still fast. An average of 10% CPU usage is practicaly no different then 0%.
If your CPU average is 20%+ and growing you need serious optimization and/or hardware upgrades.
Joined: 2006-01-02
Hi,
In general I/O to the disk are the slowest thing on a server.
Anything that uses more ram then the hard disk will be "softer" on your CPU.
If you got the ram try all in RAM: shm_only or if your ram fills up try shm and finally shm_and_disk.
As a rule you have to reduce the time, the current number of computations take to perform, to reduce the load on the CPU. So anything that will make these computations fasters will enable then to be "in and out" of the CPU faster and reduce your load.
So if you got the RAM, use more of it. This is true for all application layers involved (System caches, WWW Server caches, eAccelerator cache, database caches....). For example, if you use IIS, tweak it to use more ram for your "high traffic" files (logs ? etc...), reduce the time it take to process DB requests...etc...
Also high CPU is not realy a problem if you site is still fast. An average of 10% CPU usage is practicaly no different then 0%.
If your CPU average is 20%+ and growing you need serious optimization and/or hardware upgrades.