- 论坛徽章:
- 0
|
在5.3的机器上,vmstat 1 2,cpu idle值可以正确得到
System Configuration: lcpu=8 mem=7808MB
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------
r b avm fre re pi po fr sr cy in sy cs us sy id wa
0 0 998515 882178 0 0 0 0 0 0 10 422 257 0 0 99 0
0 0 998515 882178 0 0 0 0 0 0 20 581 245 0 0 99 0
但在6.1机器上vmstat 1 2的结果确如下
LYH40889B configuration: @lcpu=4 @mem=18432MB @ent=2.00
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------------------
@ @ @ @ @
r b avm fre re pi po fr sr cy in sy cs us sy id wa pc ec
11 0 5158591 28265 0 0 5 5 0 0 33 97487 34424 45 55 - - 0.66 32.9
7 0 5157888 28954 0 0 0 0 0 0 100 98191 31813 39 61 - - 0.42 21.0
manual了一把,发现一个-@选项
-@ WparName
Reports the Virtual Memory activity of a workload partition:
* The -@ ALL option indicates that the report pertains to the system and global environment, in addition
to all of the workload partitions in the system. Note: The values that are system-wide statistics are
marked with dash sign (-) against the WPAR section.
* The [email=-@WparName]-@WparName[/email] option indicates that the activity is only for that workload partition. The system-wide
statistics are marked with the at sign (@). Note: Do not use the -@ option with any combination of the
-i option.
执行命令vmstat -@ 1 2,cpuidle可以被获取了,不太明白P6机型做了什么修改,workload partition是啥东东?
System configuration: lcpu=4 mem=18432MB ent=2.00
wpar kthr memory page faults cpu
----- ----- ----------- ------------------------ ------------ -----------------------
r b avm fre re pi po fr sr cy in sy cs us sy id wa pc ec
System 29 0 5378997 24514 0 1 103 177 257 0 63 136421 88857 31 51 18 0 1.99 99.7
LYH40889B 16 0 - - 0 1 0 0 0 0 - - 37677 38 62 - - 0.93 46.3
------------------------------------------------------
System 3 0 5378990 24433 0 0 0 0 0 0 11 98990 95258 16 23 61 0 2.00 100.2
LYH40889B 2 0 - - 0 0 0 0 0 0 - - 32377 43 57 - - 0.42 21.2
------------------------------------------------------ |
|