衡量内存闲忙程度的指标

1) 整体内存忙闲指标:
buffer cache size: 缓存区在内存开销中占很大比例;
page in/out rates;
swap in/out rates;
可用内存的大小,或用得到内存的大小(available memory size):
自由内存的大小(free memory size): what is currently available,it should not
be confuzed with available memory,which does not change during normal sytem operation;
swap queue length;
2) 单个进程的内存衡量指标:
一个进程占用物理内存的大小(resident set size)
一个进程占用虚拟内存的大小(virtual set size)
VM reads and writes: it can show how many physical memory management reads and writes were made to and from the disk during the chosen interval.
内存资源成为系统性能的瓶颈的征兆
当内存资源成为系统性能的瓶颈时,它有一些典型的症状:
很高的换页率(high pageout rate):
HP-UX 是一个按需调页的操作系统,通常情况下,它只执行调入页面进入内存的操作,以让进程能够运行。只有操作系统觉得系统需要释放一些内存空间时,才会执行从内存调出页面的操作,而过高的调出页面操作说明内存缺乏;
进程进入不活动状态(process deactivation activity):
当自由的内存页面数量小于MINFREE 时,很多进程将强制进入不活动状态,因为,any deactivation activity represents a condition
in which normal paging is inadequate to handle the memory demands.
自由内存的数量很小,但活动的虚拟内存却很大(very small free
memory and large active virtual memory)
交换区所有磁盘的活动次数可高(high disk activity on swap
devices)
可高的全局系统CPU 利用率(high global system CPU utilization):
很长的运行进程队列,但CPU 的空闲时间却很多(large run queue
with idle CPU)
内存不够出错(out of memory errors)
CPU 用于vhand 和swapper 两中守护进程的时间(CPU time to
vhand and swapper)

必须注意的是,有时候我们发现CPU 很忙,这似乎是CPU 资源成为系统性能的瓶颈,但如果进一步分析,发现vhand 和swapper 守护进程占用了大量的系统CPU 时间,很显然,这时系统性能瓶颈真正所在可能是内存。

[@more@]

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

转载于:http://blog.itpub.net/38542/viewspace-902705/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值