首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >fio基础20

fio基础20

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

log_compression=intIfthisisset,fiowillcompresstheIOlogsasitgoes,tokeepthememoryfootprintlower.Whenalogreachesthespecifiedsize,thatchunkisremovedandcompressedinthebackground.GiventhatIOlogsarefairlyhighlycompressible,thisyieldsanicememorysavingsforlongerruns.ThedownsideisthatthecompressionwillconsumesomebackgroundCPUcycles,soitmayimpacttherun.This,however,isalsotrueiftheloggingendsupconsumingmostofthesystemmemory.Sopickyourpoison.TheIOlogsaresavednormallyattheendofarun,bydecompressingthechunksandstoringtheminthespecifiedlogfile.Thisfeaturedependsontheavailabilityofzlib.log_store_compressed=boolIfset,andlog_compressionisalsoset,fiowillstorethelogfilesinacompressedformat.Theycanbedecompressedwithfio,usingthe--inflate-logcommandlineparameter.Thefileswillbestoredwitha.fzsuffix.block_error_percentiles=boolIfset,recorderrorsintrimblock-sizedunitsfromwritesandtrimsandoutputahistogramofhowmanytrimsittooktogettoerrors,andwhatkindoferrorwasencountered.lockmem=intPindownthespecifiedamountofmemorywithmlock(2).Canpotentiallybeusedinsteadofremovingmemoryorbootingwithlessmemorytosimulateasmalleramountofmemory.Theamountspecifiedisperworker.exec_prerun=strBeforerunningthisjob,issuethecommandspecifiedthroughsystem(3).Outputisredirectedinafilecalledjobname.prerun.txt.exec_postrun=strAfterthejobcompletes,issuethecommandspecifiedthoughsystem(3).Outputisredirectedinafilecalledjobname.postrun.txt.ioscheduler=strAttempttoswitchthedevicehostingthefiletothespecifiedioschedulerbeforerunning.disk_util=boolGeneratediskutilizationstatistics,iftheplatformsupportsit.Defaultstoon.disable_lat=boolDisablemeasurementsoftotallatencynumbers.Usefulonlyforcuttingbackthenumberofcallstogettimeofday,asthatdoesimpactperformanceatreallyhighIOPSrates.Notethattoreallygetridofalargeamountofthesecalls,thisoptionmustbeusedwithdisable_slatanddisable_bwaswell.disable_clat=boolDisablemeasurementsofcompletionlatencynumbers.Seedisable_lat.disable_slat=boolDisablemeasurementsofsubmissionlatencynumbers.Seedisable_slat.disable_bw=boolDisablemeasurementsofthroughput/bandwidthnumbers.Seedisable_lat.clat_percentiles=boolEnablethereportingofpercentilesofcompletionlatencies.percentile_list=float_listOverwritethedefaultlistofpercentilesforcompletionlatenciesandtheblockerrorhistogram.Eachnumberisafloatingnumberintherange(0,100],andthemaximumlengthofthelistis20.Use':'toseparatethenumbers,andlistthenumbersinascendingorder.Forexample,--percentile_list=99.5:99.9willcausefiotoreportthevaluesofcompletionlatencybelowwhich99.5%and99.9%oftheobservedlatenciesfell,respectively.clocksource=strUsethegivenclocksourceasthebaseoftiming.Thesupportedoptionsare:gettimeofdaygettimeofday(2)clock_gettimeclock_gettime(2)cpuInternalCPUclocksourcecpuisthepreferredclocksourceifitisreliable,asitisveryfast(andfioisheavyontimecalls).Fiowillautomaticallyusethisclocksourceifit's supported and considered reliable on the system it is running on, unless another clocksource is specifically set. For x86/x86-64 CPUs, this means supporting TSC Invariant. gtod_reduce=bool Enable all of the gettimeofday() reducing options (disable_clat, disable_slat, disable_bw) plus reduce precision of the timeout somewhat to really shrink the gettimeofday() call count. With this option enabled, we only do about 0.4% of the gtod() calls we would have done if all time keeping was enabled. gtod_cpu=int Sometimes it'scheapertodedicateasinglethreadofexecutiontojustgettingthecurrenttime.Fio(anddatabases,forinstance)areveryintensiveongettimeofday()calls.Withthisoption,youcansetoneCPUasidefordoingnothingbutloggingcurrenttimetoasharedmemorylocation.Thentheotherthreads/processesthatrunIOworkloadsneedonlycopythatsegment,insteadofenteringthekernelwithagettimeofday()call.TheCPUsetasidefordoingthesetimecallswillbeexcludedfromotheruses.FiowillmanuallyclearitfromtheCPUmaskofotherjobs.continue_on_error=strNormallyfiowillexitthejobonthefirstobservedfailure.Ifthisoptionisset,fiowillcontinuethejobwhenthereisa'non-fatal error'(EIOorEILSEQ)untiltheruntimeisexceededortheI/Osizespecifiediscompleted.Ifthisoptionisused,therearetwomorestatsthatareappended,thetotalerrorcountandthefirsterror.Theerrorfieldgiveninthestatsisthefirsterrorthatwashitduringtherun.

本文系转载,前往查看

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

本文系转载前往查看

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

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