免费注册 查看新帖 |

Chinaunix

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

如何查看sunv280上每个cpu 的负载 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-05-06 18:20 |只看该作者 |倒序浏览
谢谢

论坛徽章:
0
2 [报告]
发表于 2005-05-06 23:47 |只看该作者

如何查看sunv280上每个cpu 的负载

mpstat 5 2
第一行数据不要看,看第二行的.

论坛徽章:
0
3 [报告]
发表于 2005-05-07 10:39 |只看该作者

如何查看sunv280上每个cpu 的负载

mpstat 2 10
2是刷新次数
10表示次数

论坛徽章:
0
4 [报告]
发表于 2006-06-27 16:08 |只看该作者

示例

$ mpstat 2 5
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
  0   11   0  315   215   31  428  237  240    9    2   331   98  37   0 408
  1   11   0  313   270   87   39  245  241   15    2   233   97  34   0 412
  2   14   0  383   393   21   56  158  138  263    2   219   99  37   0 408
  3   13   0  397   118  284  280  405  219   19    3    61  106  35   0 403
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
  0   92   0  199   221    3 3043  225  204  217    1  4732   44  12   0  44
  1    3   0   80   205    4 2724  206  173  195    0  4068   39  17   0  44
  2    0   0  462  1475 1368 2586  207  173  289    2  4055   45   8   0  47
  3   47   0  203   485  149 3250  255  213  242    0  4068   42   7   0  51
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
  0    0   0  118   257    3 3173  269  231  246    0  4734   48  11   0  41
  1    0   0  118   282    1 3694  305  252  234    0  4737   32   6   0  61
  2    0   0  535  1524 1361 3194  273  231  297    0  4590   35   6   0  59
  3    0   0  147   474  148 2862  266  212  236    0  4242   49   6   0  45

论坛徽章:
0
5 [报告]
发表于 2006-06-28 11:13 |只看该作者
man mpstat
Reformatting page.  Please Wait... done

Maintenance Commands                                   mpstat(1M)

NAME
     mpstat - report per-processor statistics

SYNOPSIS
     /usr/bin/mpstat [ -p | -P set ]  [ interval  [  count ]  ]

DESCRIPTION
     mpstat reports per-processor  statistics  in  tabular  form.
     Each row of the table represents the activity of one proces-
     sor. The first table summarizes  all  activity  since  boot;
     each  subsequent table summarizes activity for the preceding
     interval. All values are rates (events  per  second)  unless
     otherwise noted.

     During execution of this kernel status command, the  "state"
     of  the  kernel  can  change. An example would be CPUs going
     online or offline. mpstat reports this as State change.

     mpstat reports the following information:

     CPU   processor ID

     minf  minor faults

     mjf   major faults

     xcal  inter-processor cross-calls

     intr  interrupts

     ithr  interrupts as threads (not counting clock interrupt)

     csw   context switches

     icsw  involuntary context switches

     migr  thread migrations (to another processor)

     smtx  spins on mutexes (lock not acquired on first try)

     srw   spins on readers/writer locks (lock  not  acquired  on
           first try)

     syscl system calls

     usr   percent user time

     sys   percent system time

     wt    percent wait time

     idl   percent idle time

SunOS 5.8           Last change: 25 Oct 2001                    1

Maintenance Commands                                   mpstat(1M)

     For the -p option, mpstat also reports the following  infor-
     mation:

     set   processor set membership of the CPU

OPTIONS
     The following options are supported:

     -p    Report processor set membership of each CPU. Sort  the
           output  by  set.   The default output is sorted by CPU
           number.

     -P set
           Display only those processors in the specified set.

     interval
           Report once each interval seconds.

     count Only print count reports.

ATTRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:

     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | Availability                | SUNWcsu                     |
    |_____________________________|_____________________________|

SEE ALSO
     sar(1), iostat(1M), sar(1M), vmstat(1M), attributes(5)

NOTES
     The sum of CPU utilization  might  vary  slightly  from  100
     because of rounding errors in the production of a percentage
     figure.

SunOS 5.8           Last change: 25 Oct 2001
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP