fio create multithreaded jobs

  • Create a new file and add following lines to the file. Let's name the file as "fio_script"
    		
    		[jobname]
    		rw=read
    		size=14000
    		bs=4090
    		ioengine=sync
    		numjobs=2
    		thread
    		
    		
  • We run fio script by using fio command:
     
    		
    		Syntax $fio <scriptname>
    		Eg: $fio fio_script
    		
    		
  • 'thread' command tells fio to create n threads (2 threads in this example) to complete the job instead of forking n processes.