svmon 笔记01

Vsid - unique system segment ID.
Esid - effective segment 只能在process view 中显示, -S 中看不到
Type - segment type: work/persistent/client
Desc - 对段的描述
PSize - page size: s=4k m=64k L=16M S=16G
Inuse - actual number a memory frames in use 单位是page
Pin - pages that cannot be stolen by lrud 这个计量单位是page
Pgsp - paging space usage 这个计量单位是page
Virtual - total number of virtual pages created. 这个如何理解?[@more@]

10.0.10.201d$SSH Secure ShellDocumentationzl_ibmIBM资料Understanding AIX Memory Usage.pdf

用法一 svmon -S

[node1:root] svmon -S |more

Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1068a99 - work m 3636 0 0 3636
a060 - work kernel heap m 3303 3294 45 3345
10415d3 - work m 2688 0 0 2688
e000 - work mbuf pool m 1688 1688 0 1688
1029ea9 - work sm 26887 0 0 26887
1074a7e - work m 1503 0 0 1503
106ff39 - clnt /dev/fslv00:335943 s 23496 0 - -
a080 - work kernel heap m 1384 1379 7 1389
1079b1d - work sm 21484 0 341 21812
1054015 - work m 1236 925 3 1236
1008ae2 - clnt /dev/fslv00:325317 s 18553 16428 - -
1000ae0 - clnt /dev/fslv00:325316 s 18542 16428 - -

Vsid - unique system segment ID.
Esid - effective segment 只能在process view 中显示, -S 中看不到
Type - segment type: work/persistent/client
Desc - 对段的描述
PSize - page size: s=4k m=64k L=16M S=16G
Inuse - actual number a memory frames in use 单位是page
Pin - pages that cannot be stolen by lrud 这个计量单位是page
Pgsp - paging space usage 这个计量单位是page
Virtual - total number of virtual pages created. 这个如何理解?

重要的概念:
32 bit processes can have 16 segments: 0-F
ƒ64 bit processes can have up to 2^36 possible segments (note: this requires 64 bit hardware)
ƒAIX 5L supports multiple page sizes: 4k/64k/16M/16G

svmon用法二 按进程查看 svmon -P

[node1:root] svmon -P |more
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
11534552 oracle 179870 22512 4122 159345 Y N N

PageSize Inuse Pin Pgsp Virtual
s 4 KB 35150 0 3674 14385
m 64 KB 9045 1407 28 9060

Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1068a99 70000002 work default shmat/mmap m 3636 0 0 3636
10415d3 70000001 work default shmat/mmap m 2688 0 0 2688
106ff39 10 clnt text data BSS heap, s 23496 0 - -
/dev/fslv00:335943
1054015 90000000 work shared library text m 1236 925 3 1236
.....

[node1:root] svmon -P 7143574
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
7143574 oracle 172677 22512 4037 152100 Y N N 这一行的计量单位是页个数(4k)

PageSize Inuse Pin Pgsp Virtual
s 4 KB 27957 0 3589 7140
m 64 KB 9045 1407 28 9060

Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1068a99 70000002 work default shmat/mmap m 3636 0 0 3636 shmat/mmap此类的内存段
10415d3 70000001 work default shmat/mmap m 2688 0 0 2688 也将出现在其它进程中,
106ff39 10 clnt text data BSS heap, s 23496 0 - - 无此标记的也会共享
/dev/fslv00:335943 比如共享的可执行文件
1054015 90000000 work shared library text m 1236 925 3 1236 共享的文件系统等
10172e5 70000003 work default shmat/mmap m 808 0 0 808
......
Vsid - System wide segment number. 如果在两个进程中出现相同的Vsid,这两个进程共享此段内存.
Esid - Effective segment based on the address the process addresses the segment at.
Esid’s are different in 64 and 32 bit *processes*. 文档上看到的例子是32位aix
Esid’s of ‘-’ here indicate a file the is open by the process. 共享的文件缓存
The file is found with: ‘find /usr –inum 221186 –xdev’. 通过inode号 查找文件位置
This segment is shared by all processes accessing this file.
Note that Vsid 0 is mapped to all processes. 比如kernel sgement 也是work类型,Vsid = 0
表面上看,如果在Description 中,标记为private 为此进程的私有段,标记为shared 为共享段。
但比如shared library data 在两个进程之间,Vsid不同(1049cf1 & 1035e0e),Esid却相同,都是9001000a
1049cf1 9001000a work shared library data sm 119 0 0 119
1035e0e 9001000a work shared library data sm 119 0 0 119

[node1:root] svmon -P 7143574 [node1:root] svmon -P 17039518
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
7143574 oracle 171966 22512 4037 151396 Y N N 17039518 oracle 171618 22512 4037 151048 Y N N

PageSize Inuse Pin Pgsp Virtual PageSize Inuse Pin Pgsp Virtual
s 4 KB 27950 0 3589 7140 s 4 KB 27602 0 3589 6792
m 64 KB 9001 1407 28 9016 m 64 KB 9001 1407 28 9016

Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1068a99 70000002 work default shmat/mmap m 3591 0 0 3591 1068a99 70000002 work default shmat/mmap m 3591 0 0 3591
10415d3 70000001 work default shmat/mmap m 2688 0 0 2688 10415d3 70000001 work default shmat/mmap m 2688 0 0 2688
106ff39 10 clnt text data BSS heap, s 23489 0 - - 106ff39 10 clnt text data BSS heap, s 23489 0 - -
/dev/fslv00:335943 /dev/fslv00:335943
1054015 90000000 work shared library text m 1237 925 3 1237 1054015 90000000 work shared library text m 1237 925 3 1237
10172e5 70000003 work default shmat/mmap m 808 0 0 808 10172e5 70000003 work default shmat/mmap m 808 0 0 808
8002 0 work kernel segment m 508 479 25 523 8002 0 work kernel segment m 508 479 25 523
100d720 70000000 work default shmat/mmap m 161 0 0 161 100d720 70000000 work default shmat/mmap m 161 0 0 161
102dae8 80020014 work USLA heap sm 1805 0 0 1805 1035dee 80020014 work USLA heap sm 1805 0 0 1805
102dce8 11 work text data BSS heap sm 1494 0 0 1494 1045d92 11 work text data BSS heap sm 1174 0 0 1174
105c017 90020014 work shared library s 850 0 1500 1562 105c017 90020014 work shared library s 850 0 1500 1562

下面各行的Inuse 使用的计量单位也是页的个数,sm 类型包括两种页大小的页的个数。
因此在此处统计内存大小没意义,但可以看到使用的内存页的个数。

-S -P 两个视图有什么区别?
-S
- 每个段只列一次
- 没有进程关联的段也列示
- 看不到一个段被多少进程关联(使用/映射)

-P
- 列出每个进程使用的内存段
- 没有进程关联的段不再显示
- 多数内核进程使用的kernel segments 不显示
- 一些文件虽然被缓存了,但文件没有打开(没有进程使用),也不显示

svmon 用法三 svmon -G
[node1:root] svmon -G
size inuse free pin virtual mmode
memory 1048576 1026641 21935 317596 918225 Ded
pg space 921600 81177

work pers clnt other
pin 251714 0 33168 32714
in use 848178 0 178463

PageSize PoolSize inuse pgsp pin virtual
s 4 KB - 676289 65673 147212 559137
m 64 KB - 21897 969 10649 22443
[node1:root]
把内存段分类统计,计量单位仍是page. 上面1048576 是4GB 物理内存 921600是pagespace的页数。
inuse 是使用中的内存页,应该包含文件缓存;
free 是未分配的部分 --vmstat fre 对应
pin 是不能page out的部分
virtual 是已分配不包含文件缓存部分 --vmstat avm=Active virtual pages.
mmode 内存模式? 不知道什么含义 man中也没有描述

