测试环境:
CPU:Kunpeng 920 8Core
MEM:16G
Storage:200G
OS:openEuler 20.03 (LTS-SP3)
1 文件系统性能测试工具——IOZone
1.1 编译安装——IOZone
- 安装IOZone环境
yum install gcc -y
- 源码编译安装
下载源码:
wget http://www.iozone.org/src/current/iozone3_490.tar
解压编译:
tar-xvf iozone3_490.tar
cd iozone3_490/src/current
make linux
- 添加环境变量(可选)
vi /etc/profile
exportPATH=$PATH:/root/iozone3_490/src/current
source /etc/profile
1.2 验证与运行——IOZone
- 执行如下命令,查看IOZone版本
./iozone -v
或
iozone -v
返回内容如下所示,表示安装已经完成:
[root@controller current]# ./iozone -v'Iozone' Filesystem Benchmark Program
Version $Revision:3.489 $
Compiled for64 bit mode.
Original Author: William Norcott ([email protected])4 Dunlap Drive
Nashua, NH 03060
Enhancements: Don Capps ([email protected])7417 Crenshaw
Plano, TX 75025
Copyright 1991, 1992, 1994, 1998, 1999, 2002 William D. Norcott
License to freely use and distribute this software is hereby granted
by the author, subject to the condition that this copyright notice
remains intact. The author retains the exclusive right to publish
derivative works based on this work, including, but not limited to,
revised versions of this work
Other contributors:
Don Capps (Network Appliance) [email protected]
- 运行
参数说明:
-a
用来使用全自动模式。生成包括所有测试操作的报告,使用的块 大小从4k到16M,文件大小从64k到512M。
-A
这种版本的自动模式提供更加全面的测试但是消耗更多时间。参数–a在文件不小于32MB时将自动停止使用低于64K的块 大小测试。这节省了许多时间。而参数–A则告诉Iozone你不介意等待,即使在文件非常大时也希望进行小块的测试。
注意:不推荐在Iozone3.61版中使用这个参数。使用–az –i 0 –i 1替代。
-b filename
Iozone输出结果时将创建一个兼容Excel的二进制格式的文件。
-B
使用mmap()文件。这将使用mmap()接口来创建并访问所有测试用的临时文件。一些应用程序倾向于将文件当作内存的一块来看待。这些应用程序对文件执行mmap()调用,然后就可以以读写内存的方式访问那个块来完成文件I/O。
-c
计算时间时将close()包括进来。This is useful only if you suspect that close() is broken in the operating system currently under test. 对于NFS版本3测试而言这将会很有用,同时它也能帮助我们识别nfs3_commit 是否正常工作。
-C
显示吞吐量测试中每个客户传输的字节数。如果你的操作系统在文件I/O或进程管理方面存在饥饿问题时这将派上用场。
-d#
穿过“壁垒”时微秒级的延迟。在吞吐量测试中所有线程或进程在执行测试前都必须挂起在一道“壁垒”之前。通常来说,所有线程或进程在同一时间被释放。这个参数允许在释放每个进程或线程之间有一定的延迟(微秒级)。Microsecond delay out of barrier. During the throughput tests all threads or processes are forced to a barrier before beginning the test.
-D
对mmap文件使用msync(MS_ASYNC) 。这告诉操作系统在mmap空间的所有数据需要被异步地写到磁盘上。
-e
计算时间时将flush (fsync,fflush) 包括进来。
-E
用来进行一些扩展的测试。只在一些平台上可用。使用pread接口。
-f filename
用来指定测试时使用的临时文件的文件名。当使用unmount参数时这将很有用。测试时在每个测试之间进行unmount的话,测试使用的临时文件在一个可以被卸载的文件夹中是很有必要的。卸载当前工作目录是不可能的,因为Iozone进程运行于此。
-F filename filename filename …
指定吞吐量测试中每个临时文件的文件名。文件名的数量应该和指定的进程或线程数相同。
-g#
设置自动模式可使用的最大文件大小(Kbytes)。
-G
对mmap文件使用msync(MS_SYNC)。这告诉操作系统在mmap空间的所有数据需要被同步地写到磁盘上。
-h
显示帮助。
-H#
使用POSIX异步I/O接口中的#号异步操作。Iozone使用POSIX 异步I/O接口,并使用bcopy 从异步缓存拷贝回应用程序缓存。一些版本的MSC NASTRAN就是这么进行I/O操作的。应用程序使用这一技术以便异步I/O可以在一个库中实现,而不需要更改程序内模。
This technique is used by applications so that the async I/O may be performed in a library and requires no changes to the applications internal model.
-i#
用来指定运行哪个测试。 (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). 总是需要先进行0号测试以便后面的测试有文件可以测试。也支持使用-i # -i # -i # 以便可以进行多个测试。-I
对所有文件操作使用VxFS VX_DIRECT。告诉VXFS文件系统所有对文件的操作将跨过缓存直接在磁盘上进行。
-j#
设置访问文件的跨度为 (# * 块 大小). Stride read测试将使用这个跨度来读块。-J# (毫秒级)
在每个I/O操作之前产生指定毫秒的计算延迟。看 -X 和-Y来获取控制计算延迟的其他参数。
-k#
Use POSIX async I/O (no bcopy) with # async operations. Iozone will use POSIX async I/O and will not perform any extra bcopys. The buffers used by Iozone will be handed to the async I/O system call directly.-K
在普通测试时生成一些随机访问。
-l#
Set the lower limit on number of processes to run. When running throughput tests this option allows the user to specify the least number of processes or threads to start. This option should be used in conjunction with the -u option.
-L#
Set processor cache line size to value (in bytes). Tells Iozone the processor cache line size. This is used internally to help speed up the test.
-m
Tells Iozone to use multiple buffers internally. Some applications read into a single buffer over and over. Others have an array of buffers. This option allows both types of applications to be simulated. Iozone’s default behavior is to re-use internal buffers. This option allows one to override the default and to use multiple internal buffers.
-M
Iozone will call uname() and will put the string in the output file.
-n#
为自动模式设置最小文件大小(Kbytes)。
-N
报告结果以毫秒每操作的方式显示。
-o
写操作是同步写到磁盘的。 (O_SYNC). Iozone 会以O_SYNC 标志打开文件。这强制所有写操作完全写入磁盘后才返回测试。
-O
报告结果以操作每秒的方式显示。
-p
This purges the processor cache before each file operation. Iozone will allocate another internal buffer that is aligned to the same processor cache boundary and is of a size that matches the processor cache. It will zero fill this alternate buffer before beginning each test. This will purge the processor cache and allow one to see the memory subsystem without the acceleration due to the processor cache.
-P#
Bind processes/threads to processors, starting with this cpu #. Only available on some platforms. The first sub process or thread will begin on the specified processor. Future processes or threads will be placed on the next processor. Once the total number of cpus is exceeded then future processes or threads will be placed in a round robin fashion.-q#
设置自动模式下使用的最大块大小(Kbytes) 。也可以通过-q #k ( Kbytes) 或 -q #m ( Mbytes) 或 -q #g ( Gbytes)。设置最小块大小见 –y 。-Q
Create offset/latency files. Iozone will create latency versus offset data files that can be imported with a graphics package and plotted. This is useful for finding if certain offsets have very high latencies. Such as the point where UFS will allocate its first indirect block. One can see from the data the impacts of the extent allocations for extent based filesystems with this option.
-r#
指定测试块大小,K字节。也可以通过-r #k (Kbytes) 或 -r #m (Mbytes) 或 -r #g (Gbytes).-R
生成Excel报告. Iozone将生成一个兼容Excel的标准输出报告。这个文件可以使用Microsoft Excel打开,可以创建一个文件系统性能的图表。注意:3D图表是面向列的。画图时你需要选择这项因为Excel默认处理面向行的数据。
-s#
指定测试文件大小,K字节。也可以通过-s #k (Kbytes) 或 -s #m (Mbytes) 或 -s #g (Gbytes).-S#
Set processor cache size to value (in Kbytes). This tells Iozone the size of the processor cache. It is used internally for buffer alignment and for the purge functionality.
-t#
以吞吐量模式运行Iozone。这一选项允许用户指定测试时使用多少个线程或者进程。
-T
吞吐量测试时使用POSIX线程。仅在兼容POSIX线程的平台上可用。
-u#
Set the upper limit on number of processes to run. When running throughput tests this option allows the user to specify the greatest number of processes or threads to start. This option should be used in conjunction with the -l option.
-U mountpoint
在测试之间卸载并重新挂载挂载点。这保证了缓存cache不包含任何测试过的文件。
-v
显示Iozone的版本号。
-V#
Specify a pattern that is to be written to the temporary file and validated foraccuracyin each of the read tests.
-w
当临时文件使用完毕时不删除它们。把它们留在文件系统中。
-W
读或写时锁文件。
-x
关闭“stone-walling”. Stonewalling 是 Iozone内部使用的一种技术。它是在进行吞吐量测试时使用的。程序启动所有线程或进程然后将它们暂停在“壁垒”前。一旦它们都做好准备工作,它们将被同时释放。当其中任何一个线程或进程完成工作,整个测试就终止了并计算到达这个点时所有I/O的吞吐量。这保证了整个测试进行时所有的进程和线程都是并行的。这个标志位允许取消 stonewalling并看看会发生什么。
-X filename
Use this fileforwrite telemetry information. The file contains triplets of information: Byte offset, size of transfer, compute delay in milliseconds. This option is useful if one has taken a system call trace of the application that is of interest. This allows Iozone to replicate the I/O operations that this specific application generates and provide benchmark results for this file behavior. (if column1 contains # then the line is a comment)-y#
设置自动模式下使用的最小块大小(Kbytes) 。也可以通过-y #k ( Kbytes) 或 -y #m ( Mbytes) 或 -y #g ( Gbytes)。设置最大块大小见 –y 。-Y filename
Use this fileforread telemetry information. The file contains triplets of information: Byte offset, size of transfer, compute delay in milliseconds. This option is useful if one has taken a system call trace of the application that is of interest. This allows Iozone to replicate the I/O operations that this specific application generates and provide benchmark results for this file behavior. (if column1 contains # then the line is a comment)-z
Used in conjunction with -a to test all possible record sizes. Normally Iozone omits testing of small record sizes for very large files when used in full automatic mode. This option forces Iozone to include the small record sizes in the automatic tests also.
-Z
启动混合 mmap I/O 和文件 I/O.
-+m filename
Use this file to obtain the configuration information of the clients for cluster testing. The file contains one line for each client. Each line has three fields. The fields are space delimited. A # sign in column zero is a comment line. The first field is the name of the client. The second field is the path, on the client, for the working directory where Iozone will execute. The third field is the path, on the client, for the executable Iozone.
To use this option one must be able to execute commands on the clients without being challenged for a password. Iozone will start remote execution by using “rsh”.
-+u
Enable CPU utilization mode.
-+d
启动诊断模式。在这一模式下每个字节都将被验证。这在怀疑I/O子系统出错时有用。
-+p percent_read
Set the percentage of the thread/processes that will perform random read testing. Only valid in throughput mode and with more than 1 process/thread.
-+r
Enable O_RSYNC and O_SYNC for all I/O testing.
-+t
启动网络性能测试。需要 -+m
-+A
Enable madvise. 0= normal, 1=random, 2=sequential, 3=dontneed, 4=willneed. For use with options that activate mmap()file I/O. See: -B
1)自动测试示例
iozone -a
返回结果:
[root@controller ~]# iozone -a
Iozone: Performance Test of File I/O
Version $Revision:3.489 $
Compiled for64 bit mode.
Build: linux
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,
Vangel Bojaxhi, Ben England, Vikentsi Lapa,
Alexey Skidanov, Sudhir Kumar.
Run began: Tue Jan 315:03:49 2023
Auto Mode
Command line used: iozone -a
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.
random random bkwd record stride
kB reclen write rewrite read reread readwriteread rewrite read fwrite frewrite fread freread
6441105556256126740181525389653395889222786282203800227862828924452358717320306926895803958892648167976135884365735102710039758603073203069266289930227273791156316529945647862772930498897864161780008642102542740627940539710039740181522662899379115637383583588436379115632030697100397643222038004564786642102510402178108215244274062289244545647864274062489794871003973791156642102564642467108302272710821524159728851040217842740622892445220380033636123958892456478620679797940539128415046593199360413595847174343867787292086124536423036502298583930537742905056305377447174341288213208447592534889281747671753257994233807329761741359585122535426746142674613445772532579912816246490758479045122535672722579177845325799386778753257996114306493421647174344104338672722512832290505667272256812590854812491295736727225426746168125906045455532579958479044934216672722512864327748675823128036304114702041056714067272254934216717687258479047476717747671753257997582312128128296932561143061172061412542043107793075847904426746158479044717434560374751225354104338912957325641683493360551145728954929815413286432360563159869351118935459763316006332627942641684819184256823505435687020597167870731326107548484091144962995320671481918449072844998665521725969360612561632070595971678610754810245071796510765952344197489707313285349226249745639872049298158534922256323756894881520262497459868433986843382086775117791888817285349226891544689154453471687314033256643879045911451582719161156978311569783802463452172598534922757192367190467314033521725991145152561283454704106515981024507111569783112074947120034511779168915446398720693606194348685428265951850725625631975096398720120909111345445011091721671904654282656107548524273461075487314033568702091145155124172377040004854494470576032942289472665014345918837360163877684360433536286974494470527889251282845081631973963950187115451539832353313144927617601863655662315384786556623153983237758090512163822466866599765711328992598839497978718436086873852833672110226086873762044065510877435738512324742616106943367309196914579010044089963836966525581108060110434519839497982657295624545104345195126450197641168344486659971004408911374040104345196571132127974411043451985623408665997562454582657295121284532414106943368844453113740401249949088081765453155104345199344779741008083949796018636109116945122563388236754017094683841194335712427157657113258070597647578682161660868737647578580705910485468512512368473369317111168344412499490122150976228097582280463197395384786631973967360265822804981456910244185784039374264531485556482941464993284101380825138492073764854363116836841194810640544489810248298509164799796355328702014964026995417427519465163272415885083559382056901625813392748505510241640335698822754700869383267158662601775536854448989142007752439473694667524394655914786801081024324972145112490917208671845789510158253956977059585641148983988409158183918854200263647468822754102464519465112492426769975510230845117733011099003252454041347205312173747859327493205606093831103541661024128465424811773301914200710557785116141181055778572207901263947911398360819954286801087319232839179210242564550690994652790457361066262812639479854200264799791053189610134284595030973192327755368114898391024512430010280610389765601123133511234875475243946489770839179274720335277632775536859918159855234102410243722435725739489889411249242611645609591751653633075917516552901157820876830356562311587508502048418963143367537491188657542214204968313637937156813871422382828835616193136379451910155176662048829848906202989616736071356486359119534596954031346603549565944256260825868220620747175297082048163937075952526069904748749118860020577261116717153100372485754221692286868022616780783922849320483251473541220498070420519308497104018831024067249601021256195275828847999524849810664401698464610204864550352512635867791111598530371170600611900619739360615399510994429096212818678404787485310289741204812854894571272949386434741024067211966935111296597903836146384641321923589032799111033806713896105162048256500927511626784815908810339282124166868987113741915012729493123453067183386815908878748531078046320485124540600100372488261095108348541218766379403677451329103517421038930271120167846081745132910084382204810244293237843137687491189218589127294936759439537608259910037643611703628382215616340344871361820482048418856573682389578367993279111058022628008357350126608629593717266495567562855631703010084382409641927548355263847186995153230402357129030803354915392341436702803261295299415344291644904602409682860543564235360411546850558623406447790815217395681522960136635469892517808157289036724530409616398807887705837015611862094586036757515892643970010190895790676774604077355007703572390382034096325231694119072647542289904296197512841058000368369271379016795933748770583869952368615029614850409664578484612718238799880097512841109949912160107781682816058868102394869818158977903771858071020906240961285744227126806887599002104512771167264711940367818944715807673104449239062041882918076839729000323409625652364781147768869785641016075812151506950316166826781268068812919082717380577150287499487100655094096512455119288885658142867964183011841605733929759801701160170312049235633988964421156964419956666340961024444751075027628062616975128411973655650061767483039207748941462961404796430059691675291004434096204841791976836927873047010018551115084426254490663877872250937816828727712183771316490793853104640964096417919766826788677553105281341104242561869185835938643970061055636007355664905658438797998800819241848808350688043832874681287352812627844633393619398660037150453255981305996345312695155399819283041006577299360815786901200591511248877225019826680956458476645237920519829757817366455193819216418826884281036621897759196080774117134785610860810266427766307472247987627351662828481424938192325299316113593206827153706146987522769502650652259013839076942704283931048482198690258780546898192645713476125272227823601905202711070196112367307019632165524821045065998598729558162624858295901768192128581008912778810757021596035781157358911457807747469816285735111600869427042893434071600608705708819225656264661288423077512398934340118408121043796067308611502521196738787353127806224873280369042498819251247159839450378783251892270491192712878683917432659124320381287940058298056480761708622789134818192102446053657663074762058592146761187354770803866983962105989501165208662395046154564737997690927508192204845559037528746786298993628221178396067639866788039887434498939425979968648687968790948943642819240964282758672032970614698291831886518560324636278267715558676070876943036804714345789745319004819281923910378659014576070879916786100384716578789587265056579675287898531653557817365888754609993316384418380183146524449505142731193221456250409833113343989333327425730123203052190449387546796311638482917305568690658430926370107575260245868624969299680943354631165126098502085559493236481253163841641923067846654663263870288277053355695695760680491038245851911536673863731073367426207166635163843253074221135332668148356820923756422092728756034479140651265371728801131187654566553571685220916384645914504133518697077327724292693894381092900768324521651590681153819476188983419965144316990218163841285910434132565687346686742687989527371096738060680491640159079722769267872968315671636477317740163842565795294132668057477794741966288994051053042070317031609428678727237207979764926171080736980986163845124937877106182847129459733727378136437854726691356312431601735691159231706110676683789173302291638410244517212826670070744136963302750884369838246627520107009581253591951360595785049679798170533551638420484473107775369370744136798654688171568837836772523977544410598632532304559318626775862697177916384409642084816947813690383950900276090637640991764224978380622940614655424275665340626499170649581638481924003043645325664660087820757743652460149365988204631624167254636665448697815159145046079322163841638436111495257880581589460275986005474536837158036145184495573436153020995239439591908959318623276864570669512715461727351671124167212823108426206970650168475396832386936245095425126923246696888232768128588507713100895739881573765777570806110217397111312168910207227236909240095478156809705743886132768256576292812750851718304371815417330935105222017166936167776137309491708930377649977243233729474932768512495958110529456739006274067897838959829354167938841345092673603805923376658522572321807293200327681024463744183718457227236717629275054837222299714681211644600744409957376665900742679556370558203276820484558686795189169748957149786718116670882066721781108933241188938253401715314360684804669452873276840964368438710469568696106930578684804667505046594388983758296830234901740474617963330656484864327688192412533766319366325778658396363135736455319612478381066728329226518484853385115921334605810032768163843629536557928259949456072823609544656751205795491565643458408095859735455929155529085748706655366458655871276494770355586799060675694310563367690877016960646697999797450919945001697875669600256553612859851301302874373207447172510734205810939192714287517246910718507294652309837162723842872696316553625658913591341534973291387311009737258111066470724319617169346731918573717907777698732992074201476553651250373649997812722473072898757467518834738973826801368177674362055952468601630770583217197677655361024468421080482367215248698744971954167452334722548911941968720012857211635963186714919272729016553620484609353774941271336076884717702118172144906774428112762066799733518522051631116481623684017465536409642572636995095667036867278366711409685381863949171061148711437612488751749525046592459658661465536819242789346790494632342163602926428267662519162973459289301952030447624454758982628036763466356553616384374984454604486025275600973060765566076018592756667849636257065462922546466765789852550815513107264584518210136212723517070488016979005105364026977499169893726990897984611398928897195021723069813107212859885721298774674131237109971650315310654635692476516995675702197192656299675425715969573339101310722565885103128388207192668700988464241961092719172684591735789273590427485088766949873072977365648131072512505156599568547345080727288373122549058901703887414304709731760761162946179197726567473314651310721024466698480406807320433716324072923707636896718439612251971723393357543275622271718317672752891310722048457684378321937056401684842268626997460405691118511902618684629049059144616855701480365802131310724096438147369793596770991673309367389536926598668397710540644664022047403854868205670165867444931310728192426571367507046171566616347161395186740358630361396382779660973452348042715476107121613944913107216384372481463127336044939597899860802395889012561819160541257680856423564141103605915372581685626214464589816712995545723492370989906901806103368837045721170520307023308989144798439807246558728159126214412859524171273101473365927300447730005910758556731282817255414726624097357229690075739685674114652621442565914538125572647450890679886873911871096564073458561768590573772527518809754501974211197489616262144512509441610052695728361773126827400390927092771053211482804674032805852986612798074045777444131262144102446822238088343718758170857697205338771626070089811269837369035835654882578812773283777360510262144204846144887778271717023870953267155772695194670015281217003571741685259718509116171132287167714262144409643858746958062640909863962356490324670152767123691071817967092564670548473226166835626769524262144819243013216565432622713561823526419126680699159537719231075637432045481764484858629033562126742621441638440538755865538606912358654445943376645993258516786817247686727742593154181466608632458820125242886457586881287003572568847198587680496510045568705496217177345700011999133789869154727510672428545242881285956816127738197420688727118571031131050320871390871721688471350109759651976563271800667327078524288256592376012910990744115373274687411460111221417378113176735117392350755315274350407439140735501552428851250658371010284273105147286726740133294130307050777153085427162993593509660662577353048723016152428810244594096807230472166367197127733668577679077125324129932277278839562823452489197336685734791352428820484464044778234071375357054464718959775702876944127121870867159285507651451588437099857719286652428840964366079684960466936496665164678522869227476868067105488576864208465595044847016773670671595252428881924332062691006560742675818509628499267363206271763885771463014534122507409833664337716415657524288163843813115572998358654415846401586794561760116083711686663060863214079557388457061052466150945
iozone test complete.
其中IOZone输出的第一组包含标题信息,其中显示有关IOZone实用程序的信息,以及用于生成此报告的所有IOZone选项,如下所示。
Iozone: Performance Test of File I/O
Version $Revision: 3.489 $
Compiled for 64 bit mode.
Build: linux
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,
Vangel Bojaxhi, Ben England, Vikentsi Lapa,
Alexey Skidanov, Sudhir Kumar.
Run began: Tue Jan 3 15:03:49 2023
Auto Mode
Command line used: iozone -a
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.
输出的第二部分包含各种测试的输出值(以每秒为单位),如下所示。
第1列KB:表示用于测试的文件大小。
第2列reclen:表示用于测试的记录长度。
第3列直到最后一列:表示执行的各种测试及其每秒输出值。
random random bkwd record stride
kB reclen write rewrite read reread readwriteread rewrite read fwrite frewrite fread freread
64411055562561267401815253896533958892227862822038002278628289244523587173203069268958039588926481679761358843657351027100397586030732030692662899302272737911563165299456478627729304988978641617800086421025427406279405397100397401815226628993791156373835835884363791156320306971003976432220380045647866421025104021781082152442740622892445456478642740624897948710039737911566421025646424671083022727108215241597288510402178427406228924452203800336361239588924564786206797979405391284150465931993604135958471743438677872920861245364230365022985839305377429050563053774471743412882132084475925348892817476717532579942338073297617413595851225354267461426746134457725325799128162464907584790451225356727225791778453257993867787532579961143064934216471743441043386727225128322905056672722568125908548124912957367272254267461681259060454555325799584790449342166727225128643277486758231280363041147020410567140672722549342167176872584790474767177476717532579975823121281282969325611430611720614125420431077930758479044267461584790447174345603747512253541043389129573256416834933605511457289549298154132864323605631598693511189354597633160063326279426416848191842568235054356870205971678707313261075484840911449629953206714819184490728449986655217259693606125616320705959716786107548102450717965107659523441974897073132853492262497456398720492981585349222563237568948815202624974598684339868433820867751177918888172853492268915446891544534716873140332566438790459114515827191611569783115697838024634521725985349227571923671904673140335217259911451525612834547041065159810245071115697831120749471200345117791689154463987206936061943486854282659518507256256319750963987201209091113454450110917216719046542826561075485242734610754873140335687020911451551241723770400048544944705760329422894726650143459188373601638776843604335362869744944705278892512828450816319739639501871154515398323533131449276176018636556623153847865566231539832377580905121638224668665997657113289925988394979787184360868738528336721102260868737620440655108774357385123247426161069433673091969145790100440899638369665255811080601104345198394979826572956245451043451951264501976411683444866599710044089113740401043451965711321279744110434519856234086659975624545826572951212845324141069433688444531137404012499490880817654531551043451993447797410080839497960186361091169451225633882367540170946838411943357124271576571132580705976475786821616608687376475785807059104854685125123684733693171111683444124994901221509762280975822804631973953847866319739673602658228049814569... ...
2)输出结果至文件
iozone -a-b /home/output.xls
返回结果:
[root@controller ~]# iozone -a -b /home/output.xls
Iozone: Performance Test of File I/O
Version $Revision:3.489 $
Compiled for64 bit mode.
Build: linux
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,
Vangel Bojaxhi, Ben England, Vikentsi Lapa,
Alexey Skidanov, Sudhir Kumar.
Run began: Tue Jan 315:13:05 2023
Auto Mode
Command line used: iozone -a-b /home/output.xls
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.
random random bkwd record stride
kB reclen write rewrite read reread readwriteread rewrite read fwrite frewrite fread freread
64492626022038003363612538965340181522379626220380024671083363612235871724671082662899427406264815996803363612427406271003975389653336361227729303363612427406234062953363612316529962710216416193389342740625735102794053971003974274062320306942740624564786373835840181523791156464375464322278628528357079405391290201790061794988978354109845647864564786586030758603074274062489794864641679761266289912902017159728851082152442740623363612456478642740623958892456478640181525283570128414879773199360327748651225354012317296932526086293124872303650229050562985839290505638958541288236709649342164889281640613860454554267461365701644076015847904426746144076012202044758231212816272792361143065784891803630480363045545860413595857848916406138512253551225354267461532579912832312487270821975784891979589691295736727225444408671768726727225578489185481245545860854812412864365701675823129129573125420436727225640613845572576727225584790480363048548124512253571768721281282784517604545510567140128420511254204364061384596273512253545572575122535611430647592538548124256417295943770085475515854558474132864323605633680133511189346585533680133159869382378944775492568246380849298155455847757192360730044907284370504054558474929815502204450220445022044671904625616341080877917085687020881520282719167120034593865073140338534922639872067190465841722779170825632428117098684338208677911451582719168815202475515898684338815202751890075189005569035853492225664457289510245071773557411695808116958088815202610754897785628271916751890073140335569035986843325612834658556398720986843312228612106515987314033593865082719166761355751890085349225347168853492225625634108086719046122286121281227711569783751890061075487120034639872065952347314033671904685349225124183576039130124660280556623142710013064306371019737621973849877363483934097554610256534458251282811557647211267360267334159624621355091135019764617437755662315566231562454562462136931711512163736016914579069994901004408987011108018812595191186659977410080730919675401706414119884445351232497326311138071741008098596309638369100440896395018113740401137404068216168394979550911395103165126450671421214600986659971085653011620224106413436736026124994901113807183949798665997751378898596305121284690818109116949468384119433571194335796383697115451111380719510316801881285283367211022113740405122564532414946838410284602119433571162022483949796821616914579074100807410080899259867360261043451951251240004857647578116834441242715712215097754017061041756736026538478659519117758090610417510434519102441852232393742645124415751117421568832815923631168390875938945823655895376485448541365593820102483085895665055664799797883484644110754174275593820651932356826345782087595030964799797927135102416422813896558287644933956977089143148474583696324198552348061038794179380009717319232932056010243248761801249242670201491003952810454984107695736929538126394797524394845789590457365917516716059710246449435301217374772207909569770104295961053189657898811282823812492426818391888227545983467956977010241283894582117733016918376100395281263947983267156609617115206581113246273192328610501569016295697701024256457005899465278326715916150812037272716059764411079946527992354666505568262639683035610689164102451242115548183918656917910039528124561956609617624444877693977755368673397483917926364746956977010241024395555774203951139836012828238123487547054742674454970547426059442563048679417934920874875085020484182539037028684697018504457740966763117032370286839679933704465327759335557224310472494582320488289242363780056185123747077063031245306340536265767171535640860562608255497496149699726233720481641885657643611704205190629708830061802943464401691019206979995247754008809755772869808390200204832514427112118884781751910048990100843821094530166086291321923583251478857376906297074191508830061204864565944213384011790383698530371144095511835033715943815181774103893028977721943113877610141024067220481285593112131182959062970111876411183503311564174794036714539356133011138357547883006181590881101548020482565184636119669358820994106733021211888496105167733066129599581234530671833868221561815908811380325204851243942659400176969731211502234120508788498106791111596105169525260723786079995248221561115022342048102442846718793903918900511770166121188846895083650355687939039024882806713887939036873016113203342048204841461107933034105552641177016611706006680226162985036990474644016970362836990474660862999442904096419450073743865483557854318444027344320770935867574003879380691534333603207110461228652047504096830316675736555598850965526856178018505022050075316782940589198052110655411313616029674636484096164249491853104671499208793028871718078453856649056102947097950677751260577115657585581893944140963253208121197365578633399183139102394861084036369672431393558592924148944095904296177428451003610940966458839081260624964397007515892106919391061268172987621593967110528134827624196853167656576103442984096128572127213434307843057210400659114394751160954380475091569216210895362848051197291958047509984629340962565306022120831348514134100361091229939897072068344580150594171383458769785648205092849728911164417409651248533361026395679988001072531412414943809300178026271097891512194633650061770386057061751101908954096102444706577774379676957693735351137886171380376693092967985910215133628193474604077421732105800034096204844718218209013848051110065509123347206439700693070482762417515892707338184099376735075984629340964096412897670386059394037118334491140908770242166309619623406461691446408472764295166490561011291081924193480034581734724413524832138280392753668334505339422333502591323787830692574578974518809381928305208156533136186701701963260547864815791515230767533515672914528464550694485821902711115881921642578148696894689566078611908234205756355062622481026642778846427468200729536267098307307775819232510408911755738661807078325189131414101872866141364141003196018726795400086509116677231687358981926455998731331873174471578111736990535111318161626338916186002817542888469259266865653251076630748192128569642613231539691926778991431080900810393756711115815541726868809790022239042498687221477652538192256559531412759828735470190022231175171710849967701963213717526104633897167528761383073264739080735819251248995708334066774250683767341131443479009596947247117196501325706560869656024002752380190807358192102447518547978009780937690401191156969270803865793435939353811363077553938660271726390362545756081922048439056876630747832518870570811189160645519366117038943642991678661183986399884614465879613728192409643134047031124749426283502699582152622480960367027199064724307467255917818261630129574600928192819239440436220301607297963702217332727556180358476645534924585563656579676527546571252664202141638441905814333754845789154617994330528226181033341605397180932644583047588304529245371954647665163848295481155038075878581592112951700634530912496786269421984844583494676350135295738671578358816384164197940871985469393947077327726897472246516318564104630807297535726897472789846852209730451716384325350398114880827001613713908883551489706407669793114016357730762481927838828519693659273247601638464592521313662451714874274164599287914111524906971779168026269297968928289699165087025952736085116384128595138413025399744700073435467393320110556026616672160491817623802928289697977446968951755341216384256575694013246347697531775817469357474107427807105134165477228236974724980375884447403675813074416384512493185292616277680895810676510045523843203871733681328732789527376253020622695670044687443774163841024473803089341157145026750146699654027214790724292610626494123179545783101607932269421987692072163842048458563777906127314624775019593894386986664679260698993661128434655838595754529662496574068671638440964329929723073269275027148742733335865856016405137860520289190405514407588714363017606995911163848192408271564678336014936651999464075266142904592317065429637013761673139271763646012830630176016384163843263838534914858765705882607581392650289395651827530742257286255312756528700657690225797250327686457085921307596768682367325855742720310882973691453916855804739364094898019685753717030173785573276812859665771340239472928137299398746593510611566698695016753072735053994350789884988699441774103843276825658840691347334271249527305994765045511021739735683416915968743886172885598076659736511375762323276851249739407472836738172772932007435239837643773028891350113770543715998084637123071157307249728327681024463009882661067351718719507675363507249346706961211778322724476156350985744621712347573110473276820484546020800562170743427022651711904770896696634497105157611202987252210894081722674785269072413276840964348122714384068164596920458685658667135726360321791297610051258413265649798876300260643115432768819240817226446538629910565839636289592636032162226728004222807096852470025288594613983262930483276816384358120952604576031250608384461043815780379596528261431255913691555403050265125503544565457365536645565253125688317155333705669070956731066832170002611686491069979449366216962767667153447160739655361285905154128274957237665720654670920111063406671164311698265273053749402741978150372439607273863655362565818161133586287340490728987573469641103847272939371703527673240607289875772371872584977381689655365124806078105499887159247684443270047218478180715850113814483710502759550486313110724797173785186553610244417639829474367652586945955711348575120077208814118682357231953558560956884857209003719786665536204844509737829984694227168010796896290702872266799321128176068738715228220490495967884826840855655364096426611769778706452259652036865229986698326615947910039072111572054765583477286459807026357203655368192409063963782985988259599976159932206026199620732888802629126454475931248280266283382643579365536163843547461579913559158305801216592705555850415852474647521064688104686126462727759453876006972131072645841269116808267089524702161270132821044313268555961694538469571909174247929854069726317197376131072128591772812311786721958871706217211349106063297158110172100917243941957149094731907138591724270113107225658882551251868973260917260396679517811002420665742817473752724031673495974740222739676674540321310725125065995943903370002447067377708614390395377294015141271637017400605245961450087282227733107313107210244631831807848966157687045368721996776084657115768127391567119639552858456277967179236731760713107220484476044739636870891596792995685491273876217008454116363227017489492472351062266940589698645513107240964330224701668367382106658799676640868552546690403108324546668976450960348566806347647650353813107281924246077659149564510336403767644188667074636391854883187110073989454686346331586383764612031113107216384399485957251436038299594968660116235901465590152969604497757154436484543391455987464598068926214464585928612635914658107271366366862562104480756930082171515147053902944258494249397256793720510226214412859263021247647274295437082483722498710606309734565917318196721744697140469714389741796574312512621442565907738127962077470177735986973401181091762274171141766232573578017490024719859274740377444282262144512480178410037644750095970026437334145910539972231831462606574020846142529614988274476607443879262144102446859158003677727388471773057270853761915872174461221383672615855572429565453373261307314482262144204844293747297007703760369201816997963718673570740981164208970582954986858466854568254157104724262144409643025166980635663052166078086360271685614466864891102689565362764637082467414266208196431253262144819242064866776032643980463970166250748658091461257269414045645261646310274607256638672464427852621441638441634476549202602961759829946104301587355961009137318572681125040459394133583605832261046065242886458929951282036371398757177887697609110479883697062917055575699983095109019519012728805471372575242881285960465125858547441254709983472295671037393571562561723672272548739898563981020074221667418811524288256593427912283618737373472513567429237110723567365855175853197425249756976674255507486525750138952428851251006761006331374598847352335737902993556027198705154065727431120616925460300447347004729271952428810244647370770738471023566950382728421576033467085833130086767131239556894054597927086792707571052428820484547675768309570192466961450713510374443276884494123971887014902512129851109196983535716014752428840964339987700544965023156550486682143068588126734607108212296774963476802848220516803807677688452428881924310653674125563917326164757643614468541526398130945256164280914566174451618263880746363709524288163843709410638067955432095735931615512861667976076029802569661224314111162399795658901385822901
iozone test complete.
Excel output is below:
"Writer report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"9262601599680193389322786281679761"128"148797723670962727923312487236570162784517"256"1729594246380834108084281170457289534658553410808"512"18357602811557373601649732635067142469081845324144000485"1024"185223230858954228138487618049435303894582457005842115543955557"2048"1825390289242341885655144271565944255931125184636439426542846714146110"4096"19450073031667424949153208125883908572127253060224853336447065744718214128976"8192"193480030520814257814510408955998735696426559531448995704751854439056843134043944043"16384"1905814295481141979405350398592521359513845756940493185247380304585637432992940827153263838"32768"0000570859259665775884069497394046300984546020434812240817223581209"65536"0000556525359051545818161480607844176394450973426611740906393547461"131072"0000584126959177285888255506599546318314476044433022442460773994859"262144"0000585928659263025907738480178446859154429374430251642064864163447"524288"0000589299559604655934279510067646473704547675433998743106533709410"Re-writer report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"22038003363612427406252835702662899"128"319936049342166114306708219775823126045455"256"37700854929815779170898684331024507163987206719046"512"39130126472112914579011138071121460091091169494683847647578"1024"393742666505569655828124924261217374711773301994652781839187420395"2048"37028686378005764361112118884133840111311829511966935940017687939037933034"4096"3743865573655585310461197365512606249134343071208313410263956777437982090137038605"8192"3458173565331386968941175573813318731132315391275982883340667978009766307470311246220301"16384"33375485503807871985411488082136624511302539913246347926162789341157790612723073264678335349148"32768"0000130759671340239413473342747283682661068005621714384064465385260457"65536"00001256883112827495133586281054998882947437829984697787063782985799135"131072"0000116808261231178612518689943903380784897396368701668365914955725143"262144"00001263591412476472127962071003764480036777297007698063567760326549202"524288"00001282036312585854122836181006331377073847683095700544967412556380679"Reader report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"336361242740625735102794053912902017"128"3277486488928157848915784891912957310567140"256"47551585455847568702082086777735574986843312228612"512"4660280673602669994907410080866599794683841028460211683444"1024"4512441647997976449337020149722079069183768326715656917911398360"2048"46970186185123704205178175197903836906297088209949697312918900510555264"4096"48355785988509714992078633396439700843057285141347998800676957684805119394037"8192"472441361867016895660661807074471576919267735470177425067809376783251874942626072979"16384"4578915587858169393947001613714874274470006975317768089571450267314624692750260149365876570"32768"0000686823672928137124952738172773517187074342681645962991056031250"65536"0000715533372376657340490715924767652586942271645225959882595915830"131072"0000708952472195887326091700024466157687089159673821064510336038299"262144"0000658107274295437470177750095972738847037603663052164398046029617"524288"0000713987574412547373734745988471023567019246650231563917325543209"Re-Reader report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"5389653710039779405391290201715972885"128"51225356406138803630497958961254204312842051"256"5455847757192388152029114515116958081222861212812277"512"5566231733415910044089985963010856530119433571194335712427157"1024"5751117788348495697701003952895697701003952891615081003952812828238"2048"5044577747077090629701004899098530371118764110673302115022341177016611770166"4096"5431844655268587930289183139751589210400659100361091072531493735351006550911833449"8192"524832170196327861190783251881117367899143900222383767349040119870570883502696370221"16384"4617994592112970773277139088741645973435467581746810676575014667750195714874265199945882607"32768"0000732585572993987305994729320071950767022651692045865839636083844"65536"0000705669072065467289875684443269459556801079652036859997615801216"131072"0000702161271706217260396706737770453686792995665879964037675949686"262144"0000713663670824837359869700264371773056920181660780863970165982994"524288"0000717788770998347251356735233569503826961450655048661647575735931"Random read report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"401815253896537100397900617910821524"128"4012317604545580363049129573672722512542043"256"4132864607300482719168271916116958081065159811569783"512"427100162462138701110963836911620224119433571162022412215097"1024"421568864411078914314104549841042959612639479120372721245619512348754"2048"40966766303124883006110084382114409551183503312118884120508781211888411706006"4096"4027344617801887171801023948610691939114394751229939812414943113788611233472011409087"8192"38280396054786823420591314149905351108090081175171711314434115696921118916095821527332727"16384"33052825170063726897483551489287914739332093574741004552399654029389438733335864075265813926"32768"0000742720374659357650455743523975363507119047685658662895926104381"65536"0000709567370920117346964700472171134856896290652299859932205927055"131072"0000701328272113496795178708614372199676854912676640864418866011623"262144"0000686256272249877340118733414572708536997963636027162507486104301"524288"0000697609172295677429237737902972842157135103682143064361446155128"Random write report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"23796263363612427406249889784274062"128"296932542674615545860672722564061386406138"256"3236056490728471200348815202881520273140337518900"512"3064306550911380188121004408910641343963836983949797540170"1024"32815925417427847458310769573105318968326715716059766096177054742"2048"3117032530634080294341094530111835033115641749610516849810668950836802261"4096"32077095050220784538510840363106126811160954397072068093001713803764397007024216"8192"2753668481579175635501018728611318161103937561084996779009597080386645519362248095561803"16384"2618103453091272246519706407111524901105560210742780843203872147906986664658560161429045028939"32768"0000108829731061156611021739837643772493467089669671357263603215780379"65536"0000106683211063406611038472847818075120077028722669832660261995585041"131072"0000104431321060632911002420903953776084657387621685525467074635901465"262144"0000104480751060630910917622910539976191587186735685614465809145873559"524288"0000104798831037393511072356935560276033467444327685881268541526166797"Backward read report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"22038002772930320306935410983363612"128"260862936570164135958444408645572574596273"256"3368013370504059386504755158610754859386506107548"512"37101975019764595191163950186736026711545168216166104175"1024"363116855938206963241692953857898816609617644110762444486744549"2048"3702868536265764401696608629715943879403677733066791111565035566298503"4096"35867575007531664905669672437298762804750983445807802627669309269307046309619"8192"334505351523076262248614136462633897111158701963269472475793435661170360367025847664"16384"3341605496786263185646697931697177966166727105134717336872429266792606640513759231705651827"32768"0000691453969869507356834730288970696126634497636032162226725965282"65536"0000700026171164317293937715850172088146679932615947962073285852474"131072"0000685559671581106657428729401571157687008454669040363918545901529"262144"0000693008273456597417114722318372174467074098668648961257266100913"524288"0000697062971562567365855719870570858336884494673460763981306076029"Record rewrite report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"24671083363612427406245647864564786"128"312487244076015784891717687267272255122535"256"3511189545584773140339868433977856282719167120034"512"37621976174377866599711374040124994901113807191457906736026"1024"390875965193239855234126394791282823811520658994652777693977054742"2048"396799367171531019206913219235151817741453935612959958961051687939036990474"4096"40038796782940102947091393558515939671156921621505941710978915967985982762416234064"8192"394223367533511026642714100319161860021554172613717526117196509393538894364271990645534924"16384"39718096942198104630801401635716802626160491811654772213287327106264949899366860520265429635307422"32768"0000168558041675307216915968135011371177832210515761791297680042226143125"65536"00001686491016982652170352761381448311868235112817601003907288802626475210"131072"00001694538417210091174737521412716312739156116363221083245488318716960449"262144"00001715151417318196176623251462606512213836116420891102689594140457318572"524288"00001705557517236722175853191540657213008676123971881082122994525618025696"Stride read report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"33636124274062456478645647864274062"128"303650258479046406138672722558479044557257"256"3465855492981585349228815202827191667613556398720"512"3849877556623174100801137404011138071951031674100805384786"1024"38945825682634806103875243941249242611132462992354677553686059442"2048"3704465564086079995248325147103893021330111312345306952526090248826440169"4096"3806915589198079506779292414105281341089536213834587121946331021513375158926169144"8192"350259156729147884642601872681754288688097104633891325706511363077991678672430745855636"16384"326445848445837297535730762492979687623802823697489527371231795411284346891904070137615728625"32768"000073936407350539743886170543717244761120298721005125880709685913691"65536"00006997944730537473240607105027723195368738711115720591264546468810"131072"00006957190724394172403167017400711963970174896668976100739897757154"262144"0000705390272174467357801740208472615857058295653627664526166811250"524288"0000699983072548737425249743112071312397014902677496364280916122431"Fwrite report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"23587173406295373835858603073958892"128"290505642674615122535578489180363045122535"256"3368013502204463987207518900751890075189006595234"512"36348395566231730919668216168394979801881274100805951911"1024"365589557820877941793845789581839187319232665055667339745630486"2048"3277593562608277540088857376897772183575477183386723786080671387036283"4096"34333605211065751260589440958276241848051169785646500617628193470733816408472"8192"323787852846457468200795400088469259002223716752860869655539386611839867255915657967"16384"3047588494676372689748192783928289692828967249803625302057831015583859551440767313925312756"32768"0000948980194350787288559599808456350985221089413265652470025554030"65536"0000936621694027417289875595504855856095228220476558347593124686126"131072"0000917424795714907349597605245955285844924723450960345468634364845"262144"0000944258497140467490024614252955724294986858463708246310274045939"524288"0000951090198985637569766616925455689405121298476802845661744111162"Re-Fwrite report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"24671083363612401815258603074564786"128"298583944076015122535854812485481246114306"256"3159869502204467190467518900731403385349227314033"512"34097555624545754017083949798665997852833689925987758090"1024"376485459503098000971904573688227548610501826263983917927941793"2048"3555722554974980975579062970943113888300618221561799952487939036990474"4096"32071105411313771156590429619685316972919582050927038605746040784099377642951"8192"306925750694487295362865091192668659042498761383060240026027172639988478182616527546"16384"3045292501352972789848828519991650897977447588444622695660793225754529588714371763645287006"32768"0000968575398849888076659637123057446214081722497988752885945026512"65536"0000962767697815037723718631311056884854904959477286448280264627277"131072"0000929854094731904740222614500856277965106226485668046331584339145"262144"0000942493997143897198592614988256545334668545467414246072564133583"524288"0000951901298102007425550603004454597925110919482205145161823997956"Fread report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"26628993165299379115642740624018152"128"290505622020444267461554586051225354759253"256"3823789502204458417225569035556903553471686719046"512"46102566246213641411955091137513788721102267360266104175"1024"485413664799797319232591751659834675690162683035663647464920874"2048"4310472614969972869807419150776101481590888159088822156168730166608629"4096"46122866160296758558177428457656576804750984972897061751742173267350756649056"8192"457897458219026709830667723165325106872214732647375238016390362614465863012955712526"16384"4537195573867168522096936592702595269689517403675700446869421986624965630176060128305769022"32768"0000717030169944177365113711573071234756747852630026061398325503544"65536"0000671534472439607258497724797172090036788482598070262833825945387"131072"0000697263171385917396766728222771792366940589634764763837645987464"262144"0000725679374179657474037744766073261306825415662081963867246058322"524288"0000728805474221667486525734700470867926983535680380763880745890138"Re-Fread report""4""8""16""32""64""128""256""512""1024""2048""4096""8192""16384""64"42740626271021464375448979485283570"128"389585475823125325799854812471768728548124"256"4477549671904677917088534922986843385349228534922"512"53445826931711884445395103169859630113740401043451910434519"1024"5593820792713593205607160597956977095697701068916495697708750850"2048"494582372623378390200883006110240672110154801138032511502234113203349944290"4096"52047507463648893944110036109103442989846293111644171019089510580003984629310112910"8192"518809371111587307775687358976630747765253908073590807355457560796137274600926420214"16384"4647665578358873045177324760736085175534128130744744377476920727406867699591163017605797250"32768"0000737855774103847576232724972873110476907241643115462930485654573"65536"0000716073972738637381689737851871978666840855635720364357936006972"131072"0000719737672427017454032733107373176076986455650353861203115980689"262144"0000720510274312517444282744387973144827104724643125364427856104606"524288"0000713725774188117501389729271970757107160147677688463637095822901
3)在测试过程中指定测试类型、文件大小、测试的记录大小等
iozone -i0-i1-s1024-r32
参数说明:
-i
指定测试类型,可进行叠加,具体参数如下:
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
-s
指定文件大小,而不是对所有文件大小运行测试。默认情况下,iozone 会自动创建大小从 64k 到 512M 的临时文件,以执行各种测试。iozone 输出中的第一列(带有列标题 KB)表示文件大小。它从 64KB 文件开始,并且会不断增加直到 512M(每次文件大小都翻倍)。
-r
指定要测试的记录大小,对于特定的文件大小,它会使用从 4k 到 16M 的不同记录大小进行测试,reclen 代表记录长度。对于 1024KB 的文件大小,iozone 测试使用从 4k 到 16M 的各种记录大小来执行写入测试。
返回结果:
[root@controller ~]# iozone -i 0 -i 1 -s 1024 -r 32
Iozone: Performance Test of File I/O
Version $Revision:3.489 $
Compiled for64 bit mode.
Build: linux
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,
Vangel Bojaxhi, Ben England, Vikentsi Lapa,
Alexey Skidanov, Sudhir Kumar.
Run began: Tue Jan 315:24:56 2023
File size set to 1024 kB
Record Size 32 kB
Command line used: iozone -i0-i1-s1024-r32
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.
random random bkwd record stride
kB reclen write rewrite read reread readwriteread rewrite read fwrite frewrite fread freread
10243242872251003952870547429064828
iozone test complete.
4)进行吞吐量测试
iozone -t2
参数说明:
要为所有测试类型执行吞吐量,可以直接使用-t指令,注意-a与-t指令不能并存。
-i可以与-t并存,用于指定对应的测试类型以及对应的线程。
返回结果:
[root@controller ~]# iozone -t 2
Iozone: Performance Test of File I/O
Version $Revision:3.489 $
Compiled for64 bit mode.
Build: linux
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,
Vangel Bojaxhi, Ben England, Vikentsi Lapa,
Alexey Skidanov, Sudhir Kumar.
Run began: Tue Jan 315:34:12 2023
Command line used: iozone -t2
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.
Throughput test with 2 processes
Each process writes a 512 kByte filein4 kByte records
Children see throughput for2 initial writers =2722164.38 kB/sec
Parent sees throughput for2 initial writers =61073.84 kB/sec
Min throughput per process =1349799.88 kB/sec
Max throughput per process =1372364.50 kB/sec
Avg throughput per process =1361082.19 kB/sec
Min xfer =436.00 kB
Children see throughput for2 rewriters =4795549.75 kB/sec
Parent sees throughput for2 rewriters =170646.49 kB/sec
Min throughput per process =2309477.25 kB/sec
Max throughput per process =2486072.50 kB/sec
Avg throughput per process =2397774.88 kB/sec
Min xfer =360.00 kB
Children see throughput for2 readers =6570157.25 kB/sec
Parent sees throughput for2 readers =29925.82 kB/sec
Min throughput per process =3154979.00 kB/sec
Max throughput per process =3415178.25 kB/sec
Avg throughput per process =3285078.62 kB/sec
Min xfer =476.00 kB
Children see throughput for2 re-readers =7554126.25 kB/sec
Parent sees throughput for2 re-readers =1609675.42 kB/sec
Min throughput per process =3736016.50 kB/sec
Max throughput per process =3818109.75 kB/sec
Avg throughput per process =3777063.12 kB/sec
Min xfer =404.00 kB
Children see throughput for2 reverse readers =5305614.50 kB/sec
Parent sees throughput for2 reverse readers =1461384.32 kB/sec
Min throughput per process =2565798.25 kB/sec
Max throughput per process =2739816.25 kB/sec
Avg throughput per process =2652807.25 kB/sec
Min xfer =444.00 kB
Children see throughput for2 stride readers =4589506.50 kB/sec
Parent sees throughput for2 stride readers =1291039.19 kB/sec
Min throughput per process =2272425.75 kB/sec
Max throughput per process =2317080.75 kB/sec
Avg throughput per process =2294753.25 kB/sec
Min xfer =468.00 kB
Children see throughput for2 random readers =5477554.00 kB/sec
Parent sees throughput for2 random readers =1600083.69 kB/sec
Min throughput per process =2586510.50 kB/sec
Max throughput per process =2891043.50 kB/sec
Avg throughput per process =2738777.00 kB/sec
Min xfer =352.00 kB
Children see throughput for2 mixed workload =5066427.75 kB/sec
Parent sees throughput for2 mixed workload =160116.42 kB/sec
Min throughput per process =2190869.00 kB/sec
Max throughput per process =2875558.75 kB/sec
Avg throughput per process =2533213.88 kB/sec
Min xfer =388.00 kB
Children see throughput for2 random writers =4738526.25 kB/sec
Parent sees throughput for2 random writers =82155.16 kB/sec
Min throughput per process =2297251.25 kB/sec
Max throughput per process =2441275.00 kB/sec
Avg throughput per process =2369263.12 kB/sec
Min xfer =476.00 kB
Children see throughput for2 pwrite writers =2721225.62 kB/sec
Parent sees throughput for2 pwrite writers =115758.81 kB/sec
Min throughput per process =1333788.12 kB/sec
Max throughput per process =1387437.50 kB/sec
Avg throughput per process =1360612.81 kB/sec
Min xfer =448.00 kB
Children see throughput for2 pread readers =6396888.75 kB/sec
Parent sees throughput for2 pread readers =283323.44 kB/sec
Min throughput per process =3163620.50 kB/sec
Max throughput per process =3233268.25 kB/sec
Avg throughput per process =3198444.38 kB/sec
Min xfer =504.00 kB
Children see throughput for2 fwriters =5145468.50 kB/sec
Parent sees throughput for2 fwriters =128773.79 kB/sec
Min throughput per process =2544997.75 kB/sec
Max throughput per process =2600470.75 kB/sec
Avg throughput per process =2572734.25 kB/sec
Min xfer =512.00 kB
Children see throughput for2 freaders =6420061.75 kB/sec
Parent sees throughput for2 freaders =2579861.00 kB/sec
Min throughput per process =3140488.00 kB/sec
Max throughput per process =3279573.75 kB/sec
Avg throughput per process =3210030.88 kB/sec
Min xfer =512.00 kB
iozone test complete.
1.3 其他——IOZone
- IOZone源码仓库
http://www.iozone.org/src/current/
- IOZone文档
IOZone自带,路径如下:
iozone3_490/docs
- 详细参数
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 zero_pct][-+Q dedup granule size][-+M dedup+compress flag ]-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
-hhelp-H# Use POSIX async I/O with # async operations-i# Test to run (0=write/rewrite, 1=read/re-read, 2=random-read/write3=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
-+b #,# burst size (KB),sleep between burst (mili-second)
-+E Use existing non-Iozone filefor read-only testing
-+F Truncate file before writein thread_mix_test
-+J Include think time(-j #) in throughput calculation
-+K Sony special. Manual control of test8.
-+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=sequential3=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.
-+W # Add this value to the child thread ID, so that additional files
can be added while maintaining the proper dedupability with previously
existing files that are within the same seed group (-+S).
-+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.
-+a ## Percent of data that is compressible.
-+Q ## Dedup granule size.
-+H Hostname Hostname of the PIT server.
-+P Service Service of the PIT server.
-+z Enable latency histogram logging.
-+M Enable Dedup+compress option. (Experimental).
-+R enable iozone to take filenames from a file.
版权归原作者 z1564058782 所有, 如有侵权,请联系我们删除。