fio custom job

  • Create a file (you can change 'size' command of fio according to this file's size. Let's assume that the name of this file is 'seqRead'.
  • Create a new file and add following lines to the file. Let's name the file as "fio_script"
    		
    		[jobname]
    		rw=randread
    		size=14000
    		bs=4090
    		ioengine=sync
    		numjobs=2
    		thread
    		filename=seqRead
    		
    		
  • We run fio script by using fio command:
     
    		
    		Syntax $fio <scriptname>
    		Eg: $fio fio_script
    		
    		
  • Let's understand what "filename=xyz" line means:
    • filename option specifies that fio should find file of this name and do file operations (such as random read by 2 threads (both threads will do random read separately) in this example) instead of creating its own jobfiles. </ul> </ul>