进入www.iozone.org的官网,下载安装包,安装包的格式有很多,rpm,tar,gz,bz等

这里讲下tar包的安装,

#cd 版本目录/src/current/

#make linux

这个时候就看到iozone文件生成了,可以直接运行。

./iozone -a -n 4g -g 4g -i 0 -i 1 -i 5 -f /sde/iozone -Rb ./iozone.xls

注意:

1,  写测试文件时,由于文件小,内存足够,不存在数据刷新到硬盘的操作,数据被写到页高速缓存即返回;

2,  读测试文件时,由于数据已在高速缓存,亦可直接返回

所以当测试文件比机器内存小的时候,读写效率相当高,根本没经过磁盘一级,不能真正反应磁盘性能。提议测试文件的大小一般设置为内存的1到1.5倍。

Usage: iozone [-s filesize_Kb] [-r record_size_Kb] [-f [path]filename] [-h]

[-i test] [-E] [-p] [-a] [-A] [-z] [-Z] [-m] [-M] [-t children]

[-l min_number_procs] [-u max_number_procs] [-v] [-R] [-x] [-o]

[-d microseconds] [-F path1 path2...] [-V pattern] [-j stride]

[-T] [-C] [-B] [-D] [-G] [-I] [-H depth] [-k depth] [-U mount_point]

[-S cache_size] [-O] [-L cacheline_size] [-K] [-g maxfilesize_Kb]

[-n minfilesize_Kb] [-N] [-Q] [-P start_cpu] [-e] [-c] [-b Excel.xls]

[-J milliseconds] [-X write_telemetry_filename] [-w] [-W]

[-Y read_telemetry_filename] [-y minrecsize_Kb] [-q maxrecsize_Kb]

[-+u] [-+m cluster_filename] [-+d] [-+x multiplier] [-+p # ]

[-+r] [-+t] [-+X] [-+Z] [-+w percent dedupable] [-+y percent_interior_dedup]

[-+C percent_dedup_within]

-a  Auto mode

-A  Auto2 mode

-b Filename  Create Excel worksheet file

-B  Use mmap() files

-c  Include close in the timing calculations

-C  Show bytes transferred by each child in throughput testing

-d #  Microsecond delay out of barrier

-D  Use msync(MS_ASYNC) on mmap files

-e  Include flush (fsync,fflush) in the timing calculations

-E  Run extension tests

-f filename  to use

-F filenames  for each process/thread in throughput test

-g #  Set maximum file size (in Kbytes) for auto mode (or #m or #g)

-G  Use msync(MS_SYNC) on mmap files

-h  help

-H #  Use POSIX async I/O with # async operations

-i #  Test to run (0=write/rewrite, 1=read/re-read, 2=random-read/write

3=Read-backwards, 4=Re-write-record, 5=stride-read, 6=fwrite/re-fwrite

7=fread/Re-fread, 8=random_mix, 9=pwrite/Re-pwrite, 10=pread/Re-pread

11=pwritev/Re-pwritev, 12=preadv/Re-preadv)

-I  Use VxFS VX_DIRECT, O_DIRECT,or O_DIRECTIO for all file operations

-j #  Set stride of file accesses to (# * record size)

-J #  milliseconds of compute cycle before each I/O operation

-k #  Use POSIX async I/O (no bcopy) with # async operations

-K  Create jitter in the access pattern for readers

-l #  Lower limit on number of processes to run

-L #  Set processor cache line size to value (in bytes)

-m  Use multiple buffers

-M  Report uname -a output

-n #  Set minimum file size (in Kbytes) for auto mode (or #m or #g)

-N  Report results in microseconds per operation

-o  Writes are synch (O_SYNC)

-O  Give results in ops/sec.

-p  Purge on

-P #  Bind processes/threads to processors, starting with this cpu

-q #  Set maximum record size (in Kbytes) for auto mode (or #m or #g)

-Q  Create offset/latency files

-r #  record size in Kb

or -r #k .. size in Kb

or -r #m .. size in Mb

or -r #g .. size in Gb

-R  Generate Excel report

-s #  file size in Kb

or -s #k .. size in Kb

or -s #m .. size in Mb

or -s #g .. size in Gb

-S #  Set processor cache size to value (in Kbytes)

-t #  Number of threads or processes to use in throughput test

-T  Use POSIX pthreads for throughput tests

-u #  Upper limit on number of processes to run

-U  Mount point to remount between tests

-v  version information

-V #  Verify data pattern write/read

-w  Do not unlink temporary file

-W  Lock file when reading or writing

-x  Turn off stone-walling

-X filename  Write telemetry file. Contains lines with (offset reclen compute_time) in ascii

-y #  Set minimum record size (in Kbytes) for auto mode (or #m or #g)

-Y filename  Read  telemetry file. Contains lines with (offset reclen compute_time) in ascii

-z  Used in conjunction with -a to test all possible record sizes

-Z  Enable mixing of mmap I/O and file I/O

-+E Use existing non-Iozone file for read-only testing

-+K Sony special. Manual control of test 8.

-+m  Cluster_filename   Enable Cluster testing

-+d  File I/O diagnostic mode. (To troubleshoot a broken file I/O subsystem)

-+u  Enable CPU utilization output (Experimental)

-+x # Multiplier to use for incrementing file and record sizes

-+p # Percentage of mix to be reads

-+r Enable O_RSYNC|O_SYNC for all testing.

-+t Enable network performance test. Requires -+m

-+n No retests selected.

-+k Use constant aggregate data set size.

-+q Delay in seconds between tests.

