AIX5L内存监控和调整

1、ps

ps gv | head -n 1; ps gv | egrep -v "RSS" | sort +6b -7 -n -r

PID      TTY    STAT    TIME    PGIN    SIZE    RSS    LIM       TSIZ    TRS   %CPU   %MEM   COMMAND

27703  -         A           0:00     274       948     1644   32768  817      696    0.0          0.0          sendmail

说明:

1)RSS:每个进程的文本和数据段的 RAM 使用量。PID 为27703 的进程使用了1644k。

2)%MEM:RSS / Total RAM 的实际用量。监视 %MEM 使用达到百分之四十到七十的进程。

3)TRS:文本段的 RAM 使用量,单位为 KB。

4)SIZE:为这个进程(文本和数据)分配的分页空间的实际大小。

2、vmstat

vmstat 1 4

System Configuration: lcpu=4 mem=4096MB

kthr memory page faults cpu

----- ----------- ------------------------ ------------ -----------

r b avm fre re pi po fr sr cy in sy cs us sy id wa

1 2 137583 227 0 4 57 44 92 0 345 2223 605 30 40 29 2

3 4 136782 111 0 5 61 0 693 0 329 3341 511 19 26 35 16

说明:

内存:

1)avm——您所使用的活动虚拟内存量(单位为 4k 大小的页面),不包括文件页面。

2)fre——内存空闲列表的大小。在大多数情况下,我并不担心这个值什么时候变得很小,因为 AIX 总是会充分地使用内存,并且不会像您希望的那样尽早地释放内存。这个设置由vmo 命令的 minfree 参数来确定。归根结底,分页的信息更加重要。

3)pi——从分页空间调入的页面。

4)po——调出到分页空间的页面。

CPU 和 I/O:

1)r——在您指定的时间间隔内,可运行内核线程的平均数量。

2)b——在您指定的时间间隔内,位于虚拟内存等待队列中的内核线程的平均数量。如果 r 不大于 b,通常是 CPU 问题的症状,这可能是由于 I/O 或者内存瓶颈造成的。

3)us——用户时间。

4)sy——系统时间。

5)id——空闲时间。

6)wa——等待 I/O。

3、sar

sar -r 1 5

System Configuration: lcpu=4 mem=4096MB

16:28:15 slots cycle/s fault/s odio/s

16:28:16 1048052 0.00 387.25 0.00

16:28:17 1048052 0.00 112.97 0.00

16:28:18 1048052 0.00 45.00 79.21

16:28:19 1048052 0.00 216.00 0.00

16:28:20 1048052 0.00 8.00 0.00

Average 1048052 0 79 16

说明:

1)cycle/s:报告每秒的页面置换周期数。

2)fault/s:提供每秒的缺页次数。

3)Slots:提供分页空间中空闲页面的数目。

4)odio/s:提供每秒的非分页磁盘 I/O 次数。

4、svmon

svmon -G

                        size            inuse         free    pin         virtual

memory        1048576   1048416   160     79327  137750

pg space      1048576    524

                        work           pers           clnt     lpage

pin                  79327        0                  0        0

in use            137764      910652      0        0

说明:

memory:

1)size列:报告RAM的大小,4k页面;

2)inuse列:进程所用RAM中的页面数,包括属于已终止进程但还在RAM所占的页面数;

3)free列:空闲列表中的页面数;

4)pin:物理内存中(RAM)中固定的页面数,不能被调出;

pg space:

1)size列:分页空间的大小,4k页面;

2)inuse:在用的分页空间的大小,4k页面;

 

svmon -P | grep -p 16356

-------------------------------------------------------------------------------

Pid          Command   Inuse   Pin      Pgsp  Virtual  64-bit   Mthrd   LPage

16356     X                   12102   3221  0          12022  N          N          N

说明:

查看进程16356内存及分页空间等使用情况;

5、vmo

--查询maxfree 和 minfree 的设置

# vmo -a | grep free

maxfree = 1088

minfree = 960

--设置 minpermmaxpermmaxclient 参数

vmo -p -o minperm%=5

vmo -p -o maxperm%=90

vmo -p -o maxclient%=90

供大家参考,如需转载,请注明出处。


 


 

 

 

Applies to: Oracle Server - Enterprise Edition - Version: 10.2.0.4 to 11.1.0.6 Information in this document applies to any platform. Description The following errors may be reported: ORA-00603: ORACLE server session terminated by fatal error ORA-27504: IPC error creating OSD context ORA-27300: OS system dependent operation:sskgxp_select failed with status: 3 ORA-27301: OS failure message: No such process ORA-27302: failure occurred at: skgxpvfymmtu ORA-27303: additional information: MTU could not be verified. Did not receive valid message. These errors are caused by more aggressive checking introduced in 10.2.0.4. Likelihood of Occurrence This only affects Oracle Real Application Clusters and can be reported in ASM as well as database instances. The issue was introduced in Oracle 10.2.0.4 so earlier versions are not affected Possible Symptoms The errors above can be reported by Oracle shadow processes or by background processes. Additionally they may be reported in the alert.log. The symptoms can include: - process failure - startup failure - processes spinning in function sskgxp_select with high CPU usage Workaround or Resolution There is no workaround available. However, if the instance fails to start, a reboot of the server supporting the instance will usually allow startup to succeed. Patches At the time of writing, patches were under development on top of 10.2.0.4 on some platforms. Please check Patch 7331323 for availability on your platform. The problem is resolved in 11.1.0.7. References NOTE:419937.1 - Alert.log shows frequently "skgxpvfymmtu: process failed because of a resource problem in the OS" NOTE:419871.1 - Failures due to "skgxpvfymmtu: process failed because of a resource problem in the OS" on 32-bit Linux
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lhdz_bj

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值