Re: Proper way to shut down FIO in Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/13/18 12:56 PM, Matt Freel wrote:
> I'm using FIO to run IOs to a number of block devices.  I'm looking for
> the proper way to shut down all the threads that are spawned.
> 
> I'm doing the following:
> 
> /usr/bin/pkill --signal INT fio
> 
> Most of the time this works fine, but I do have cases where some of the
> FIO processes remain open.  Eventually I get a 300s timeout and then
> they're killed.
> 
> A couple questions:
> 
> 1.	When these threads have to be ungracefully killed, do the results
> still get counted in the output file?
> a.	I'm using JSON output file
> 2.	Is there a better way I should be killing all the threads?

You want to SIGINT the main process, not all the jobs that are running.
If you do that, you would get the same behavior as when you ctrl-c
a running job. The way you are doing it, you are randomly killing
job processes. You want to let the main thread shut things down
instead.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux