On Wed, Feb 22, 2006 at 04:02:28PM +0800, Ken Perl wrote:
> Will a modperl2 program run faster on a cue core cpu machine than a
> single cpu machine if we assume their speeds are same? In other words,
> should I buy a new due core cpu machine?

This is not an easy question. A program without parallelisation won't
run faster (eg not twice as fast) on a dual core cpu. Web pages are
usually delivered at around the same speed as before (maybe slightly
faster), but the server can handle nearly twice the load (assuming
you don't have other bottlenecks like disk-i/o, memory).

Usually you have several programs running in parallel on todays
machines (httpd, mod_perl, mysql or postgresql)

Timing-example (this is really just an example to show the difference
between single- and dual core - the latter can also be seen as a
dual cpu machine (not like Intels HTT which might give a real
performance increase at all - depending on application)):

dual core:   1.8 pages per second 
             0.95 seconds for serving one page
single core: 1.0 pages per second
             1.0 seconds for serving one page

Hope this helps.

Regards,
Holger Kipp

Reply via email to