fio基础14

2022-04-24 00:23:08 浏览数 (1)

rate_iops_min=int If fio doesn'tmeetthisrateofIO,itwillcausethejobtoexit.Thesameformatasrateisusedforreadvswriteseparation.rate_process=strThisoptioncontrolshowfiomanagesratedIOsubmissions.Thedefaultis'linear',whichsubmitsIOinalinearfashionwithfixeddelaysbetweenIOsthatgetsadjustedbasedonIOcompletionrates.Ifthisissetto'poisson',fiowillsubmitIObasedonamorerealworldrandomrequestflow,knownasthePoissonprocess(https://en.wikipedia.org/wiki/Poisson_process).Thelambdawillbe10^6/IOPSforthegivenworkload.latency_target=intIfset,fiowillattempttofindthemaxperformancepointthatthegivenworkloadwillrunatwhilemaintainingalatencybelowthistarget.Thevaluesisgiveninmicroseconds.Seelatency_windowandlatency_percentilelatency_window=intUsedwithlatency_targettospecifythesamplewindowthatthejobisrunatvaryingqueuedepthstotesttheperformance.Thevalueisgiveninmicroseconds.latency_percentile=floatThepercentageofIOsthatmustfallwithinthecriteriaspecifiedbylatency_targetandlatency_window.Ifnotset,thisdefaultsto100.0,meaningthatallIOsmustbeequalorbelowtothevaluesetbylatency_target.max_latency=intIfset,fiowillexitthejobifitexceedsthismaximumlatency.ItwillexitwithanETIMEerror.rate_cycle=intAveragebandwidthfor'rate'and'rate_min'overthisnumberofmilliseconds.cpumask=intSettheCPUaffinityofthisjob.TheparametergivenisabitmaskofallowedCPU's the job may run on. So if you want the allowed CPUs to be 1 and 5, you would pass the decimal value of (1 << 1 | 1 << 5), or 34. See man sched_setaffinity(2). This may not work on all supported operating systems or kernel versions. This option doesn'tworkwellforahigherCPUcountthanwhatyoucanstoreinanintegermask,soitcanonlycontrolcpus1-32.ForboxeswithlargerCPUcounts,usecpus_allowed.cpus_allowed=strControlsthesameoptionsascpumask,butitallowsatextsettingofthepermittedCPUsinstead.SotouseCPUs1and5,youwouldspecifycpus_allowed=1,5.ThisoptionsalsoallowsarangeofCPUs.SayyouwantedabindingtoCPUs1,5,and8-15,youwouldsetcpus_allowed=1,5,8-15.cpus_allowed_policy=strSetthepolicyofhowfiodistributestheCPUsspecifiedbycpus_allowedorcpumask.Twopoliciesaresupported:sharedAlljobswillsharetheCPUsetspecified.splitEachjobwillgetauniqueCPUfromtheCPUset.'shared'isthedefaultbehaviour,iftheoptionisn't specified. If split is specified, then fio will will assign one cpu per job. If not enough CPUs are given for the jobs listed, then fio will roundrobin the CPUs in the set. numa_cpu_nodes=str Set this job running on spcified NUMA nodes'CPUs.Theargumentsallowcommadelimitedlistofcpunumbers,A-Branges,or'all'.Note,toenablenumaoptionssupport,fiomustbebuiltonasystemwithlibnuma-dev(el)installed.numa_mem_policy=strSetthisjob's memory policy and corresponding NUMA nodes. Format of the argements: <mode>[:<nodelist>] `mode'isoneofthefollowingmemorypolicy:default,prefer,bind,interleave,localFor`default' and `local'memorypolicy,nonodeisneededtobespecified.For`prefer', only one node is allowed. For`bind'and`interleave', it allow comma delimited list of numbers, A-B ranges, or 'all'. startdelay=time Start this job the specified number of seconds after fio has started. Only useful if the job file contains several jobs, and you want to delay starting some jobs to a certain time. runtime=time Tell fio to terminate processing after the specified number of seconds. It can be quite hard to determine for how long a specified job will run, so this parameter is handy to cap the total runtime to a given time. time_based If set, fio will run for the duration of the runtime specified even if the file(s) are completely read or written. It will simply loop over the same workload as many times as the runtime allows. ramp_time=time If set, fio will run the specified workload for this amount of time before logging any performance numbers. Useful for letting performance settle before logging results, thus minimizing the runtime required for stable results. Note that the ramp_time is considered lead in time for a job, thus it will increase the total runtime if a special timeout or runtime is specified. invalidate=bool Invalidate the buffer/page cache parts for this file prior to starting io. Defaults to true. sync=bool Use sync io for buffered writes. For the majority of the io engines, this means using O_SYNC.

0 人点赞