tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* interpreting memory usage
@ 2002-05-15 21:15 Robert Fridman
  0 siblings, 0 replies; only message in thread
From: Robert Fridman @ 2002-05-15 21:15 UTC (permalink / raw)



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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-15 21:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-15 21:15 interpreting memory usage Robert Fridman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox