恋恋冬季

有你的冬天很温暖

内存性能分析

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 confused with available memory,which does not change during normal system 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时间,很显然,这时系统性能瓶颈真正所在可能是内存。

posted on 2007-07-10 16:24 恋恋冬季 阅读(544) 评论(1)  编辑  收藏 所属分类: 编程资料

评论

# re: 内存性能分析[未登录] 2009-04-16 14:27 test

写的很好哦,对初学者来说很有用,不过还需要慢慢消化  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: