Linux 测试 NFS 性能的正确方法是什么
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14368223/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
what is the proper way to test NFS performance
提问by zee
I'm given a project where the only objective is to monitor a network's NFS performance. I know there's a bunch of open source tools out there, but still I would like to get the basic idea behind in order to better tweak those around. So the network consists of some hundred linux systems and some thousand accounts with NFS mounted home dir's; the script can be pushed out to every station, server is also possible, if that way does any good. Afaik, essentially all the script should do is a few dd's and watch the IO rate over NFS.
And my question is just what is the proper way of doing so? Do I add a new account to the system solely to run the scripts?
Some general thoughts are greatly appreciated :)
我得到了一个项目,其中唯一的目标是监控网络的 NFS 性能。我知道那里有很多开源工具,但我仍然想了解背后的基本思想,以便更好地调整这些工具。因此,网络由数百个 linux 系统和数千个安装了 NFS 主目录的帐户组成;脚本可以推送到每个站点,服务器也可以,如果这样有好处的话。Afaik,基本上所有脚本应该做的只是一些 dd 并观察 NFS 上的 IO 率。
我的问题是这样做的正确方法是什么?我是否只为了运行脚本而向系统添加新帐户?
非常感谢一些一般性想法:)
采纳答案by Garry
Bonnie
A classical performances evaluation tool tests. The main program tests database type access to a single file (or a set of files if you wish to test more than 1G of storage), and it tests creation, reading, and deleting of small files which can simulate the usage of programs such as Squid, INN, or Maildir format email.
一个经典的性能评估工具测试。主程序测试对单个文件(或一组文件,如果你想测试超过 1G 的存储)的数据库类型访问,它测试小文件的创建、读取和删除,可以模拟程序的使用,例如Squid、INN 或 Maildir 格式的电子邮件。
Relevance to NFS:: Performance testing, workload
与 NFS 的相关性:性能测试、工作负载
DBench
Dbench was written to allow independent developers to debug and test SAMBA. It is heavily inspired of the original SAMBA tool : NetBench
编写 Dbench 是为了允许独立开发人员调试和测试 SAMBA。它深受原始 SAMBA 工具的启发:NetBench
As NetBench it allow to:
作为 NetBench,它允许:
torture the file system improve the network load independently of the disk IO Measure performances
折磨文件系统 独立于磁盘 IO 改善网络负载 测量性能
But it does not need as much hardware resources as NetBench to run.
但是它不需要像 NetBench 那么多的硬件资源来运行。
Relevance to NFS::
与 NFS 的相关性::
IOZone
Performance tests suite. POSIX and 64 bits compliant. This tests is the file system test from the L.S.E. Main features
性能测试套件。POSIX 和 64 位兼容。此测试是来自 LSE 主要功能的文件系统测试
POSIX async I/O, Mmap() file I/O, Normal file I/O Single stream measurement, Multiple stream measurement, Distributed file server measurements (Cluster) POSIX pthreads, Multi-process measurement Selectable measurements with fsync, O_SYNC Latency plots
POSIX 异步 I/O、Mmap() 文件 I/O、普通文件 I/O 单流测量、多流测量、分布式文件服务器测量(集群) POSIX pthreads、多进程测量 带有 fsync 的可选测量、O_SYNC 延迟图
Relevance to NFS:: Performance testing. Good for exercising a given mount point under various load conditions.
与 NFS 的相关性:性能测试。适合在各种负载条件下运行给定的挂载点。
ful detail can be found here . http://wiki.linux-nfs.org/wiki/index.php/Testing_tools
在这里可以找到完整的细节。http://wiki.linux-nfs.org/wiki/index.php/Testing_tools