Re: Tomcat Configuration in Multi Core Systems

2011-04-24 Thread sujikin

Hi,

Thanks for your replies. I was sure Server B will never will be able to
match Server A even if it had
infinite processors in it ( provided everything remains the same). Just
wanted to confirm.

@David
Server B has *116* processors only.
Slow because of time taken to handle single request.

Regards,
Sujeet 



David Kerber wrote:
 
 On 4/23/2011 2:31 PM, Sujeet Singh wrote:
 Hi,

 I have two servers which has below configuration,

 Server A has 32 GB RAM, 4  processors each of 2.8 GHz

 Server B has 32 GB RAM, 116  processors each of 1.6 GHz.

 Both servers has tomcat installed having same configuration.

 Tomcat of server B is at least half as slow as Server A.

 My question is...just by increasing the worker thread count, the
 performance
 of
 Server B can be increased or we need to do something else also?

 Tomcat version is 5.5 and Java version is 5. OS used is Solaris 10 SPARC.

 Thanks  Regards,
 Sujeet

 First, I assume you mean 16 processors in server B, rather than 116.
 
 You need to define slow:  time to process a single request, or # of 
 requests it can handle?
 
 Server B's clock speed is about half that of A, so I would expect 
 (everything else being equal) that it would run at ~ half the speed of A 
 for a single request.  However, given that it has 4x as many processors, 
 it should be able to handle ~ 4x as many simultaneous requests, but each 
 of them will still take about 2x as long as they would on A.
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-Configuration-in-Multi-Core-Systems-tp31462700p31464366.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat Configuration in Multi Core Systems

2011-04-24 Thread David Kerber

On 4/24/2011 3:07 AM, sujikin wrote:

Hi,

Thanks for your replies. I was sure Server B will never will be able to
match Server A even if it had
infinite processors in it ( provided everything remains the same). Just
wanted to confirm.

