Skip to main content

developerWorks >  AIX and UNIX  >  Forums  >  AIX Forum  >  developerWorks

CSwitch: how much is too much?    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 2 - Pages: 1 - Last Post: Nov 11, 2009 2:57 PM Last Post By: Pave1 Threads: [ Previous | Next ]
dpshaver

Posts: 5
Registered: Nov 20, 2007 07:06:49 AM
CSwitch: how much is too much?
Posted: Nov 09, 2009 08:06:19 AM
 
Click to report abuse...   Click to reply to this thread Reply
Attachment nmon_report.txt (23.6 KB)
At what level should i be concerned about context switching? I have a server, when idle sees cswitch ~200-500
but when under heavy load is peaking over 20k (with over 100k syscalls). Is this a sign that my CPU allocation is too low or is this normal?

Thanks in advance!

dan
Kosala

Posts: 35
Registered: Jun 23, 2009 02:28:15 AM
Re: CSwitch: how much is too much?
Posted: Nov 09, 2009 02:13:24 PM   in response to: dpshaver in response to: dpshaver's post
 
Click to report abuse...   Click to reply to this thread Reply
Interesting question, I never really thought about it actually. IINM cswitch is a highly contextual measure. I would definitely like to know if someone can explain how cswitch can be used... to monitor performance.

As for the CPU utilization and the server load, I would used the uptime load averages, from the uptime command. According to the man page, the last three figures will give you the number of threads (or processes) in the runnable state as a moving average of 1, 5 and 15 mins. So as for Power5+, IBM claimed that you can afford to have 5xnum_of_cores (there was a note on infocenter.. can't seems to find it now)... but this will be only valid for 1 min interval. If your 15 min average is seen more than 2xnum_cores (if you consider the SMT feature enabled), then your system might need more than what it already has.
Pave1

Posts: 13
Registered: Oct 15, 2007 10:22:54 AM
Re: CSwitch: how much is too much?
Posted: Nov 11, 2009 02:57:39 PM   in response to: dpshaver in response to: dpshaver's post
 
Click to report abuse...   Click to reply to this thread Reply
Hi,

20-100k is nothing. Ive seen very old small p5 server which were able to handle couple of megs cswitches per sec. It was caused by a problem in application which did not buffer writes. I used one "write" syscall per writing each byte : write(OUT,1). Well, in this case the server was CPU overloaded.

Cheers,
Pavel
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums