From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Robert Fridman Newsgroups: gmane.os.tru64.managers Subject: interpreting memory usage Date: Wed, 15 May 2002 15:15:03 -0600 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 (Apple Message framework v481) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1021497412 4341 127.0.0.1 (15 May 2002 21:16:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 15 May 2002 21:16:52 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17868h-00017t-00 for ; Wed, 15 May 2002 23:16:51 +0200 Original-Received: (qmail 15597 invoked by uid 5); 15 May 2002 21:17:05 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 15586 invoked from network); 15 May 2002 21:17:03 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 15 May 2002 21:17:03 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1 #39060) with ESMTP id <0GW600JCA8GFBS@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 15 May 2002 17:17:03 -0400 (EDT) Original-Received: from mserve1.acs.ucalgary.ca (mserve1.acs.ucalgary.ca [136.159.34.51]) by emroute1.cind.ornl.gov (PMDF V6.1 #39060) with ESMTP id <0GW60041U8GDXT@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 15 May 2002 17:17:02 -0400 (EDT) Original-Received: from vs1.acs.ucalgary.ca (vs1.acs.ucalgary.ca [136.159.34.108]) by mserve1.acs.ucalgary.ca (Postfix) with ESMTP id A1F6D1079 for ; Wed, 15 May 2002 15:16:55 -0600 (MDT) Original-Received: from ucalgary.ca (mserve2.acs.ucalgary.ca [136.159.34.55]) by vs1.acs.ucalgary.ca (8.11.6/8.11.6) with ESMTP id g4FLCe118799 for ; Wed, 15 May 2002 15:12:40 -0600 Original-Received: from acs5.acs.ucalgary.ca(136.159.34.205) by mserve2.acs.ucalgary.ca via smap (V2.0) id ZZ325701; Wed, 15 May 2002 15:15:06 -0600 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Apple Mail (2.481) X-MailScanner: Found to be clean Xref: main.gmane.org gmane.os.tru64.managers:214 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:214 I have an ES45 (5.1a pk 1) with 4 GB of RAM and 4 GB of swap. It's reporting that swap is below 10%. But I'm not quite sure where the memory is tied up: bash[es27]# swapon -s swap space below 10 percent free Swap partition /dev/disk/dsk0b (default swap): Allocated space: 524510 pages (4.00GB) In-use space: 197 pages ( 0%) Free space: 524313 pages ( 99%) Total swap allocation: Allocated space: 524510 pages (4.00GB) Reserved space: 496292 pages ( 94%) In-use space: 197 pages ( 0%) Available space: 28218 pages ( 5%) This shows 4 GB of swap, with most of it reserved. Since lazy swap allocation is used, swap should not be touched unless RAM is exhausted. So this seems to imply that 4GB RAM and 4 GB of swap are used. bash[es27]# vmstat -i 1 swap space below 10 percent free Virtual Memory Statistics: (pagesize = 8192) procs memory pages intr cpu r w u act free wire fault cow zero react pin pout in sy cs us sy id 10 233 34 478K 4095 30K 80M 1M 69M 203K 2M 144 145 1K 940 23 4 73 13 230 34 478K 4095 30K 1 14 18 0 23 0 46 40 295 100 0 0 12 231 34 478K 4098 30K 2 0 0 0 1 0 5 77 105 100 0 0 12 231 34 478K 4098 30K 0 0 0 0 0 0 3 30 81 100 0 0 According to this I have 3734 MB (478000 * 8 / 1024 ) of active pages, 32 MB of free pages and 234 MB (30000 * 8 /1024) of wired memory. This is about 4 GB. So I should still have 4 GB of swap left. Since this machine has local disks which are heavily used, part of the VM (about 2GB) is used by the UBC. bash[es27]# vmstat -P swap space below 10 percent free Total Physical Memory = 4096.00 M = 524288 pages Physical Memory Clusters: start_pfn end_pfn type size_pages / size_bytes 0 362 pal 362 / 2.83M 362 524279 os 523917 / 4093.10M 524279 524288 pal 9 / 72.00k Physical Memory Use: start_pfn end_pfn type size_pages / size_bytes 362 544 scavenge 182 / 1.42M 544 1210 text 666 / 5.20M 1210 1329 data 119 / 952.00k 1329 1529 bss 200 / 1.56M 1529 1535 cfgmgmt 6 / 48.00k 1535 1536 locks 1 / 8.00k 1536 1550 pmap 14 / 112.00k 1550 3222 unixtable 1672 / 13.06M 3222 3318 logs 96 / 768.00k 3318 11587 vmtables 8269 / 64.60M 11587 524279 managed 512692 / 4005.41M ============================ Total Physical Memory Use: 523917 / 4093.10M Managed Pages Break Down: free pages = 4099 active pages = 142418 inactive pages = 102433 wired pages = 30561 ubc pages = 233362 ================== Total = 512873 WIRED Pages Break Down: vm wired pages = 6677 ubc wired pages = 0 meta data pages = 15681 malloc pages = 3860 contig pages = 2730 user ptepages = 1080 kernel ptepages = 526 free ptepages = 7 ================== Total = 30561 So why am I not seeing the 8GB of VM as I think I should??? Robert. ------------------------------------------------------- Robert Fridman fridman@ucalgary.ca MACI Cluster Computing Systems Administrator Netera Alliance University of Calgary Phone: (403) 220-6779 Fax: (403) 282-9199