Re: generating latency logs

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

 



On 08/07/2012 03:03 AM, Mike Ryan wrote:
> I'm trying to generate a latency log, but no log file is ever created.
> I'm using the version tagged as fio-2.0.8 in git. This is how I'm
> invoking fio:
> 
>   fio --latency-log=/tmp/log --output=/tmp/log random_write.fio

The latency/bw logs are named from the job name, so you can't actually
give it a specific name with the (global) command line option. You'd
need to use the job option to do that.

That said, it does look broken in that we don't inherit the global
setting. Does the below make it work?

diff --git a/init.c b/init.c
index 3865d09..6aad492 100644
--- a/init.c
+++ b/init.c
@@ -1169,6 +1169,8 @@ static int fill_def_thread(void)
 
 	fio_getaffinity(getpid(), &def_thread.o.cpumask);
 	def_thread.o.timeout = def_timeout;
+	def_thread.o.write_lat_log = write_lat_log;
+	def_thread.o.write_bw_log = write_bw_log;
 
 	/*
 	 * fill default options

-- 
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