From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Cohen, Andy" Newsgroups: gmane.os.tru64.managers Subject: How to read memory information for ps aux? Date: Fri, 07 Apr 2006 15:28:06 -0400 Message-ID: <9D592DB37A92234AB635C5585D2D08190405E56A@cobra.pc.cognex.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1144438122 8487 80.91.229.2 (7 Apr 2006 19:28:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Apr 2006 19:28:42 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Apr 07 21:28:40 2006 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1FRwdL-0000I8-R9 for gotm-tru64-unix-managers@gmane.org; Fri, 07 Apr 2006 21:28:40 +0200 Original-Received: (qmail 24787 invoked by uid 49509); 7 Apr 2006 19:28:21 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 24777 invoked by uid 49501); 7 Apr 2006 19:28:21 -0000 Original-Received: from 160.91.86.17 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.86.17):SA:0(-2.6/5.0):. Processed in 0.560849 secs); 07 Apr 2006 19:28:21 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute2.ornl.gov (160.91.86.17) by sws1.ornl.gov with SMTP; 7 Apr 2006 19:28:20 -0000 Original-Received: from emroute2.ornl.gov (localhost [127.0.0.1]) by emroute2.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IXD00C8TA38KI@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 07 Apr 2006 15:28:20 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute2.ornl.gov by emroute2.ornl.gov (PMDF V6.2-1x9 #31038) id <0IXD00F02A2Z8Q@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 07 Apr 2006 15:28:19 -0400 (EDT) Original-Received: from cognex.cognex.com (cognex-out.cognex.com [198.232.29.228]) by emroute2.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IXD007IGA2YPG@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 07 Apr 2006 15:28:11 -0400 (EDT) Original-Received: from atlantis.pc.cognex.com (atlantis.pc.cognex.com [10.10.160.5]) by cognex.cognex.com (8.12.11/8.12.11) with ESMTP id k37JS44Q001778 for ; Fri, 07 Apr 2006 15:28:10 -0400 (EDT) Original-Received: from cobra.pc.cognex.com ([10.10.160.30]) by atlantis.pc.cognex.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 07 Apr 2006 15:28:07 -0400 Original-To: Tru64 Managers X-Envelope-from: Andy.Cohen@cognex.com X-MIMEOLE: Produced By Microsoft Exchange V6.5.7226.0 Thread-Topic: How to read memory information for ps aux? Thread-Index: AcZaeWVQKMLkCA7OQ+O1Y9MjZiMwAw== Content-class: urn:content-classes:message X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on email.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 07 Apr 2006 19:28:07.0186 (UTC) FILETIME=[65C91F20:01C65A79] Xref: news.gmane.org gmane.os.tru64.managers:8869 Archived-At: We're trying to figure out memory usage on our DS20E. We're running Tru64 5.1 PK6 utilizing swap in eager mode with 3 GB of RAM and 6 GB of swap. I'm told that "ps aux" has a few columns of interest: =20 %MEM -- pct. of physical memory the process is using VSZ -- virtual memory (swap) used by that process RSS -- how much physical memory is being =20 However, when I review the output from a 'ps aux' the numbers don't really add up. I presume it's a bit more nuanced than what the definitions above are. =20 Here's a snippet: =20 USER , PID, %CPU, %MEM, VSZ, RSS, TTY ,S ,STARTED , TIME, COMMAND root , 0, 2.4, 3.6, 3.81G, 111M, ?? ,R < , Apr 06, 27:16.21, [kernel idle] oracle , 27028, 1.8, 0.1, 1.70G, 2.6M, ?? ,S , Apr 06, 9:15.92, oraclepsprod (LOCAL=3DNO) cnx_oadm ,218482, 1.6, 0.0, 4.11M, 808K, ?? ,S N ,08:01:01, 6:47.15, /sbin/vdump -0vf - -D /disk04_SAN/oradata/psprod/hotback/current oracle ,292090, 1.2, 0.1, 1.70G, 3.7M, ?? ,S ,13:19:23, 0:22.34, oraclepsprod (LOCAL=3DNO) root ,307634, 0.5, 0.2, 8.99M, 5.8M, pts/0 ,S + ,13:46:51, 0:14.80, top cnx_oadm ,218493, 0.4, 0.0, 2.20M, 64K, ?? ,R N ,08:01:02, 2:14.06, rsh florida cd /disk04/oradata/psprod_from_odin/hotback/current cnx_oadm , 95316, 0.3, 0.0, 2.48M, 352K, ?? ,S N ,00:01:00, 1:10.32, /home/app/oracle/local/HIGH_CPU_PROC_CHECK.sh 90 psoft , 13397, 0.3, 0.8, 94.9M, 26M, ?? ,S , Apr 06, 2:17.10, PSPRCSRV -C dom=3DPSUNX_58581 -g 1 -i 101 -u odin.cognex.com -U = root ,312251, 0.0, 0.0, 2.27M, 312K, ?? ,S ,14:07:40, 0:00.01, telnetd root ,312534, 0.0, 0.0, 2.48M, 96K, pts/2 ,R + ,14:09:02, 0:00.00, -ksh (ksh) root ,312536, 0.0, 0.3, 9.76M, 7.8M, pts/2 ,R + ,14:09:02, 0:00.04, ps aux cnx_oadm ,312535, 0.0, 0.0, 2.02M, 184K, ?? ,S N ,14:09:01, 0:00.00, sleep 5 oracle ,248075, 0.0, 0.1, 1.70G, 2.2M, ?? ,I ,10:10:29, 0:00.10, oraclepsprod (LOCAL=3DNO) oracle , 52258, 0.0, 0.1, 1.70G, 1.7M, ?? ,I ,15:03:45, 0:40.64, ora_arc1_psprod oracle ,253733, 0.0, 0.1, 1.70G, 2.4M, ?? ,I ,10:33:06, 0:00.38, oraclepsprod (LOCAL=3DNO) oracle , 57727, 0.0, 0.1, 1.70G, 2.0M, ?? ,I ,16:34:20, 0:00.35, oraclepsprod (LOCAL=3DNO) =20 When I add up the number in RSS (taking into account K and M) I get (at the time I ran it) less than 800 M. This seems low to me. Is it just active memory versus total allocated physical memory? Also, the VSZ column, when added up, comes to a value far exceeding the amount of swap space we have. In the example above you can see that the oraclepsprod processes have a VSZ value of 1.70G. I know that each one of those isn't reserving 1.7G of swap. Does this have something to do with using shared memory? The [kernel idle] process has an RSS of 111M and a VSZ of 3.81G. We trying to get a good handle on our memory utilization so any help with this is most appreciated. Thank you! Andy