- 论坛徽章:
- 0
|
AIX中的多页面大小支持
内容提要: 当前,在AIX系统中,除了4k大小的页面之外,还支持64k、16M和16G三种页面大小。下面我们将对多种页面大小做简单的介绍。
说明:
在传统AIX中,对于虚拟内存管理器的段页式管理,仅支持4k的页面大小;
硬件方面从Power4处理器开始,软件方面从AIX 5100-02或AIX 5.2开始,系统支持16M的页面大小;
硬件方面从Power5+和Power6开始,软件方面从AIX 5300-04开始,系统支持64k和16G的页面大小。
在系统引入多页面大小支持的同时,系统中监控内存的各个命令也引入对于多页面大小的监控。
1. "pagesize -af"显示系统支持的页面大小
/ # pagesize -af
4K
64K
16M
16G
2. "svmon -G"和"vmstat -P all"显示各个页面大小的使用统计情况
/ # svmon -G
size inuse free pin virtual
memory 2031616 2023676 7940 368660 390206
pg space 917504 8148
work pers clnt other
pin 167640 0 0 69948
in use 386878 0 1505726
PageSize PoolSize inuse pgsp pin virtual
s 4 KB - 1799036 2756 186484 293310
m 64 KB - 5848 337 3194 6056
L 16 MB 32 0 0 32 0
/ # vmstat -P all
System configuration: mem=7936MB
pgsz memory page
----- -------------------------- ------------------------------------
siz avm fre re pi po fr sr cy
4K 1803488 293304 4458 0 0 0 16 27 0
64K 6066 6056 218 0 0 0 0 0 0
16M 32 0 32 0 0 0 0 0 0
3. "svmon -P PID"和"ps -Z"可以显示出某个进程中对于多种页面大小的使用情况
/ # svmon -P
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
340144 xmwlm 23021 8549 896 23689 N N N
PageSize Inuse Pin Pgsp Virtual
s 4 KB 14669 8549 0 14441
m 64 KB 522 0 56 578
L 16 MB 0 0 0 0
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
0 0 work kernel segment s 12716 8546 0 12716
6f0ad d work shared library text m 522 0 56 578
f835d c work shared memory segment s 1483 0 0 1483
50508 - clnt /dev/hd4:1558 s 206 0 - -
b0334 2 work process private s 144 3 0 144
18221 f work shared library data s 98 0 0 98
18481 1 clnt code,/dev/hd2:876 s 16 0 - -
c809b 3 clnt file mapped read write, s 6 0 - -
/dev/hd3:11
10480 - clnt /dev/hd2:70031 s 0 0 - -
其中,PSize列,s表示4k页面大小,m表示64k页面大小,L表示16M页面大小。
/ # ps -ef -Z
UID PID PPID C STIME TTY TIME DPGSZ SPGSZ TPGSZ CMD
root 340144 1 0 Jun 07 - 6:43 4K 4K 4K /usr/bin/xmwlm -L
其中,DPGSZ列显示进程的数据页面大小;SPGSZ列显示进程的堆栈页面大小;以及TPGSZ列显示进程的文本页面大小 |
|