From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mike Broderick Newsgroups: gmane.os.tru64.managers Subject: perf probs (excessive content switching noted) Date: Mon, 07 Apr 2003 20:30:00 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3E921808.9080607@mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1049762005 23369 80.91.224.249 (8 Apr 2003 00:33:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 8 Apr 2003 00:33:25 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Apr 08 02:33:22 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 192h3B-00064L-00 for ; Tue, 08 Apr 2003 02:33:21 +0200 Original-Received: (qmail 8421 invoked by uid 5); 8 Apr 2003 00:33:37 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 8412 invoked by uid 49493); 8 Apr 2003 00:33:37 -0000 Original-Received: from broderic@MIT.EDU by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(0.3/5.0):. Processed in 0.481535 secs); 08 Apr 2003 00:33:37 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 8 Apr 2003 00:33:36 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HD00041R1JYMU@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 07 Apr 2003 20:33:35 -0400 (EDT) Original-Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTPS id <0HD0003BJ1JLDK@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 07 Apr 2003 20:33:22 -0400 (EDT) Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by pacific-carrier-annex.mit.edu (8.12.4/8.9.2) with ESMTP id h380XMFt018260 for ; Mon, 07 Apr 2003 20:33:22 -0400 (EDT) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by grand-central-station.mit.edu (8.12.4/8.9.2) with ESMTP id h380XLNU010510 for ; Mon, 07 Apr 2003 20:33:21 -0400 (EDT) Original-Received: from mit.edu (VBALL.MIT.EDU [18.94.0.87]) ) by melbourne-city-street.mit.edu (8.12.4/8.12.4) with ESMTP id h380XLU8013745 for ; Mon, 07 Apr 2003 20:33:21 -0400 (EDT) Original-To: tru64-unix-managers@ornl.gov X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 Xref: main.gmane.org gmane.os.tru64.managers:3917 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3917 I'm trying to analyze/fix performance problems on an 5.1a+pk1 Oracle 8.1.7 data warehouse system (es40 2x633Mhz +2GBmem) and what I see is that seems to be excessively context switching (but little/no paging/swapping and diskI/O) even when fairly idle: # vmstat -w 3 Virtual Memory Statistics: (pagesize = 8192) procs memory pages intr cpu r w u act free wire fault cow pin pout in sy cs us sy id iowait 4 156 36 92K 146K 16K 466M 70M 83M 0 530 4K 4K 13 4 78 5 4 157 36 92K 146K 16K 43 27 43 0 947 1K 8K 0 0 100 0 5 156 36 92K 146K 16K 0 0 0 0 956 1K 8K 0 0 100 0 5 156 36 92K 146K 16K 0 0 0 0 948 1K 8K 0 0 100 0 4 157 36 92K 146K 16K 0 0 0 0 960 1K 9K 0 0 100 0 5 156 36 92K 146K 16K 0 0 0 0 941 1K 8K 0 0 100 0 4 157 36 92K 146K 16K 0 0 0 0 961 1K 9K 0 0 100 0 4 160 36 92K 146K 16K 255 83 77 0 947 2K 8K 0 1 99 0 5 159 36 92K 146K 16K 0 0 0 0 962 1K 9K 0 0 100 0 # iostat dsk7 dsk10 dsk11 dsk12 dsk13 dsk14 3 tty dsk7 dsk10 dsk11 dsk12 dsk13 dsk14 cpu tin tout bps tps bps tps bps tps bps tps bps tps bps tps us ni sy id 0 16 3167 142 303 5 160 7 160 7 279 3 3129 124 5 9 4 83 0 62 0 0 0 0 5 0 5 0 171 0 5 0 0 0 0100 0 62 0 0 0 0 5 0 5 0 0 0 5 0 0 0 0100 0 62 0 0 0 0 5 0 5 0 171 0 11 1 0 0 0100 0 62 0 0 0 0 5 0 5 0 0 0 5 0 0 0 0100 0 62 0 0 0 0 5 0 5 0 0 0 5 0 0 0 0100 0 62 0 0 0 0 5 0 5 0 0 0 5 0 0 0 0100 0 62 0 0 0 0 5 0 5 0 0 0 5 0 0 0 1 99 0 62 0 0 0 0 5 0 5 0 0 0 5 0 0 0 0100 We have a smaller "sister" development data warehouse system (4100 2x533Mhz +2GBmem) that has a little less load but context switches way less: # vmstat -w 3 Virtual Memory Statistics: (pagesize = 8192) procs memory pages intr cpu r w u act free wire fault cow pin pout in sy cs us sy id iowait 5 110 38 97K 138K 19K 0 0 0 0 3 87K 88 38 12 50 0 5 110 38 97K 138K 19K 0 0 0 0 4 87K 64 38 12 50 0 5 110 38 97K 138K 19K 0 0 0 0 3 87K 86 39 12 50 0 5 110 38 97K 138K 19K 1 0 1 0 3 87K 88 38 13 50 0 5 110 38 97K 138K 19K 0 0 0 0 3 88K 69 38 12 50 0 5 110 38 97K 138K 19K 0 0 0 0 4 88K 89 38 12 50 0 5 107 38 97K 138K 19K 3 0 0 0 2 88K 85 37 13 50 0 5 107 38 97K 138K 19K 0 0 0 0 3 88K 82 38 12 50 0 5 107 38 97K 138K 19K 0 0 0 0 1 87K 65 38 13 50 0 5 107 38 97K 138K 19K 0 0 0 0 1 88K 88 38 12 50 0 5 107 38 97K 138K 19K 0 0 0 0 8 88K 96 38 12 50 0 Anyone have ideas why the former would be context switching so much? Any tips on where else to look for clues? Other observations: The former/slower system actually has [faster] HSG80/SAN disks and the latter [slower] local/HSZ70 storage There aren't maky runable procs so it seems there are enough CPUs. The disks are mostly RAID-5 and could be optimized (0+1) but I don't see excessive I/O waits? _Mike