前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >fio基础19

fio基础19

作者头像
franket
发布2022-04-24 00:27:30
2180
发布2022-04-24 00:27:30
举报
文章被收录于专栏:技术杂记

replay_no_stall=intWhenreplayingI/Owithread_iologthedefaultbehavioristoattempttorespectthetimestampswithinthelogandreplaythemwiththeappropriatedelaybetweenIOPS.Bysettingthisvariablefiowillnotrespectthetimestampsandattempttoreplaythemasfastaspossiblewhilestillrespectingordering.TheresultisthesameI/Opatterntoagivendevice,butdifferenttimings.replay_redirect=strWhilereplayingI/Opatternsusingread_iologthedefaultbehavioristoreplaytheIOPSontothemajor/minordevicethateachIOPwasrecordedfrom.Thisissometimesundesirablebecauseonadifferentmachinethosemajor/minornumberscanmaptoadifferentdevice.Changinghardwareonthesamesystemcanalsoresultinadifferentmajor/minormapping.Replay_redirectcausesallIOPStobereplayedontothesinglespecifieddeviceregardlessofthedeviceitwasrecordedfrom.i.e.replay_redirect=/dev/sdcwouldcauseallIOintheblktracetobereplayedonto/dev/sdc.Thismeansmultipledeviceswillbereplayedontoasingle,ifthetracecontainsmultipledevices.Ifyouwantmultipledevicestobereplayedconcurrentlytomultipleredirecteddevicesyoumustblkparseyourtraceintoseparatetracesandreplaythemwithindependentfioinvocations.Unfortuantelythisalsobreaksthestricttimeorderingbetweenmultipledeviceaccesses.replay_align=intForcealignmentofIOoffsetsandlengthsinatracetothispowerof2value.replay_scale=intScalesectoroffsetsdownbythisfactorwhenreplayingtraces.per_job_logs=boolIfset,thisgeneratesbw/clat/iopslogwithperfileprivatefilenames.Ifnotset,jobswithidenticalnameswillsharethelogfilename.Default:true.write_bw_log=strIfgiven,writeabandwidthlogofthejobsinthisjobfile.Canbeusedtostoredataofthebandwidthofthejobsintheirlifetime.Theincludedfio_generate_plotsscriptusesgnuplottoturnthesetextfilesintonicegraphs.Seewrite_lat_logforbehaviourofgivenfilename.Forthisoption,thesuffixis_bw.x.log,wherexistheindexofthejob(1..N,whereNisthenumberofjobs).If'per_job_logs'isfalse,thenthefilenamewillnotincludethejobindex.write_lat_log=strSameaswrite_bw_log,exceptthatthisoptionstoresiosubmission,completion,andtotallatenciesinstead.Ifnofilenameisgivenwiththisoption,thedefaultfilenameof"jobname_type.log"isused.Evenifthefilenameisgiven,fiowillstillappendthetypeoflog.Soifonespecifieswrite_lat_log=fooTheactuallognameswillbefoo_slat.x.log,foo_clat.x.log,andfoo_lat.x.log,wherexistheindexofthejob(1..N,whereNisthenumberofjobs).Thishelpsfio_generate_plotfinethelogsautomatically.If'per_job_logs'isfalse,thenthefilenamewillnotincludethejobindex.write_iops_log=strSameaswrite_bw_log,butwritesIOPS.Ifnofilenameisgivenwiththisoption,thedefaultfilenameof"jobname_type.x.log"isused,wherexistheindexofthejob(1..N,whereNisthenumberofjobs).Evenifthefilenameisgiven,fiowillstillappendthetypeoflog.If'per_job_logs'isfalse,thenthefilenamewillnotincludethejobindex.log_avg_msec=intBydefault,fiowillloganentryintheiops,latency,orbwlogforeveryIOthatcompletes.Whenwritingtothedisklog,thatcanquicklygrowtoaverylargesize.Settingthisoptionmakesfioaveragetheeachlogentryoverthespecifiedperiodoftime,reducingtheresolutionofthelog.Defaultsto0.log_offset=intIfthisisset,theiologoptionswillincludethebyteoffsetfortheIOentryaswellastheotherdatavalues.

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档