Unix Technical Forum

Program excesive use of system cpu - Too high context wwitching

This is a discussion on Program excesive use of system cpu - Too high context wwitching within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello, scenario description: --> AIX 5.2 ML 7 with four POWER 4 processors --> RAM - 8 Gb --> ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 10:47 AM
edersm@wanadoo.es
 
Posts: n/a
Default Program excesive use of system cpu - Too high context wwitching

Hello,

scenario description:

--> AIX 5.2 ML 7 with four POWER 4 processors
--> RAM - 8 Gb
--> Ext. Storage - EMC Symmetrix.
--> Oracle 9.2.0.7 running.
--> Another software running constantly (32 bit software)
--> 32bit compiled kernel because this software requirements.

Copy-paste of a fragment of sar statistics (althouth all day is
similar):
---------------------------------------------------------------------------------------------------------------------
TIME USR SYS WIO IDLE
------------ -------- ------- ------- --------
.......
17:20:01 28 34 5 33
17:25:01 24 33 4 39
17:30:01 21 32 4 43
17:35:01 28 34 4 34
17:40:01 36 35 4 24
17:45:01 23 32 4 41
.......
---------------------------------------------------------------------------------------------------------------------

this is a fragment of vmstat with 1 second interval (look at SY and CS
columns):
---------------------------------------------------------------------------------------------------------------------
r b avm fre re pi po fr sr cy in sy
cs us sy id wa
20 0 1015871 33991 0 0 0 0 0 0 76310 96484 143694 6 32
58 4
38 0 1015995 33863 0 0 0 0 0 0 75893 97185 143800 7 28
61 4
4 0 1015944 33914 0 0 0 0 0 0 71564 91087 126781 27 30
39 4
2 0 1015912 33946 0 0 0 0 0 0 76736 96956 144079 7 31
58 4
42 0 1016145 33634 0 0 0 0 0 0 74030 99762 137739 8 32
55 5
0 1 1015864 33992 0 0 0 0 0 0 75664 97942 138391 11 35
50 5
30 0 1016099 33756 0 0 0 0 0 0 73602 103065 134200 15 34
48 4
10 0 1016165 33690 0 0 0 0 0 0 70432 97337 130521 18 38
40 4
---------------------------------------------------------------------------------------------------------------------

The process that is, in my opinion, causing the problem:
---------------------------------------------------------------------------------------------------------------------
<USER> 187422 13.2 2.0 157288 155920 - A 05:15:19 432:07
<PROCESS NAME>
---------------------------------------------------------------------------------------------------------------------

The Context Switch is excesive. I,ve been trying to change AIX
scheduler parameters with schedtune but I´ve not any satisfactory
result with SCHED_D, SCHED_R and TIMESLICE.

I´ve got same questions:

- This process is multi-threaded, about 150-250 threads a time. How can
I be sure that this process is which is causing this high CS ? We can
change the max threads this process opens but when we use less than
200, the funcinality begins to fail .... so we have 250 max.
- In that case, how can I reduce this excesive use of system cpu ?
- What do you think about ?

Thanks in advance for your attention.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:18 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com