Chinaunix首页 | 论坛 | 博客
  • 博客访问: 146994
  • 博文数量: 52
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 490
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-05 12:05
文章分类

全部博文(52)

文章存档

2013年(1)

2010年(3)

2009年(6)

2008年(25)

2007年(17)

我的朋友

分类: LINUX

2007-12-01 18:54:25

[root@allenlinux root]# sar -u 2 100

Linux 2.4.21-40.ELsmp (allenlinux)       12/01/2007



########

#Report CPU usages of system every 2 seconds and keep 100 times.

 

06:42:07 PM       CPU     %user     %nice   %system   %iowait     %idle

06:42:09 PM       all      0.00      0.00      1.38      0.00     98.62

06:42:11 PM       all      0.00      0.00      1.75      0.00     98.25

06:42:13 PM       all      2.00      0.00      1.25      0.00     96.75

06:42:15 PM       all      3.25      0.00      1.38      0.00     95.38

06:42:17 PM       all      0.50      0.00      2.00      0.25     97.25

06:42:19 PM       all      0.00      0.00      2.00      0.00     98.00

06:42:21 PM       all      0.62      0.00      1.25      0.00     98.12

 

06:42:21 PM       CPU     %user     %nice   %system   %iowait     %idle

06:42:23 PM       all      0.50      0.00      1.50      0.75     97.25

06:42:25 PM       all      1.88      0.00      2.00      0.00     96.12

06:42:27 PM       all      0.00      0.00      1.12      0.00     98.88

06:42:29 PM       all      4.88      0.00      1.75      0.00     93.38

 

[root@allenlinux root]# ps aux | grep kerio

root     16099 12.9  4.6 467484 188440 ?     S    Oct31 5769:09 /opt/kerio/mailserver/mailserver /opt/kerio/mailserver

root     22599  0.0  0.5 25956 22004 ?       S    Nov28   0:02 /opt/kerio/mailserver/plugins/spamserver 35 69

root      1966  0.0  0.0  3692  668 pts/0    S    18:42   0:00 grep kerio

[root@allenlinux root]# sar -x 16099 2 10


####################
#Report statistics for a given process 16099

Linux 2.4.21-40.ELsmp (allenlinux)       12/01/2007

 

06:43:09 PM       PID  minflt/s  majflt/s     %user   %system   nswap/s   CPU

06:43:11 PM     16099      0.00      0.00      0.00      0.00      0.00     0

06:43:13 PM     16099      0.00      0.00      0.00      0.00      0.00     0

06:43:15 PM     16099      0.00      0.00      0.00      0.00      0.00     0

06:43:17 PM     16099      0.00      0.00      0.00      0.00      0.00     1

06:43:19 PM     16099      0.00      0.00      0.00      0.00      0.00     0

 

[root@allenlinux root]# sar -X 16099 2 10

Linux 2.4.21-40.ELsmp (allenlinux)       12/01/2007

############

#Report statistics for the child processes of the  process  whose PID is 16099

06:43:29 PM      PPID cminflt/s cmajflt/s    %cuser  %csystem  cnswap/s

06:43:31 PM     16099      0.00      0.00      0.00      0.00      0.00

06:43:33 PM     16099      0.00      0.00      0.00      0.00      0.00

06:43:35 PM     16099      0.00      0.00      0.00      0.00      0.00

06:43:37 PM     16099      0.00      0.00      0.00      0.00      0.00

06:43:39 PM     16099      0.00      0.00      0.00      0.00      0.00

 

[root@allenlinux root]# sar -r -n DEV 2 10

#############

#Display memory, swap space and network statistics

Linux 2.4.21-40.ELsmp (allenlinux)       12/01/2007

 

06:44:00 PM     IFACE   rxpck/s   txpck/s   rxbyt/s   txbyt/s   rxcmp/s   txcmp/s  rxmcst/s

06:44:02 PM        lo     14.57     14.57   1062.81   1062.81      0.00      0.00      0.00

06:44:02 PM      eth0      5.03      2.51    599.50    472.36      0.00      0.00      0.00

06:44:02 PM      eth1      2.01      2.01    135.18    191.96      0.00      0.00      0.00

 

06:44:00 PM kbmemfree kbmemused  %memused kbbuffers  kbcached kbswpfree kbswpused  %swpused  kbswpcad

06:44:02 PM     25328   4066228     99.38    150104   3112700   4194276         4      0.00         4

 

06:44:02 PM     IFACE   rxpck/s   txpck/s   rxbyt/s   txbyt/s   rxcmp/s   txcmp/s  rxmcst/s

06:44:04 PM        lo      0.00      0.00      0.00      0.00      0.00      0.00      0.00

06:44:04 PM      eth0     13.00     12.50   1062.00   1815.50      0.00      0.00      0.00

06:44:04 PM      eth1      2.00      0.00    207.50      0.00      0.00      0.00      0.00

 

06:44:02 PM kbmemfree kbmemused  %memused kbbuffers  kbcached kbswpfree kbswpused  %swpused  kbswpcad

06:44:04 PM     25324   4066232     99.38    150104   3112700   4194276         4      0.00         4

 

06:44:04 PM     IFACE   rxpck/s   txpck/s   rxbyt/s   txbyt/s   rxcmp/s   txcmp/s  rxmcst/s

06:44:06 PM        lo     14.57     14.57   1062.81   1062.81      0.00      0.00      0.00

06:44:06 PM      eth0     30.65     29.65   2592.46   4135.18      0.00      0.00      0.00

06:44:06 PM      eth1      0.00      0.00      0.00      0.00      0.00      0.00      0.00

 

06:44:04 PM kbmemfree kbmemused  %memused kbbuffers  kbcached kbswpfree kbswpused  %swpused  kbswpcad

06:44:06 PM     25320   4066236     99.38    150104   3112700   4194276         4      0.00         4

 

06:44:06 PM     IFACE   rxpck/s   txpck/s   rxbyt/s   txbyt/s   rxcmp/s   txcmp/s  rxmcst/s

06:44:08 PM        lo      0.00      0.00      0.00      0.00      0.00      0.00      0.00

06:44:08 PM      eth0      1.50      1.50    105.00    457.00      0.00      0.00      0.00

06:44:08 PM      eth1      0.50      0.00     32.00      0.00      0.00      0.00      0.00

 

06:44:06 PM kbmemfree kbmemused  %memused kbbuffers  kbcached kbswpfree kbswpused  %swpused  kbswpcad

06:44:08 PM     25312   4066244     99.38    150116   3112696   4194276         4      0.00         4

 

 

 

 

[root@allenlinux root]# vmstat 2 100

##############

#display system performace every 2 seconds and keep 10 times.

procs                      memory      swap          io     system         cpu

 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa

 0  0      4  25776 149872 3112600    0    0     1     0    1     1  1  1  1  0

 0  0      4  25772 149872 3112600    0    0     0     0  176   353  0  1 99  0

 0  0      4  25776 149872 3112600    0    0     0     0  173   382  0  1 99  0

 0  0      4  25756 149884 3112600    0    0     0    86  200   384  4  3 94  0

 0  0      4  25776 149884 3112600    0    0     0     0  191   371  6  1 92  0

 1  0      4  25776 149892 3112592    0    0     0     6  235   416  0  1 99  0

 

 

 

 

 

 

 

阅读(700) | 评论(0) | 转发(0) |
0

上一篇:PC硬件参数

下一篇:GRUB Restore DIARY

给主人留下些什么吧!~~