SMF Support > Server Performance and Configuration
Reducing CPU usage
[Unknown]:
Zend Optimizer is really just a tool that runs Zend Encoder-encoded PHP scripts. It does improve performance of PHP slightly, but only by a negligable amount.
Using something like eAccelerator, APC, or Turck MMCache will decrease your CPU noticeably. Basically, they cache the compiled and optimized output bytecode of a PHP script, and put it in ram. This is then read from the ram, not the disk, which is obviously faster - but it also doesn't have to regenerate it, which is also faster.
PHP 4.3.11 is out, too, and it fixes more than one security issue. Good idea to upgrade if at all possible.
Being that you're on a shared server, you may not have control over these things.
You may wish to consider converting some of your tables to InnoDB. This will require that MySQL is actually set up to efficiently deal with InnoDB tables, but if it is, it will be faster.
-[Unknown]
HoTmetal:
I'd look for a new host. Even if you fix these issues, you site will grow & you'll be in predicament latter down the line...
orange:
--- Quote from: [Unknown] on May 01, 2005, 01:10:46 PM ---Using something like eAccelerator, APC, or Turck MMCache will decrease your CPU noticeably. Basically, they cache the compiled and optimized output bytecode of a PHP script, and put it in ram. This is then read from the ram, not the disk, which is obviously faster - but it also doesn't have to regenerate it, which is also faster.
--- End quote ---
Interesting, I always thought that was what Zend Optimizer did.
Thanks for the ideas -- I checked out the websites for those utilities, but none of them seemed to have been tested with a PHP version later than 4.3.4, which makes me a bit nervous about using them with the latest version. Still, it's something to try perhaps.
--- Quote ---You may wish to consider converting some of your tables to InnoDB. This will require that MySQL is actually set up to efficiently deal with InnoDB tables, but if it is, it will be faster.
--- End quote ---
Interesting, thanks for your help.
--- Quote ---I'd look for a new host. Even if you fix these issues, you site will grow & you'll be in predicament latter down the line...
--- End quote ---
Yeah, I've been starting to think that. The thing is that one step up from a shared server seems to be semi-dedicated, which involves quite a leap in price and so it's not something to take lightly.
Ben_S:
--- Quote from: orange on May 01, 2005, 02:10:39 PM ---Interesting, I always thought that was what Zend Optimizer did.
Thanks for the ideas -- I checked out the websites for those utilities, but none of them seemed to have been tested with a PHP version later than 4.3.4,
--- End quote ---
They work fine, I beleive Turck or eAccelerator is in use here and this site uses PHP 4.3.11, likewise I use Turck on my server on 4.3.11, although at some point I'll switch to eAccelerator as Turck has pretty much been abandoned.
HoTmetal:
--- Quote ---Yeah, I've been starting to think that. The thing is that one step up from a shared server seems to be semi-dedicated, which involves quite a leap in price and so it's not something to take lightly.
--- End quote ---
You can run a pretty big site on a shared server. Check the webhosting board at SMF. there are planty of good hosts....
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version