-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John,

On 5/18/2009 4:17 PM, johnrock wrote:
> Based on budget, the affordable options I have to choose from appear to be:
> 1 single core @3Ghz 
> or
> 1 dual core  @~2.1Ghz 
> or 
> 1 Quad core @~2.1Ghz

What are the types of cores? Are any of them hyperthreaded? Some of the
older Intel cores (like the P4) run at a high clock speed but aren't as
good as the newer, lower-speed cores. My Core2 Duo @ 2.1GHz beats the
crap out of my old P4 3.0GHz HT chip (same number of logical cores,
older one has higher clock speed rating).

> My question is: Which processor configuration do you think would benefit
> tomcat more? Given the limited/basic options I have,would tomcat benefit
> more from 2 or more cores or is speed more important?

Without going into too much detail (and risking flames!):

- - More logical cores are better than less
- - More physical cores are better than less (and better than more
  logical cores like hyperthreaded)
- - More physical CPUs aren't as good as multi-core chips with the
  same total number of cores (single chip sync'ing with itself
  is faster than reaching across the mobo to another chip
  to do the same thing)

Java web applications are, by definition, multi-threaded. The more
logical processing units you have, the faster your webapp will run,
since each core can only do one thing at a time!

In my experience, bus speed, memory speed, memory size, and disk speed
are the biggest differentiating factors for servers. Let's face it: your
web application is spending more time allocating, de-allocating, and
copying memory around than it is performing numerical computations. Most
of the time, your CPU is waiting on data to travel from one place to
another, not the other way around.

I would focus on factors other than the CPU, honestly.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoRx80ACgkQ9CaO5/Lv0PDIlACfUfuDHHH+tfR+Otv9hLMjIPc+
YGEAoIDZx8VX6lDp9PY5u3x1sE+cM5Ij
=feDA
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to