@David
Server B has *116* processors only.
Slow because of time taken to handle single request.
32Gb shared among 116 processors isn't very much RAM for each process 
(that's why I assumed it was 16, not 116).  You'll likely get a 
performance boost if you can give it more RAM.





Regards,
Sujeet



David Kerber wrote:

On 4/23/2011 2:31 PM, Sujeet Singh wrote:

Hi,

I have two servers which has below configuration,

Server A has 32 GB RAM, 4  processors each of 2.8 GHz

Server B has 32 GB RAM, 116  processors each of 1.6 GHz.

Both servers has tomcat installed having same configuration.

Tomcat of server B is at least half as slow as Server A.

My question is...just by increasing the worker thread count, the
performance
of
Server B can be increased or we need to do something else also?

Tomcat version is 5.5 and Java version is 5. OS used is Solaris 10 SPARC.

Thanks   Regards,
Sujeet


First, I assume you mean 16 processors in server B, rather than 116.

You need to define slow:  time to process a single request, or # of
requests it can handle?

Server B's clock speed is about half that of A, so I would expect
(everything else being equal) that it would run at ~ half the speed of A
for a single request.  However, given that it has 4x as many processors,
it should be able to handle ~ 4x as many simultaneous requests, but each
of them will still take about 2x as long as they would on A.



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






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



Re: Tomcat Configuration in Multi Core Systems

2011-04-24 Thread Justin Randall
That statement is only correct if memory footprint is an issue, or if each 
thread allocates a lot of dynamic memory that isn't shared by other threads.  
If there isn't much memory required, or if most of the data stored in memory is 
heavily shared, adding more memory will not increase performance.

Each processor has it's own on-die memory caches, which affect performance more 
than the amount of RAM all together (especially with good memory locality 
design).  If all threads are trying to access an object that resides in the 
memory local to processor 1, adding more memory won't change the fact that 
access to this object from other processors will require non-local memory 
access through CPU boundaries.

Regards,

Justin Randall
Sent from my BlackBerry device

-Original Message-
From: David Kerber dcker...@verizon.net
Date: Sun, 24 Apr 2011 08:54:35 
To: Tomcat Users Listusers@tomcat.apache.org
Reply-To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat Configuration in Multi Core Systems

On 4/24/2011 3:07 AM, sujikin wrote:
 Hi,

 Thanks for your replies. I was sure Server B will never will be able to
 match Server A even if it had
 infinite processors in it ( provided everything remains the same). Just
 wanted to confirm.

 @David
 Server B has *116* processors only.
 Slow because of time taken to handle single request.
32Gb shared among 116 processors isn't very much RAM for each process 
(that's why I assumed it was 16, not 116).  You'll likely get a 
performance boost if you can give it more RAM.



 Regards,
 Sujeet



 David Kerber wrote:
 On 4/23/2011 2:31 PM, Sujeet Singh wrote:
 Hi,

 I have two servers which has below configuration,

 Server A has 32 GB RAM, 4  processors each of 2.8 GHz

 Server B has 32 GB RAM, 116  processors each of 1.6 GHz.

 Both servers has tomcat installed having same configuration.

 Tomcat of server B is at least half as slow as Server A.

 My question is...just by increasing the worker thread count, the
 performance
 of
 Server B can be increased or we need to do something else also?

 Tomcat version is 5.5 and Java version is 5. OS used is Solaris 10 SPARC.

 Thanks   Regards,
 Sujeet

 First, I assume you mean 16 processors in server B, rather than 116.

 You need to define slow:  time to process a single request, or # of
 requests it can handle?

 Server B's clock speed is about half that of A, so I would expect
 (everything else being equal) that it would run at ~ half the speed of A
 for a single request.  However, given that it has 4x as many processors,
 it should be able to handle ~ 4x as many simultaneous requests, but each
 of them will still take about 2x as long as they would on A.



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





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




Tomcat Configuration in Multi Core Systems

2011-04-23 Thread Sujeet Singh
Hi,

I have two servers which has below configuration,

Server A has 32 GB RAM, 4  processors each of 2.8 GHz

Server B has 32 GB RAM, 116  processors each of 1.6 GHz.

Both servers has tomcat installed having same configuration.

Tomcat of server B is at least half as slow as Server A.

My question is...just by increasing the worker thread count, the performance
of
Server B can be increased or we need to do something else also?

Tomcat version is 5.5 and Java version is 5. OS used is Solaris 10 SPARC.

Thanks  Regards,
Sujeet


Re: Tomcat Configuration in Multi Core Systems

2011-04-23 Thread David Kerber

On 4/23/2011 2:31 PM, Sujeet Singh wrote:

Hi,

I have two servers which has below configuration,

Server A has 32 GB RAM, 4  processors each of 2.8 GHz

Server B has 32 GB RAM, 116  processors each of 1.6 GHz.

Both servers has tomcat installed having same configuration.

Tomcat of server B is at least half as slow as Server A.

My question is...just by increasing the worker thread count, the performance
of
Server B can be increased or we need to do something else also?

Tomcat version is 5.5 and Java version is 5. OS used is Solaris 10 SPARC.

Thanks  Regards,
Sujeet


First, I assume you mean 16 processors in server B, rather than 116.

You need to define slow:  time to process a single request, or # of 
requests it can handle?


Server B's clock speed is about half that of A, so I would expect 
(everything else being equal) that it would run at ~ half the speed of A 
for a single request.  However, given that it has 4x as many processors, 
it should be able to handle ~ 4x as many simultaneous requests, but each 
of them will still take about 2x as long as they would on A.




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



Re: Tomcat Configuration in Multi Core Systems

2011-04-23 Thread Justin Randall
Hi Sujeet,

In any application, speed is primarily determined by serial portions of code 
execution.

Speed isn't something that is increased by adding more threads, however 
throughput can usually be increased which has the illusion of increasing 
speed for a given workload.

That said, you should examine the serial parts of your application code and try 
to leverage additional parallelism (i.e. If you have multiple tasks within a 
single request to complete which aren't heavily dependent on each other).  This 
can help reduce the time it takes for a given request to complete.

If each request is handled only by a single thread then it should be expected 
that a CPU with 1/2 the speed performs 1/2 as fast.

Regards,

Justin Randall
--Original Message--
From: Sujeet Singh
To: users@tomcat.apache.org
ReplyTo: Tomcat Users List
Subject: Tomcat Configuration in Multi Core Systems
Sent: Apr 23, 2011 14:31

Hi,

I have two servers which has below configuration,

Server A has 32 GB RAM, 4  processors each of 2.8 GHz

Server B has 32 GB RAM, 116  processors each of 1.6 GHz.

Both servers has tomcat installed having same configuration.

Tomcat of server B is at least half as slow as Server A.

My question is...just by increasing the worker thread count, the performance
of
Server B can be increased or we need to do something else also?

Tomcat version is 5.5 and Java version is 5. OS used is Solaris 10 SPARC.

Thanks  Regards,
Sujeet



Sent from my BlackBerry device