-+l Enable record locking mode.

-+L Enable record locking mode, with shared file.

-+B Sequential mixed workload.

-+D Enable O_DSYNC mode.

-+A #  Enable madvise. 0 = normal, 1=random, 2=sequential

3=dontneed, 4=willneed

-+N Do not truncate existing files on sequential writes.

-+S # Dedup-able data is limited to sharing within each numerically

identified file set

-+V Enable shared file. No locking.

-+X Enable short circuit mode for filesystem testing ONLY

ALL Results are NOT valid in this mode.

-+Z Enable old data set compatibility mode. WARNING.. Published

hacks may invalidate these results and generate bogus, high

values for results.

-+w ## Percent of dedup-able data in buffers.

-+y ## Percent of dedup-able within & across files in buffers.

-+C ## Percent of dedup-able within & not across files in buffers.

-+H Hostname    Hostname of the PIT server.

-+P Service     Service  of the PIT server.

-+z Enable latency histogram logging.

Linux编译安装iozone,用iozone测试linux文件系统相关推荐

  1. linux下运行yolo,deepin(linux)编译安装yolo v4测试效果

    # 背景 五一放假的最后一天我也凑了个热闹,试一下新鲜出炉的yolo v4, 由于没有装CUDA和CUDNN,只试了一下在CPU上的速度和效果,电脑环境及编译依赖如下: * deepin 15.11桌 ...

  2. linux编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14

    linux编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14的方法对于 我这个小菜菜来讲是非常的复杂的还好有这篇文章,下面一起来看看吧. 一.使用系统镜像文件配置本地yum源 1 ...

  3. linux编译安装nginx失败怎么办?排错思路及方法

    1.分析: nginx编译安装失败一般会出现在三个方面 编译环境安装不全 安装的时候参数出错 配置文件修改出错 2.编译环境安装不全 如果你的编译环境安装的不全,在你编译安装的时候可能会报错 [roo ...

  4. Linux编译安装qt5.9,Linux CentOS7 安装 Qt 5.9.2

    Linux CentOS7 安装 Qt 5.9.2 参考链接 http://doc.qt.io/qt-5/linux.html sudo yum groupinstall "C Develo ...

  5. linux rsync yum安装,Linux安装yum安装rsync 、Linux编译安装最新版rsync

    Loading... # Linux安装yum安装rsync .Linux编译安装最新版rsync ## 针对CentOS采用 yum 安装 ### 安装 ``` yum install rsync ...

  6. linux libvpx编译安装,linux编译安装时常见错误解决办法

    **configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution** 复 ...

  7. Linux编译安装GCC-5.1.0

    2019独角兽企业重金招聘Python工程师标准>>> Linux编译安装GCC-5.1.0 Linux下编写C/C++程序自然缺不了一个优秀的编译器,Linux下比较常见的自然是G ...

  8. linux游戏编译,Linux编译安装开源3D赛车游戏Vdrift

    Linux编译安装开源3D赛车游戏Vdrift,跟大家分享 首先,去http://vdrift.net/ 下载源代码包,我下载的version是2009-6-15 然后解压vdrift-2009-06 ...

  9. linux编译安装网卡驱动详解(网卡丢包)

    安装编译网卡驱动 这两天发现一台server丢包很严重,使用cacti监控工具时能获得snmp包,时常又不能,丢包严重,导致使用ssh工具连接过慢,连接数据库访问超时,此时要先确定是中病毒还是网卡问题 ...

  10. linux编译安装的报错,linux编译安装时常见错误解决办法

    This article is post on https://coderwall.com/p/ggmpfa 原文链接:http://www.bkjia.com/PHPjc/1008013.html ...

最新文章

  1. 【青少年编程】【三级】猜数字
  2. K近邻(KNN)算法是基于实例的算法,如果训练样本数量庞大,预测的时候挨个计算距离效率会很低下,如何破解?
  3. 现在c++都转go了
  4. 转:python 实现GUI(图形用户界面)编程
  5. go语言for循环中修改临时变量无效
  6. 【AtCoder】ARC078
  7. 请重视!服务器这几个“异常”可能性预警
  8. Windows PowerShell 语言快速参考
  9. 安装nginx、drizzle和lua
  10. CentOS 6.0 + Zabbix 1.8.5 服务器端安装
  11. uint8_t / uint16_t / uint32_t /uint64_t
  12. Winson.Framework 1.5发布!
  13. 如何备份linux磁盘空间,请问怎么备份整个硬盘又快又省空间?
  14. 后端系统开发利器,gflags概述
  15. android全局屏幕自动旋转,如何在Android中全局强制屏幕方向?
  16. Unity 按钮反馈 果冻弹跳
  17. 分组转发和路由选择基础
  18. elasticsearch + ik
  19. 车辆共享车载单元 (OBU )全国产化电子元件推荐方案
  20. SpeedMent入门集成SpringBootStream常见操作

热门文章

  1. 2018看得见的未来:数字化医疗发展三大看点
  2. 2015计算机二级office真题,2015计算机二级office题库(含答案)
  3. jTopo的基本使用
  4. 机器人仿真论文阅读1
  5. R语言——双因素方差分析
  6. RK3288-安卓5.1-AP6212-WIFI模组调试
  7. 通达OA2017 工作流设计中“退回”功能的升级测试(图文)
  8. JavaScript打开新页面的两种方式:当前页面打开和新页面跳转
  9. 深入理解“智慧城市”
  10. 华硕aura完全卸载_这把键盘,或是顶级光轴键盘!华硕TUF GAMING K7光轴机械键盘...