免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4786 | 回复: 3
打印 上一主题 下一主题

AIX 内存占用率怎么查? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-05 11:21 |只看该作者 |倒序浏览
AIX 内存占用率怎么查?

论坛徽章:
0
2 [报告]
发表于 2009-08-05 11:24 |只看该作者
好多命令可查\r\nnetstat-m

论坛徽章:
0
3 [报告]
发表于 2009-08-06 10:16 |只看该作者
svmon 可以看内存和pagingspace 的使用情况

论坛徽章:
0
4 [报告]
发表于 2009-08-06 10:17 |只看该作者
通过vmstat实时查看AIX系统内存使用情况\r\n\r\nvmstat 2(秒数)\r\nvmstat 5 40\r\n\r\nvmstat 可用来记录 processes, memory, paging, block IO, traps与cpu activity。\r\n\r\n例如\r\n\r\n$ vmstat 1 # 1 是更新速度,單位為秒\r\nprocs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----\r\nr b swpd free buff cache si so bi bo in cs us sy id wa\r\n1 0 549368 13316 102388 91992 12 6 9 8 2 12 72 3 25 0\r\n2 0 549368 13316 102388 91992 0 0 0 0 156 1516 98 2 0 0\r\n2 0 549368 13312 102388 91992 0 0 0 0 125 534 99 1 0 0\r\n\r\n....\r\n\r\n第一列與第二列所代表是執行程式的資訊,接下來的是記憶體、swap、io、systm 與 cpu。\r\n\r\nProcs\r\nr: The number of processes waiting for run time.\r\nb: The number of processes in uninterruptible sleep.\r\n\r\nMemory\r\nswpd: the amount of virtual memory used.\r\nfree: the amount of idle memory.\r\nbuff: the amount of memory used as buffers.\r\ncache: the amount of memory used as cache.\r\ninact: the amount of inactive memory. (-a option)\r\nactive: the amount of active memory. (-a option)\r\n\r\nSwap\r\nsi: Amount of memory swapped in from disk (/s).\r\nso: Amount of memory swapped to disk (/s).\r\n\r\nIO\r\nbi: Blocks received from a block device (blocks/s).\r\nbo: Blocks sent to a block device (blocks/s).\r\nSystem\r\nin: The number of interrupts per second, including the clock.\r\ncs: The number of context switches per second.\r\n\r\nCPU\r\nThese are percentages of total CPU time.\r\nus: Time spent running non-kernel code. (user time, including nice time)\r\nsy: Time spent running kernel code. (system time)\r\nid: Time spent idle. Prior to Linux 2.5.41, this includes IO-wait time.\r\nwa: Time spent waiting for IO. Prior to Linux 2.5.41, shown as zero.______________________________________vmstat:\r\nProc\r\n    b 由于I/O操作被迫等待的进程\r\nMemory\r\n    swpd 已经使用的交换内存大小 (如果这个值很大,有必要看一下剩余内存,可能因为内存不够用导致)\r\n    free 未被使用的内存\r\n    buff 被linux作为buffer使用的内存\r\n    cache 被linux作为cache使用的内存\r\n   现在还没搞清两者有何区别\r\n\r\nIO\r\n    bi 每秒钟有多少个块写到块设备中\r\n    bo 相反,每秒钟从块设备中读入多少个块\r\n不同的linux版本,解释不一定相同,比如 redhat2.4.21-37中,解释就正好相反.\r\n\r\nSystem\r\n    cs 上下文切换,应该是与线程有关吧\r\n\r\ncpu 平时看的最多\r\n    us 用户应用程序使用cpu的状况(non-kernal code)\r\n    sy 系统内核使用cpu的状况\r\n    id cpu的idle________________________________________u->正在等待的不能被中断的线程数\r\nact->活动列表中的页面总数\r\nfree->可用的干净的页面总数\r\nwire->当前正在被使用,而且不能被分配的页面\r\nfault->发生错误的地址解释数\r\ncow->Number of copy-on-write page faults, which occur if the requested page\r\n   is shared by a parent process and one or more child processes (using\r\n   the fork function) and if one of the processes needs to modify the\r\n   page.   In this case, VM loads a new address into the translation buffer\r\n   and copies the contents of the requested page into the new address for\r\n   modification by the process.\r\nzero->Number of zero-filled-on-demand page faults, which occur if VM cannot\r\n   find the page in the internal data structures and if the requested page\r\n   is new and has never been referenced.   In this case, VM initializes a\r\n   physical page (the contents of the page are zeroed out) and loads the\r\n   address into the page table.\r\nreact->Number of pages that have been faulted while on the inactive list.\r\n\r\npin->进入页面数\r\n\r\npout->出页面数\r\n\r\nin->每秒的中断数,包括时钟中断\r\n\r\nsy->每秒的系统调用数\r\n\r\ncs->每秒涉及到交换的任务和线程数\r\n\r\nus->用户进程所占的时间比\r\n\r\nsy->系统所占时间比\r\n\r\nid->空闲时间比________________________-procs: \r\nr-->在运行队列中等待的进程数 \r\nb-->在等待io的进程数 \r\nw-->可以进入运行队列但被替换的进程\r\n\r\nmemoy \r\nswap-->现时可用的交换内存(k表示) \r\nfree-->空闲的内存(k表示)\r\n\r\npages \r\nre--》回收的页面 \r\nmf--》非严重错误的页面 \r\npi--》进入页面数(k表示) \r\npo--》出页面数(k表示) \r\nfr--》空余的页面数(k表示) \r\nde--》提前读入的页面中的未命中数 \r\nsr--》通过时钟算法扫描的页面\r\n\r\ndisk 显示每秒的磁盘操作。 s表示scsi盘,0表示盘号\r\n\r\nfault 显示每秒的中断数 \r\nin--》设备中断 \r\nsy--》系统中断 \r\ncy--》cpu交换\r\n\r\ncpu 表示cpu的使用状态 \r\ncs--》用户进程使用的时间 \r\nsy--》系统进程使用的时间 \r\nid--》cpu空闲的时间\r\n\r\n解释: \r\n如果 r经常大于 4 ,且id经常少于40,表示cpu的负荷很重。 \r\n如果pi,po 长期不等于0,表示内存不足。 \r\n如果disk 经常不等于0, 且在 b中的队列 大于3, 表示 io性能不好。\r\n\r\n\r\nvmstat t [n]命令,例如 vmstat 5 5,表示在T(5)秒时间内进行N(5)次采样
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP