From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Brewer, Edward \(NIH/OD\)" Newsgroups: gmane.os.tru64.managers Subject: Collect and PS question Date: Mon, 31 Jan 2005 15:03:06 -0500 Message-ID: <3FAF4C075315FA4882BC2A9869A64F561180DC7A@nihexchange15.nih.gov> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: sea.gmane.org 1107201828 10643 80.91.229.6 (31 Jan 2005 20:03:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2005 20:03:48 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Jan 31 21:03:41 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1Cvhls-00070R-00 for ; Mon, 31 Jan 2005 21:03:40 +0100 Original-Received: (qmail 2922 invoked by uid 5); 31 Jan 2005 20:03:38 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 2906 invoked by uid 49501); 31 Jan 2005 20:03:38 -0000 Original-Received: from BREWERE@OD.NIH.GOV by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.119):SA:0(-2.2/5.0):. Processed in 1.201254 secs); 31 Jan 2005 20:03:38 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 31 Jan 2005 20:03:36 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IB7000VD6DXOQ@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 31 Jan 2005 15:03:35 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute1.cind.ornl.gov by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0IB700F026DD2M@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 31 Jan 2005 15:03:25 -0500 (EST) Original-Received: from nihhubims3.hub.nih.gov (nihhubims3.hub.nih.gov [128.231.90.113]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IB7006KC6DBCM@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 31 Jan 2005 15:03:11 -0500 (EST) Original-Received: by nihhubims3.hub.nih.gov with Internet Mail Service (5.5.2658.27) id ; Mon, 31 Jan 2005 15:03:09 -0500 Content-return: allowed Original-To: "'Tru64-Unix-Managers \(E-mail\)" X-Mailer: Internet Mail Service (5.5.2658.27) X-Envelope-From: Xref: main.gmane.org gmane.os.tru64.managers:7978 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7978 To all, I am trying to find a way to ascertain what contribution a single user is making to the CPU load of a system over time. I have collect data from previous days. I have a script or command line that will pull out all of the cpusum data for every 30 seconds. From this data I can graph the CPU+SYS+WAIT for the CPU load on the system for that day. Since I have the process info in the same collect data, I wrote a awk script to pull out the selected users %CPU value and summing them for an accumulated value. Then I take this value and divided by the number of CPU's. At first the graphs for several days had very similar shapes and gave me encouragement that this was working. Then I ran across a day where for a sustained period for the derived value for the user was greater than the total CPU load for the machine. So I was stumped... I do see at times, there are some negatives values (ones where the user load is higher than the total CPU usage) on the other graphs, but there are spots where the CPU usage made a radical jump up or down. I think that the way the original collect data is computed is an average over the 30 second interval from the collected data and the instantaneous value from the awk script that I use for the user is just higher at times than the average for that interval. So I would expect this to be a crude estimate. The long period where the user values from the script was higher I can not explain unless my awk script is faulty. Does anyone have any ideas. TIA, Lee Brewer