Originally posted by: SystemAdmin
Hi David,
In order to find out the missing memory, I embarked on a different exercise.
We have created a new AIX 5.3 LPAR with the following settings and I calculated the mmeory parameters exactly as per your formul, and in this 1gb box, am left with around 150-200mb uncounted for.
I am copying here all the details, perhaps if you can throw some light on the calculations.
root @ unixdev: /home/root >vmstat -v
262144 memory pages
244915 lruable pages
123422 free pages
4 memory pools
76482 pinned pages
80.0 maxpin percentage
15.0 minperm percentage
20.0 maxperm percentage
6.3 numperm percentage
15539 file pages
0.0 compressed percentage
0 compressed pages
5.9 numclient percentage
20.0 maxclient percentage
14469 client pages
0 remote pageouts scheduled
20 pending disk I/Os blocked with no pbuf
15169 paging space I/Os blocked with no psbuf
5584 filesystem I/Os blocked with no fsbuf
0 client filesystem I/Os blocked with no fsbuf
0 external pager filesystem I/Os blocked with no fsbuf
0 Virtualized Partition Memory Page Faults
0.00 Time resolving virtualized partition memory page faults
root @ unixdev: /home/root >
System configuration: lcpu=4 mem=1024MB ent=0.20
kthr memory page faults cpu
<hr />
-----------<hr />
------------<hr />
r b avm fre re pi po fr sr cy in sy cs us sy id wa pc ec
0 0 127333 123416 0 0 0 0 0 0 16 123 213 2 3 95 0 0.02 7.7
0 0 127437 123246 0 0 0 0 0 0 17 162 273 2 4 93 1 0.02 9.4
0 0 127437 123241 0 0 0 0 0 0 17 60 218 1 3 96 0 0.01 6.7
^C
root @ unixdev: /home/root >lsps -s
Total Paging Space Percent Used
768MB 1%
ps vg output:
<hr />
PID TTY STAT TIME PGIN SIZE RSS LIM TSIZ TRS %CPU %MEM COMMAND
0 - A 33:23 9 52 52 xx 0 0 0.0 0.0 swapper
1 - A 0:34 1275 668 692 xx 25 28 0.0 0.0 /etc/ini
8196 - A 139:48 0 40 40 xx 0 0 0.0 0.0 wait
12294 - A 0:03 63 52 52 xx 0 0 0.0 0.0 sched
16392 - A 1:57 9 104 104 xx 0 0 0.0 0.0 lrud
20490 - A 0:00 0 48 48 xx 0 0 0.0 0.0 vmptacrt
24588 - A 0:00 0 60 60 xx 0 0 0.0 0.0 xmfreed
28686 - A 0:00 0 48 48 xx 0 0 0.0 0.0 memp_rbd
32784 - A 0:00 0 48 48 xx 0 0 0.0 0.0 memgrdd
36882 - A 0:00 0 48 48 xx 0 0 0.0 0.0 psgc
40980 - A 0:12 595 124 124 xx 0 0 0.0 0.0 pilegc
45078 - A 4:40 1226 52 52 xx 0 0 0.0 0.0 xmgc
49176 - A 245:29 0 40 40 xx 0 0 0.1 0.0 wait
53274 - A 62:37 0 40 40 xx 0 0 0.0 0.0 wait
57372 - A 140:15 0 40 40 xx 0 0 0.0 0.0 wait
61470 - A 0:41 445 48 48 xx 0 0 0.0 0.0 netm
65568 - A 22:17 67 116 116 xx 0 0 0.0 0.0 gil
69666 - A 0:00 0 60 60 xx 0 0 0.0 0.0 wlmsched
77888 - A 0:00 0 48 48 xx 0 0 0.0 0.0 lvmbb
90180 - A 0:00 0 48 48 xx 0 0 0.0 0.0 jfsz
94414 - A 0:00 60 780 792 xx 58 60 0.0 0.0 /usr/lib
98458 - A 0:00 0 208 208 xx 0 0 0.0 0.0 dog
106710 - A 1:36 553 4520 4060 xx 823 0 0.0 1.0 /usr/sbi
114808 - A 0:04 69 68 68 xx 0 0 0.0 0.0 rtcmd
118882 - A 41:09 61004 492 484 xx 3 4 0.0 0.0 /usr/sbi
123044 - A 1:56 1020 2724 2076 32768 217 44 0.0 0.0 /opt/pat
135234 - A 0:00 822 128 164 xx 33 36 0.0 0.0 /usr/ccs
139336 - A 0:11 69 52 52 xx 0 0 0.0 0.0 rgsr
155744 - A 0:12 238 48 48 xx 0 0 0.0 0.0 n4bg
159830 - A 1:21 614 128 128 xx 0 0 0.0 0.0 kbiod
163920 - A 0:01 83 60 60 xx 0 0 0.0 0.0 nfsSM
168018 - A 0:05 228 52 52 xx 0 0 0.0 0.0 rdpgc
176262 - A 0:00 292 820 728 xx 36 12 0.0 0.0 /usr/sbi
188522 - A 0:00 173 416 404 xx 25 20 0.0 0.0 /usr/sbi
192612 - A 0:08 178 324 324 xx 0 0 0.0 0.0 j2pg
196740 - A 7:29 1668 184 184 xx 0 0 0.0 0.0 rpc.lockd
209072 - A 0:00 0 48 48 xx 0 0 0.0 0.0 random
217236 - A 0:00 227 976 984 xx 33 28 0.0 0.0 /usr/sbi
221422 - A 0:00 2 292 248 xx 4 0 0.0 0.0 /usr/sbi
233684 - A 0:00 4 784 784 xx 57 72 0.0 0.0 telnetd
237732 pts/1 A 0:00 437 556 744 xx 191 224 0.0 0.0 -ksh
241810 - A 40:20 2 400 396 xx 48 72 0.0 0.0 /usr/sbi
258184 - A 8:44 4981 740 748 xx 150 44 0.0 0.0 /usr/sbi
262290 - A 0:28 2647 524 548 xx 40 36 0.0 0.0 /usr/sbi
266378 - A 0:00 202 2996 3000 xx 34 44 0.0 1.0 /usr/sbi
282806 - A 0:00 0 784 748 xx 57 72 0.0 0.0 telnetd
286896 - A 0:01 181 468 300 xx 360 0 0.0 0.0 /usr/sbi
290968 - A 8:34 1775 200 200 xx 0 0 0.0 0.0 nfsd
311532 - A 0:00 1 148 124 xx 3 0 0.0 0.0 /usr/sbi
315626 - A 198:01 12202 3340 3240 32768 188 24 0.1 1.0 ./snmpma
331972 - A 0:00 29 2832 2760 xx 48 0 0.0 0.0 /usr/sbi
340140 - A 0:00 443 1848 1740 xx 85 80 0.0 0.0 /usr/sbi
344242 - A 0:00 4 180 144 xx 9 0 0.0 0.0 /usr/sbi
368840 - A 4:33 9656 3076 3020 32768 2928 104 0.0 1.0 bgscolle
376882 - A 280:02 47083 26516 27992 32768 3629 1728 0.1 5.0 PatrolAg
381012 - A 1:57 1177 200 192 xx 25 16 0.0 0.0 /var/adm
385140 pts/0 A 0:00 2 620 700 xx 68 80 0.0 0.0 ps vg
393460 - A 0:04 307 376 360 32768 12 12 0.0 0.0 /opt/pat
397524 - A 66:32 779 20924 20756 xx 39 0 0.0 4.0 /usr/jav
418002 - A 1:56 413 240 196 xx 73 8 0.0 0.0 /usr/lpp
438524 - A 62:03 3175 2692 2836 xx 187 196 0.0 1.0 /usr/bin
487678 - A 0:00 47 1416 1064 xx 58 0 0.0 0.0 /usr/sbi
508158 - A 0:00 57 1512 1248 xx 116 4 0.0 0.0 /usr/sbi
512088 - A 0:00 0 476 656 32768 191 224 0.0 0.0 /usr/bin
516100 - A 0:05 396 1316 1116 xx 230 52 0.0 0.0 /usr/sbi
520196 - A 3:10 1942 1768 1564 xx 150 20 0.0 0.0 /usr/sbi
524332 - A 7:29 12713 2456 2396 xx 511 240 0.0 0.0 /usr/sbi
528436 - A 0:00 69 1820 1504 xx 198 0 0.0 0.0 /usr/sbi
561402 pts/3 A 0:00 23 564 784 xx 191 224 0.0 0.0 -ksh
647396 pts/3 A 0:00 33 556 780 xx 191 224 0.0 0.0 -ksh
680090 pts/0 A 0:00 25 556 780 xx 191 224 0.0 0.0 -ksh
688308 pts/4 A 0:00 4 560 768 xx 191 224 0.0 0.0 -ksh
725176 - A 0:37 27 476 416 32768 135 0 0.0 0.0 /opt/pat
761884 - A 0:00 26 476 656 32768 191 224 0.0 0.0 /usr/bin
782360 - A 0:00 47 784 856 xx 57 72 0.0 0.0 telnetd
790654 - A 0:00 114 784 744 xx 57 72 0.0 0.0 telnetd
root @ unixdev: /home/root >ipcs -b
IPC status from /dev/mem as of Sun Jan 6 17:28:54 saust 2008
T ID KEY MODE OWNER GROUP QBYTES
Message Queues:
T ID KEY MODE OWNER GROUP SEGSZ
Shared Memory:
m 0 0xffffffff --rw-rw---- root system 4096
m 1 0xffffffff --rw-rw---- root system 4096
m 2 0xffffffff --rw-rw---- root system 4096
m 3 0x78000053 --rw-rw-rw- root system 16777216
m 10485764 0x02007c41 --rw-rw-rw- patrol adm 2048
m 4194309 0x01007c3f --rw-rw-rw- patrol adm 2296
m 8388614 0x41007c4e --rw-rw-rw- patrol adm 32600
m 6291463 0x41007c46 --rw-rw-rw- patrol adm 256
m 7340040 0x41007c43 --rw-rw-rw- patrol adm 768
m 5242889 0x41007c47 --rw-rw-rw- patrol adm 256
m 4194314 0x41007c48 --rw-rw-rw- patrol adm 256
m 14680075 0x41007c49 --rw-rw-rw- patrol adm 256
m 19922956 0x41007c4a --rw-rw-rw- patrol adm 2816
m 4194317 0x41007c4b --rw-rw-rw- patrol adm 256
m 5242894 0x41007c4c --rw-rw-rw- patrol adm 256
m 7340047 0x41007c4d --rw-rw-rw- patrol adm 768
m 16 0x780010c1 --rw-rw-rw- root system 6000
m 7340049 0x41007c4f --rw-rw-rw- patrol adm 256
m 7340050 0x41007c50 --rw-rw-rw- patrol adm 768
m 19 0x0d001b72 --rw-rw---- root system 1440
T ID KEY MODE OWNER GROUP NSEMS
Semaphores:
s 3145728 0x0102b086 --ra-ra-r-- root system 1
s 1 0x62001c97 --ra-r--r-- root system 1
s 16777218 0xc1007c4d --ra-ra-ra- patrol adm 2
s 7340035 0xc1007c47 --ra-ra-ra- patrol adm 2
s 20971524 0x81007c3f --ra-ra-ra- patrol adm 2
s 5242885 0xc1007c4c --ra-ra-ra- patrol adm 2
s 4194310 0xc1007c43 --ra-ra-ra- patrol adm 2
s 18874375 0x82007c41 --ra-ra-ra- patrol adm 2
s 4194312 0xc1007c48 --ra-ra-ra- patrol adm 2
s 4194313 0xc1007c49 --ra-ra-ra- patrol adm 2
s 4194314 0xc1007c4a --ra-ra-ra- patrol adm 2
s 4194315 0xc1007c4b --ra-ra-ra- patrol adm 2
s 7340044 0xc1007c4e --ra-ra-ra- patrol adm 2
s 17825805 0xc1007c4f --ra-ra-ra- patrol adm 2
s 4194318 0xc1007c50 --ra-ra-ra- patrol adm 2
s 4194319 0xc1007c46 --ra-ra-ra- patrol adm 2
s 16 0x010019a1 --ra------- root system 1
root @ unixdev: /home/root >
root @ unixdev: /home/root >svmon -swS|more
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1 - work kernel heap s 49211 39919 0 49211
0 - work kernel segment s 11394 7556 0 11394
2042 - work other kernel segments s 7344 7312 0 7344
2000 - work mbuf pool s 4416 4416 0 4416
2165 - work vmm scb segment s 1845 1845 0 1845
1001 - work other kernel segments s 1299 0 0 1299
3000 - work page table area s 1096 17 1079 1096
2145 - work lfs segment s 530 0 0 530
7000 - work vmm data segment s 524 524 0 524
1c01c - work other kernel segments s 486 486 0 486
4004 - work other kernel segments s 486 486 0 486
c00c - work other kernel segments s 486 486 0 486
14014 - work other kernel segments s 486 486 0 486
2005 - work vmm software hat s 256 256 0 256
1d09e - work loader segment s 256 0 0 256
1000 - work kernel heap s 226 225 0 226
2002 - work other kernel segments s 224 224 0 224
18508 - work s 70 20 0 70
1041 - work other kernel segments s 67 67 0 67
13523 - work s 62 18 0 62
1d56d - work s 60 16 0 60
170f0 - work process and thread tables s 53 53 0 53
111a1 - work s 43 13 0 43
6576 - work s 41 13 0 41
5025 - work other kernel segments s 34 0 0 34
16546 - work s 31 9 0 31
5675 - work s 29 9 0 29
e51e - work s 28 9 0 28
160f1 - work process and thread tables s 26 26 0 26
10010 - work other kernel segments s 25 25 0 25
8008 - work other kernel segments s 25 25 0 25
18018 - work other kernel segments s 25 25 0 25
20 - work other kernel segments s 25 25 0 25
84b8 - work s 24 7 0 24
19389 - work s 24 6 0 24
11031 - work other kernel segments s 24 22 0 24
17547 - work s 23 7 0 23
12135 - work jfs segment s 18 17 0 18
5255 - work s 18 17 0 18
2125 - work mpdata debug s 16 16 0 16
127 - work mpdata debug s 16 16 0 16
3124 - work mpdata debug s 16 16 0 16
1126 - work mpdata debug s 16 16 0 16
3003 - work other kernel segments s 15 15 0 15
6001 - work page space disk map s 14 14 0 14
6026 - work other kernel segments s 14 0 0 14
1d34d - work s 13 12 0 13
9359 - work s 13 3 0 13
5355 - work s 12 3 0 12
8028 - work other kernel segments s 10 0 0 10
14344 - work s 10 9 0 10
30e0 - work vmm rmalloc heap s 9 9 0 9
9029 - work other kernel segments s 9 0 0 9
1146 - work lfs segment s 9 0 0 9
e089 - work vmm vmintervals s 9 9 0 9
Standard input
root @ unixdev: /home/root >svmon -swS|more
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1 - work kernel heap s 49211 39919 0 49211
0 - work kernel segment s 11394 7556 0 11394
2042 - work other kernel segments s 7344 7312 0 7344
2000 - work mbuf pool s 4416 4416 0 4416
2165 - work vmm scb segment s 1845 1845 0 1845
1001 - work other kernel segments s 1299 0 0 1299
3000 - work page table area s 1096 17 1079 1096
2145 - work lfs segment s 530 0 0 530
7000 - work vmm data segment s 524 524 0 524
1c01c - work other kernel segments s 486 486 0 486
4004 - work other kernel segments s 486 486 0 486
c00c - work other kernel segments s 486 486 0 486
14014 - work other kernel segments s 486 486 0 486
2005 - work vmm software hat s 256 256 0 256
1d09e - work loader segment s 256 0 0 256
1000 - work kernel heap s 226 225 0 226
2002 - work other kernel segments s 224 224 0 224
18508 - work s 70 20 0 70
1041 - work other kernel segments s 67 67 0 67
13523 - work s 62 18 0 62
1d56d - work s 60 16 0 60
170f0 - work process and thread tables s 53 53 0 53
111a1 - work s 43 13 0 43
6576 - work s 41 13 0 41
5025 - work other kernel segments s 34 0 0 34
16546 - work s 31 9 0 31
5675 - work s 29 9 0 29
e51e - work s 28 9 0 28
160f1 - work process and thread tables s 26 26 0 26
10010 - work other kernel segments s 25 25 0 25
8008 - work other kernel segments s 25 25 0 25
18018 - work other kernel segments s 25 25 0 25
20 - work other kernel segments s 25 25 0 25
84b8 - work s 24 7 0 24
19389 - work s 24 6 0 24
11031 - work other kernel segments s 24 22 0 24
17547 - work s 23 7 0 23
12135 - work jfs segment s 18 17 0 18
5255 - work s 18 17 0 18
2125 - work mpdata debug s 16 16 0 16
127 - work mpdata debug s 16 16 0 16
3124 - work mpdata debug s 16 16 0 16
1126 - work mpdata debug s 16 16 0 16
3003 - work other kernel segments s 15 15 0 15
6001 - work page space disk map s 14 14 0 14
6026 - work other kernel segments s 14 0 0 14
1d34d - work s 13 12 0 13
9359 - work s 13 3 0 13
5355 - work s 12 3 0 12
8028 - work other kernel segments s 10 0 0 10
14344 - work s 10 9 0 10
30e0 - work vmm rmalloc heap s 9 9 0 9
9029 - work other kernel segments s 9 0 0 9
1146 - work lfs segment s 9 0 0 9
e089 - work vmm vmintervals s 9 9 0 9
7027 - work other kernel segments s 8 0 0 8
13003 - work s 8 8 0 8
c02c - work other kernel segments s 6 0 0 6
11f1 - work s 6 5 0 6
1e02e - work s 6 5 0 6
b03b - work s 5 4 0 5
a02a - work other kernel segments s 5 0 0 5
b02b - work other kernel segments s 5 0 0 5
a01a - work s 5 4 0 5
f15f - work s 5 4 0 5
d08a - work vmm vmintervals s 4 4 0 4
e02e - work other kernel segments s 3 0 0 3
d02d - work other kernel segments s 3 0 0 3
10030 - work other kernel segments s 3 0 0 3
f02f - work other kernel segments s 3 0 0 3
a03a - work s 2 1 0 2
61d6 - work s 2 1 0 2
c01c - work s 2 1 0 2
2085 - work vmm ame segment s 2 0 0 2
f85f - work s 2 1 0 2
11011 - work other kernel segments s 0 0 0 0
b02a - work kernel heap s 0 0 0 0
8009 - work kernel heap s 0 0 0 0
5044 - work kernel heap s 0 0 0 0
12012 - work other kernel segments s 0 0 0 0
12013 - work kernel heap s 0 0 0 0
1021 - work other kernel segments s 0 0 0 0
c02d - work kernel heap s 0 0 0 0
13012 - work kernel heap s 0 0 0 0
6047 - work kernel heap s 0 0 0 0
...rest are 0 for Inuse.
Cheers
#AIX-Forum