如何查询使用内存较大的前几个进程?
svmon usage:
svmon -G [-O Options] [-i Interval [NumIntervals] ]
svmon -S [SID1...SIDN] [-O Options] [-t Count] [-i Interval [NumIntervals] ]
svmon -P [PID1... PIDN] [-O Options] [ [-t Count] [-i Interval [NumIntervals] ]
svmon -C Command1...CommandN [-O Options] [-t Count] [-i Interval [NumIntervals] ]
svmon -U [LogName1...LogNameN] [-O Options] [-t Count] [-i Interval [NumIntervals] ]
svmon -D SID1..SIDN [-O Options] [-i Interval [NumIntervals] ]
svmon -W [ClassName1...ClassNameN] [-O Options] [-t Count ] [-i Interval [NumIntervals] ]
svmon -T [Tier1...TierN] [-O Options] [-a SupClassName] [-t Count ] [-i Interval [NumIntervals] ]
svmon -X [-o Filename] [-O Options] [-i Interval [NumIntervals] ] [-c ]

-a restricts the scope to the subclasses of the SupClassName parameter (in the Tier report)
-c used with the -X flag, allows to add a comment to the XML report
-i instructs svmon to display statistics repetitively
-o specifies the output file for the -X flag
-O -O option=value, ... ]
activeusers=[on | off]
affinity=[on | detail | off]
commandline=[on | off]
filename=[on | off]
filtercat=[off exclusive kernel shared unused unattached]
filterpgsz=[off s m L S]
filterprop=[off notempty data text]
filtertype=[off working persistent client]
format=[80 | 160 | nolimit]
frame=[on | off]
mapping=[on | off]
mpss=[on | off]
overwrite=[on | off]
pgsz=[on | off]
pidlist=[on | number | off]
process=[on | off]
range=[on | off]
segment=[on | category | off]
shmid=[on | off]
sortentity=[inuse | virtual | ....] (depending on the selected summary)
sortseg=[inuse | pin | pgsp | virtual]
subclass=[on | off]
summary=[basic | longreal | ame | longame]
svmonalloc=[on | off]
threadaffinity=[on | off]
timestamp=[on | off]
tmem=[on | off]
unit=[auto | page | KB | MB | GB]
-t displays memory usage statistics for the top count object to be printed
[node1:root]
AIX5.3 的结果:
[ora:root:/] svmon -P -O sortentity=pgsp -t 3
Unit: page

-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
753788 oracle 139280 65584 10190 132503 Y N N

-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
815302 oracle 138913 65584 10100 132089 Y N N

-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
270390 oracle 139786 65584 10030 133175 Y N N
[ora:root:/]
AIX6 的结果:
[node1:root] svmon -P -O sortentity=pgsp -t 3
Unit: page
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual
6357200 gpnpd.bin 31758 22521 9716 39555
11599878 oracle 169923 22512 7658 153082
5636274 mdnsd.bin 29436 22516 7575 35750
[node1:root]

[node1:root] svmon -P -O sortseg=inuse -t 3
Unit: page
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual
11534552 oracle 179886 22512 4122 159361
13566074 oracle 179802 22512 4176 159363
10289304 oracle 179740 22512 4260 159345
[node1:root]

如何查看一段内存都被哪些进程共享?
[node1:root] svmon -P 7143574 -l
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
7143574 oracle 174102 22512 3871 153284 Y N N

PageSize Inuse Pin Pgsp Virtual
s 4 KB 28198 0 3423 7140
m 64 KB 9119 1407 28 9134

Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1068a99 70000002 work default shmat/mmap m 3636 0 0 3636
pid(s)=18153612, 17563810, 17039518, 14352410, 14024770,
pid(s)=13959296, 13631698, 13566074, 13434998, 13238522,
pid(s)=13172766, 12910710, 12845068, 12713984, 12582960,
pid(s)=12517536, 12451974, 12386322, 12255472, 12124214,
pid(s)=11993120, 11927568, 11862146, 11796484, 11731014,
pid(s)=11665616, 11599878, 11534552, 11272376, 11141156,
pid(s)=10879224, 10485960, 10420412, 10354872, 10289304,
pid(s)=10223746, 10092610, 9895958, 9830440, 9633994,
pid(s)=9568494, 9371662, 9240678, 8323182, 7143574, 5308552,
pid(s)=5046382
......
[node1:root]
如果按inum查找文件[node1:root] find /usr -inum 4318 -xdev

一定要通过-l 来查看共享的内存,附word文件《svmon-l.doc》
2013/1/7 14:07

[node1:root] svmon -P 7143574
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
7143574 oracle 172918 22512 3871 152100 Y N N

