我的操作系统是aix 7.1 物理内存128G ,64G lsps -a 出现96%的换页的情况。
topas发现comp 96%,数据库是oracle 11.2.0.4 asm
RAC ,请问怎么解决呢
Topas Monitor for host:nskxt1 EVENTS/QUEUES FILE/TTY
Tue Feb 11 15:34:10 2020 Interval:2 Cswitch 8795 Readch 11.5M
Syscall 17228 Writech 405.8K
CPU User% Kern% Wait% Idle% Reads 1389 Rawin 0
Total 0.6 0.6 0.2 98.7 Writes 268 Ttyout 435
Forks 3 Igets 0
Network BPS I-Pkts O-Pkts B-In B-Out Execs 3 Namei 1632
Total 598K 521.5 354.0 387K 212K Runqueue 1.00 Dirblk 0
Waitqueue 0.0
Disk Busy% BPS TPS B-Read B-Writ MEMORY
Total 0.2 6.47M 493.5 6.21M 271K PAGING Real,MB 131072
Faults 1464 % Comp 96
FileSystem BPS TPS B-Read B-Writ Steals 0 % Noncomp 3
Total 5.26M 709.0 5.21M 51.8K PgspIn 0 % Client 3
PgspOut 0
Name PID CPU% PgSp Owner PageIn 1 PAGING SPACE
osysmond 26870128 0.2 76.5M root PageOut 14 Size,MB 65536
oraroota 8978586 0.1 31.8M root Sios 16 % Used 96
reaffin 589846 0.1 640K root % Free 4
ocssd.bi 7340134 0.0 102M grid NFS (calls/sec)
extract 49021148 0.0 93.1M oracle SerV2 0 WPAR Activ 0
oracle 27918708 0.0 9.20M grid CliV2 0 WPAR Total 0
oraagent 42467466 0.0 51.4M oracle SerV3 0 Press: "h"-help
oracle 7602194 0.0 28.8M grid CliV3 0 "q"-quit
oracle 47775982 0.0 7.07M oracle SerV4 0
gipcd.bi 7405714 0.0 33.7M grid CliV4 0
oracle 45810050 0.0 53.8M oracle
oracle 37814520 0.0 15.1M oracle
oracle 45089268 0.0 54.1M oracle
oraagent 8454296 0.0 87.8M grid
oraagent 8192034 0.0 72.1M grid
zabbix_a 37945834 0.0 1.29M zabbix
oracle 40894694 0.0 53.5M oracle
extract 27000868 0.0 95.4M oracle
topas 36897278 0.0 7.86M root
oracle 28639598 0.0 9.23M grid
查看当前内存大小:
nskxt1[/]#svmon -G
size inuse free pin virtual mmode
memory 33554432 33278631 275801 4520991 45649505 Ded
pg space 16777216 16151627
work pers clnt other
pin 3418919 0 42392 1059680
in use 32013371 0 1265260
PageSize PoolSize inuse pgsp pin virtual
s 4 KB - 14880951 12874587 1669839 26266545
m 64 KB - 1149855 204815 178197 1211435
L 16 MB - 0 0 0 0
S 16 GB - 0 0 0 0
显示使用物理内存最多的10个进程:
nskxt1[/]#svmon -uP -t 10|grep -p Pid|grep '^.*[0-9]'
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
36110642 oracle 15579367 28608 3197418 16453183 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
46137760 oracle 15571943 28608 3204636 16449310 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
38600874 oracle 15571940 28608 3204727 16449310 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
9306600 oracle 15571940 28608 3204688 16449311 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
42205340 oracle 15568919 28608 3204098 16449840 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
45089268 oracle 15568899 28608 3204094 16449818 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
45810050 oracle 15568825 28608 3204082 16449753 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
40894694 oracle 15568740 28608 3204104 16449663 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
42009062 oracle 15567908 28608 3196366 16441001 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
34537712 oracle 15567907 28608 3196366 16441000 Y N N
每个ID对应的进程
nskxt1[/]#ps -ef|grep 38600874
root 35258820 42336712 0 12:29:50 pts/5 0:00 grep 36110642
oracle 36110642 1 1 Oct 28 - 1823:19 ora_dia0_nskxt1
ps -ef|grep 46137760
nskxt1[/]#ps -ef|grep 46137760
root 22085940 41025750 0 15:03:58 pts/6 0:00 grep 46137760
oracle 46137760 1 0 Oct 28 - 2:25 ora_arc1_nskxt1
svmon -gP -t 10|grep -p Pid|grep '^.*[0-9]'
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
6029810 ohasd.bin 11302454 28640 12419876 23656332 Y Y N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
38600874 oracle 15571940 28608 3204727 16449310 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
9306600 oracle 15571940 28608 3204688 16449311 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
46137760 oracle 15571943 28608 3204636 16449310 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
40894694 oracle 15568740 28608 3204104 16449663 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
42205340 oracle 15568919 28608 3204098 16449840 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
45089268 oracle 15568899 28608 3204094 16449818 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
45810050 oracle 15568825 28608 3204082 16449753 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
9961634 oracle 15563331 28608 3202918 16443157 Y N N
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
46072242 oracle 15563623 28608 3202326 16442888 Y N N
nskxt1[/]#vmstat 1 10
System configuration: lcpu=64 mem=131072MB
kthr memory page faults cpu
r b avm fre re pi po fr sr cy in sy cs us sy id wa
1 0 45653967 49755 0 0 0 0 0 0 274 9436 6372 1 0 99 0
0 0 45653967 49748 0 0 0 0 0 0 425 27588 8744 1 1 98 0
0 0 45653967 49742 0 0 0 0 0 0 364 14342 6674 1 0 99 0
0 0 45653967 49740 0 0 0 0 0 0 478 9372 6386 1 0 99 0
0 0 45653967 49738 0 0 0 0 0 0 395 10148 6945 0 0 99 0
1 0 45653967 49712 0 0 0 0 0 0 315 8669 6489 4 0 96 0
0 0 45653967 49696 0 0 0 0 0 0 553 22812 8730 1 1 98 0
1 0 45653967 49691 0 0 0 0 0 0 481 9662 6458 0 1 99 0
0 1 45656788 46759 0 0 0 0 0 0 1805 25904 8414 1 1 95 2
0 1 45653967 49421 0 0 0 0 0 0 714 11895 7195 1 1 98 1
此证明此系统目前内存没有出现换页现象,系统占时好用!