![iozone 运行失败并出现“没有此类文件或目录”错误](https://linux22.com/image/54913/iozone%20%E8%BF%90%E8%A1%8C%E5%A4%B1%E8%B4%A5%E5%B9%B6%E5%87%BA%E7%8E%B0%E2%80%9C%E6%B2%A1%E6%9C%89%E6%AD%A4%E7%B1%BB%E6%96%87%E4%BB%B6%E6%88%96%E7%9B%AE%E5%BD%95%E2%80%9D%E9%94%99%E8%AF%AF.png)
我想开始使用 iozone 在 ubuntu 虚拟机上对 aufs 文件系统进行基准测试。
我尝试按照手册使用相关参数,但在大多数运行中我不断收到奇怪的错误。我用“root”用户编写了这个命令:
iozone -R -b bench_u01_test.xls -r 8k -s 1g -l 2 -u 5
但 iozone 输出是:
iozone -R -b bench_u01_test.xls -r 8k -s 1g -l 2 -u 5 Iozone:
Performance Test of File I/O
Version $Revision: 3.397 $ Compiled for 64 bit mode. Build: linux-AMD64
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
Al Slater, Scott Rhine, Mike Wisner, Ken Goss
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer.
Ben England.
Run began: Sun Aug 31 08:26:29 2014
Excel chart generation enabled
Record Size 8 KB File size set to 1048576 KB
Command line used: iozone -R -b bench_u01_test.xls -r 8k -s 1g -l 2 -u 5
Output is in Kbytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 Kbytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
Min process = 2 Max process = 5
Throughput test with 2 processes
Each process writes a 1048576 Kbyte file in 8 Kbyte records
Error writing block 48922, fd= 3 write: No space left on device
Error writing block 94869, fd= 3 write: No space left on device
Children see throughput for 2 initial writers = 0.00 KB/sec
Parent sees throughput for 2 initial writers = 0.00 KB/sec
Min throughput per process = 0.00 KB/sec
Max throughput
per process = 0.00 KB/sec
Avg throughput per process = 0.00 KB/sec
Min xfer = 0.00 KB
Child 0 iozone.DUMMY.0: No such file or directory
Child 1 iozone.DUMMY.1: No such file or directory
. . .
谁能就我做错了什么提供一些建议?
答案1
从您的命令来看,您似乎正在测试当前工作目录,并且只是耗尽了可用磁盘空间。使用此命令,您将需要最多 5 GB 的可用空间。您有 -u 5 (最多五个进程),每个进程都会有一个大小为 1 GB 的文件,来自您使用的 -s 1g 选项。该故障表明您一开始仅使用了约 1.1 GB 的空间,并且已经耗尽。