PageSize Inuse Pin Pgsp Virtual
s 4 KB 28198 0 3423 7140
m 64 KB 9045 1407 28 9060

Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1068a99 70000002 work default shmat/mmap m 3636 0 0 3636
10415d3 70000001 work default shmat/mmap m 2688 0 0 2688
106ff39 10 clnt text data BSS heap, s 23496 0 - -
/dev/fslv00:335943
1054015 90000000 work shared library text m 1236 925 3 1236
10172e5 70000003 work default shmat/mmap m 808 0 0 808
8002 0 work kernel segment m 508 479 25 523
100d720 70000000 work default shmat/mmap m 161 0 0 161
102dae8 80020014 work USLA heap sm 1805 0 0 1805
102dce8 11 work text data BSS heap sm 1494 0 0 1494
105c017 90020014 work shared library s 1091 0 1334 1562
1049cf1 9001000a work shared library data sm 119 0 0 119
14005 9ffffffd work shared library sm 83 0 2072 2072
1011e27 f00000002 work process private m 5 3 0 5
1061b1b ffffffff work application stack sm 51 0 0 51
1027669 90000001 work shared library text m 3 0 0 3
3000c 9ffffffe work shared library sm 22 0 17 23
104c193 9fffffff clnt USLA text,/dev/hd2:4218 s 13 0 - -
103db6c 8fffffff work private load data s 11 0 0 11
1020bea - clnt /dev/fslv00:301607 s 10 0 - -
107dcfc 8001000a work private load data sm 3 0 0 3
[node1:root]
上面的汇总数据之间的关系:
172918 = 28198 + 9045*16 = 下面各行Inuse的总和(3636+2688+23496+...+11+10+3)
这个是和7143574进程相关的内存页的总数,但其中大部分内存页是与其它进程共享的。
这个进程独占部分可以通过-l 结果中的pid(s)=... 来确定。
如果只有一个进程号,则是独占(Private work) ,否则就是共享。
下面还是拿oracle LOCAL 的一个进程来计算:
[node1:root] svmon -P 7143574 -l
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
7143574 oracle 172918 22512 3871 152100 Y N N

PageSize Inuse Pin Pgsp Virtual
s 4 KB 28198 0 3423 7140
m 64 KB 9045 1407 28 9060

Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1068a99 70000002 work default shmat/mmap m 3636 0 0 3636 ( System shared )
pid(s)=18153612, 17039518, 16974016, 14352410, 14024770,
pid(s)=13959296, 13631698, 13566074, 13434998, 13238522,
pid(s)=13172766, 12910710, 12845068, 12713984, 12582960,
pid(s)=12451974, 12386322, 12255472, 12124214, 11993120,
pid(s)=11927568, 11862146, 11796484, 11731014, 11665616,
pid(s)=11599878, 11534552, 11272376, 11141156, 10879224,
pid(s)=10485960, 10420412, 10354872, 10289304, 10223746,
pid(s)=10158294, 10092610, 9895958, 9830440, 9633994,
pid(s)=9371662, 9240678, 8323182, 7143574, 5308552, 5046382
10415d3 70000001 work default shmat/mmap m 2688 0 0 2688 ( System shared )
pid(s)=18153612, 17039518, 16974016, 14352410, 14024770,
pid(s)=13959296, 13631698, 13566074, 13434998, 13238522,
pid(s)=13172766, 12910710, 12845068, 12713984, 12582960,
pid(s)=12451974, 12386322, 12255472, 12124214, 11993120,
pid(s)=11927568, 11862146, 11796484, 11731014, 11665616,
pid(s)=11599878, 11534552, 11272376, 11141156, 10879224,
pid(s)=10485960, 10420412, 10354872, 10289304, 10223746,
pid(s)=10158294, 10092610, 9895958, 9830440, 9633994,
pid(s)=9371662, 9240678, 8323182, 7143574, 5308552, 5046382
106ff39 10 clnt text data BSS heap, s 23496 0 - - ( Shared Text )
/dev/fslv00:335943
pid(s)=18153612, 17039518, 16974016, 14352410, 14024770,
pid(s)=13959296, 13631698, 13566074, 13434998, 13238522,
pid(s)=13172766, 12910710, 12845068, 12713984, 12582960,
pid(s)=12451974, 12386322, 12255472, 12124214, 11993120,
pid(s)=11927568, 11862146, 11796484, 11731014, 11665616,
pid(s)=11599878, 11534552, 11272376, 11141156, 10879224,
pid(s)=10485960, 10420412, 10354872, 10289304, 10223746,
pid(s)=10158294, 10092610, 9895958, 9830440, 9633994,
pid(s)=9371662, 9240678, 8323182, 7143574, 5308552, 5046382
1054015 90000000 work shared library text m 1236 925 3 1236 ( System shared )
Shared library text segment
10172e5 70000003 work default shmat/mmap m 808 0 0 808 ( System shared )
pid(s)=18153612, 17039518, 16974016, 14352410, 14024770,
pid(s)=13959296, 13631698, 13566074, 13434998, 13238522,
pid(s)=13172766, 12910710, 12845068, 12713984, 12582960,
pid(s)=12451974, 12386322, 12255472, 12124214, 11993120,
pid(s)=11927568, 11862146, 11796484, 11731014, 11665616,
pid(s)=11599878, 11534552, 11272376, 11141156, 10879224,
pid(s)=10485960, 10420412, 10354872, 10289304, 10223746,
pid(s)=10158294, 10092610, 9895958, 9830440, 9633994,
pid(s)=9371662, 9240678, 8323182, 7143574, 5308552, 5046382
8002 0 work kernel segment m 508 479 25 523 ( System shared )
System segment
100d720 70000000 work default shmat/mmap m 161 0 0 161 ( System shared )
pid(s)=18153612, 17039518, 16974016, 14352410, 14024770,
pid(s)=13959296, 13631698, 13566074, 13434998, 13238522,
pid(s)=13172766, 12910710, 12845068, 12713984, 12582960,
pid(s)=12451974, 12386322, 12255472, 12124214, 11993120,
pid(s)=11927568, 11862146, 11796484, 11731014, 11665616,
pid(s)=11599878, 11534552, 11272376, 11141156, 10879224,
pid(s)=10485960, 10420412, 10354872, 10289304, 10223746,
pid(s)=10158294, 10092610, 9895958, 9830440, 9633994,
pid(s)=9371662, 9240678, 8323182, 7143574, 5308552, 5046382
102dae8 80020014 work USLA heap s 1805 0 0 1805 ( Private work )
m 0 0 0 0
pid(s)=7143574
102dce8 11 work text data BSS heap s 1494 0 0 1494 ( Private work )
m 0 0 0 0
pid(s)=7143574
105c017 90020014 work shared library s 1091 0 1334 1562 ( System shared )
pid(s)=18219106, 18153612, 17432656, 17236064, 17039518,
pid(s)=16974016, 16122096, 14417950, 14352410, 14024770,
pid(s)=13959296, 13697248, 13631698, 13566074, 13434998,
pid(s)=13238522, 13172766, 12910710, 12845068, 12779598,
pid(s)=12713984, 12582960, 12451974, 12386322, 12255472,
pid(s)=12124214, 11993120, 11927568, 11862146, 11796484,
pid(s)=11731014, 11665616, 11599878, 11534552, 11272376,
pid(s)=11141156, 10879224, 10682408, 10551410, 10485960,
pid(s)=10420412, 10354872, 10289304, 10223746, 10158294,
pid(s)=10092610, 9895958, 9830440, 9765080, 9633994, 9437232,
pid(s)=9371662, 9306152, 9240678, 9175196, 9044020, 8847398,
pid(s)=8781970, 8716326, 8650940, 8585290, 8519688, 8454204,
pid(s)=8388612, 8323182, 8257616, 8126718, 8061178, 7995640,
pid(s)=7930102, 7864570, 7733498, 7667952, 7602428, 7536882,
pid(s)=7471132, 7405800, 7340260, 7274724, 7209198, 7143574,
pid(s)=7078126, 7012572, 6947032, 6553846, 6357200, 6094930,
pid(s)=5898402, 5832806, 5767324, 5636274, 5570688, 5505052,
pid(s)=5308552, 5046382, 4653258, 4259934, 3997846, 3473518,
pid(s)=3407980, 3276904, 1638490
1049cf1 9001000a work shared library data s 119 0 0 119 ( Private work )
m 0 0 0 0
pid(s)=7143574
14005 9ffffffd work shared library s 83 0 2072 2072 ( System shared )
m 0 0 0 0
System segment
1011e27 f00000002 work process private m 5 3 0 5 ( Private work )
pid(s)=7143574
1061b1b ffffffff work application stack s 51 0 0 51 ( Private work )
m 0 0 0 0
pid(s)=7143574
1027669 90000001 work shared library text m 3 0 0 3 ( System shared )
Shared library text segment
3000c 9ffffffe work shared library s 22 0 17 23 ( System shared )
m 0 0 0 0
System segment
104c193 9fffffff clnt USLA text,/dev/hd2:4218 s 13 0 - - ( System shared )
pid(s)=18219106, 18153612, 17432656, 17236064, 17039518,
pid(s)=16974016, 16122096, 14417950, 14352410, 14024770,
pid(s)=13959296, 13697248, 13631698, 13566074, 13434998,
pid(s)=13238522, 13172766, 12910710, 12845068, 12779598,
pid(s)=12713984, 12582960, 12451974, 12386322, 12255472,
pid(s)=12124214, 11993120, 11927568, 11862146, 11796484,
pid(s)=11731014, 11665616, 11599878, 11534552, 11272376,
pid(s)=11141156, 10879224, 10682408, 10551410, 10485960,
pid(s)=10420412, 10354872, 10289304, 10223746, 10158294,
pid(s)=10092610, 9895958, 9830440, 9765080, 9633994, 9437232,
pid(s)=9371662, 9306152, 9240678, 9175196, 9044020, 8847398,
pid(s)=8781970, 8716326, 8650940, 8585290, 8519688, 8454204,
pid(s)=8388612, 8323182, 8257616, 8126718, 8061178, 7995640,
pid(s)=7930102, 7864570, 7733498, 7667952, 7602428, 7536882,
pid(s)=7471132, 7405800, 7340260, 7274724, 7209198, 7143574,
pid(s)=7078126, 7012572, 6947032, 6553846, 6357200, 6094930,
pid(s)=5898402, 5832806, 5767324, 5636274, 5570688, 5505052,
pid(s)=5308552, 5046382, 4653258, 4259934, 3997846, 3473518,
pid(s)=3407980, 3276904
103db6c 8fffffff work private load data s 11 0 0 11 ( System shared )
System segment
1020bea - clnt /dev/fslv00:301607 s 10 0 - - ( Shared Files )
pid(s)=18153612, 17039518, 16974016, 14352410, 14024770,
pid(s)=13959296, 13631698, 13566074, 13434998, 13238522,
pid(s)=13172766, 12910710, 12845068, 12713984, 12582960,
pid(s)=12451974, 12386322, 12255472, 12124214, 11993120,
pid(s)=11927568, 11862146, 11796484, 11731014, 11665616,
pid(s)=11599878, 11534552, 11272376, 11141156, 10879224,
pid(s)=10485960, 10420412, 10354872, 10289304, 10223746,
pid(s)=10158294, 10092610, 9895958, 9830440, 9633994,
pid(s)=9371662, 9240678, 8323182, 7143574, 5308552, 5046382
107dcfc 8001000a work private load data s 3 0 0 3 ( Private work )
m 0 0 0 0
pid(s)=7143574
[node1:root]
通过上面的分类,汇总如下结果:
System shared := 3636*64k + 2688*64k + 1236*64k + 808*64k + 508*64k + 161*64k + 1091*4k + 83*4k + 3*64k + 22*4k + 13*4k + 11*4k = 569M
Shared Text := 23496*4K = 92M
Private work := 1805*4k + 1494*4k + 119*4k + 5*64k + 51*64k + 3*4k = 17M
Shared Files := 10*4k = 40K

650M是共享内存,私有工作区只有17M。
小结:
通过svmon可以查看系统中激活的内存页,以及每个进程所使用的内存页大小和数量。
通过ipcs 可以查看系统中共享内存及信号量信息。
通过vmstat 可以查看avm fre 以及 fr sr

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/271063/viewspace-1060047/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/271063/viewspace-1060047/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值