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

fio基础18

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

verify_fatal=boolNormallyfiowillkeepcheckingtheentirecontentsbeforequittingonablockverificationfailure.Ifthisoptionisset,fiowillexitthejobonthefirstobservedfailure.verify_dump=boolIfset,dumpthecontentsofboththeoriginaldatablockandthedatablockwereadoffdisktofiles.Thisallowslateranalysistoinspectjustwhatkindofdatacorruptionoccurred.Offbydefault.verify_async=intFiowillnormallyverifyIOinlinefromthesubmittingthread.ThisoptiontakesanintegerdescribinghowmanyasyncoffloadthreadstocreateforIOverificationinstead,causingfiotooffloadthedutyofverifyingIOcontentstooneormoreseparatethreads.Ifusingthisoffloadoption,evensyncIOenginescanbenefitfromusinganiodepthsettinghigherthan1,asitallowsthemtohaveIOinflightwhileverifiesarerunning.verify_async_cpus=strTellfiotosetthegivenCPUaffinityontheasyncIOverificationthreads.Seecpus_allowedfortheformatused.verify_backlog=intFiowillnormallyverifythewrittencontentsofajobthatutilizesverifyoncethatjobhascompleted.Inotherwords,everythingiswrittentheneverythingisreadbackandverified.Youmaywanttoverifycontinuallyinsteadforavarietyofreasons.FiostoresthemetadataassociatedwithanIOblockinmemory,soforlargeverifyworkloads,quiteabitofmemorywouldbeusedupholdingthismetadata.Ifthisoptionisenabled,fiowillwriteonlyNblocksbeforeverifyingtheseblocks.verify_backlog_batch=intControlhowmanyblocksfiowillverifyifverify_backlogisset.Ifnotset,willdefaulttothevalueofverify_backlog(meaningtheentirequeueisreadbackandverified).Ifverify_backlog_batchislessthanverify_backlogthennotallblockswillbeverified,ifverify_backlog_batchislargerthanverify_backlog,someblockswillbeverifiedmorethanonce.verify_state_save=boolWhenajobexitsduringthewritephaseofaverifyworkload,saveitscurrentstate.Thisallowsfiotoreplayupuntilthatpoint,iftheverifystateisloadedfortheverifyreadphase.Theformatofthefilenameis,roughly,<type>-<jobname>-<jobindex>-verify.state.<type>is"local"foralocalrun,"sock"foraclient/serversocketconnection,and"ip"(192.168.0.1,forinstance)foranetworkedclient/serverconnection.verify_state_load=boolIfaverifyterminationtriggerwasused,fiostoresthecurrentwritestateofeachthread.Thiscanbeusedatverificationtimesothatfioknowshowfaritshouldverify.Withoutthisinformation,fiowillrunafullverificationpass,accordingtothesettingsinthejobfileused.stonewallwait_for_previousWaitforprecedingjobsinthejobfiletoexit,beforestartingthisone.Canbeusedtoinsertserializationpointsinthejobfile.Astonewallalsoimpliesstartinganewreportinggroup.new_groupStartanewreportinggroup.See:group_reporting.numjobs=intCreatethespecifiednumberofclonesofthisjob.Maybeusedtosetupalargernumberofthreads/processesdoingthesamething.Eachthreadisreportedseparately;toseestatisticsforallclonesasawhole,usegroup_reportinginconjunctionwithnew_group.group_reportingItmaysometimesbeinterestingtodisplaystatisticsforgroupsofjobsasawholeinsteadofforeachindividualjob.Thisisespeciallytrueif'numjobs'isused;lookingatindividualthread/processoutputquicklybecomesunwieldy.Toseethefinalreportper-groupinsteadofper-job,use'group_reporting'.Jobsinafilewillbepartofthesamereportinggroup,unlessifseparatedbyastonewall,orbyusing'new_group'.threadfiodefaultstoforkingjobs,howeverifthisoptionisgiven,fiowillusepthread_create(3)tocreatethreadsinstead.zonesize=intDivideafileintozonesofthespecifiedsize.Seezoneskip.zoneskip=intSkipthespecifiednumberofbyteswhenzonesizedatahasbeenread.Thetwozoneoptionscanbeusedtoonlydoioonzonesofafile.write_iolog=strWritetheissuediopatternstothespecifiedfile.Seeread_iolog.Specifyaseparatefileforeachjob,otherwisetheiologswillbeinterspersedandthefilemaybecorrupt.read_iolog=strOpenaniologwiththespecifiedfilenameandreplaytheiopatternsitcontains.Thiscanbeusedtostoreaworkloadandreplayitsometimelater.Theiologgivenmayalsobeablktracebinaryfile,whichallowsfiotoreplayaworkloadcapturedbyblktrace.Seeblktraceforhowtocapturesuchloggingdata.Forblktracereplay,thefileneedstobeturnedintoablkparsebinarydatafilefirst(blkparse<device>-o/dev/null-dfile_for_fio.bin).

本文系转载,前往查看

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

本文系转载前往查看

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

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