FreeBSD iostat - 如何判断是否存在问题? [英] FreeBSD iostat - How to tell if there's a problem?

查看:337
本文介绍了FreeBSD iostat - 如何判断是否存在问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行了一个FreeBSD NFS服务器,最近我在整个集群中遇到了一些奇怪的问题(从NFS共享加载文件时,Apache服务器挂起了lockf状态)。

I run a FreeBSD NFS server and recently I've been having odd issues throughout the cluster (the Apache servers are hanging in "lockf" state when loading files from the NFS share, etc).

我对此很新,所以我的问题是如何判断服务器的IO是否过载?

I'm fairly new to this, so my question is how can I tell if a server's IO is getting overloaded?

这是我的当前iostat:

Here is my current iostat:


[root@host ~]# iostat 1 10  
      tty           mfid0             cpu  
 tin tout  KB/t tps  MB/s  us ni sy in id  
   0   55 16.03 194  3.04   0  0  5  0 95  
   0  490 21.73 238  5.05   0  0  5  0 95  
   0   43 20.09 402  7.88   0  0  7  0 93  
   0  407 12.58 531  6.53   0  0  5  0 94  
   0   43 15.69 416  6.37   0  0  8  1 91  
   0  437 30.23 287  8.46   0  0  9  1 91  
   0   43 23.50 109  2.50   0  0  2  0 98  
   0  273 11.58  76  0.86   0  0  2  0 98  
   0   43 15.70 243  3.72   0  0  5  0 95  
   0  320 20.35 248  4.92   0  0  3  0 96  
[root@host ~]#

是否有任何值看起来很高?有没有其他测试可以看看系统是否有效地处理负载?

Do any of the values seem high? Are there any other tests I can do to see if the system is handling the load efficiently?

谢谢!

推荐答案

尝试使用 gstat systat -iostat 但它只会显示给你(如iostat)IO使用不是导致它的原因。您可能对尝试更感兴趣:
$
procstat -f $ ApachePIDinLockfState


ktrace -p $ ApachePIDinLockfState kdump -R |少。完成后记得运行 ktrace -C

Try using gstat or systat -iostat but it will only show you (like iostat) IO usage not what causes it. You probably are more interested in trying:
procstat -f $ApachePIDinLockfState
or
ktrace -p $ApachePIDinLockfState and kdump -R | less. Remeber to run ktrace -C when you have finished.

这篇关于FreeBSD iostat - 如何判断是否存在问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