summaryrefslogtreecommitdiff
path: root/eta.c
AgeCommit message (Collapse)Author
2013-04-15eta: improve output for threads sitting in TD_SETTING_UPJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-04-09Merge branch 'master' into gfioJens Axboe
Conflicts: eta.c fio.h init.c options.c stat.c Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-04-09implement 'unit_base' option to select between KB and Kbit et. al.Steven Noonan
With network testing, it's often desirable to measure in terms of kilobits/megabits rather than kilobytes/megabytes. This adds an option named 'unit_base' which can be set to either '1' or '8', where '1' means represent in terms of bits and '8' means to represent rate in terms of bytes. Signed-off-by: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-04-09num2str: add arguments to represent values in terms of bytes/bitsSteven Noonan
This allows for representing I/O rates in terms of e.g. megabits (Mb) versus megabytes (MB). Signed-off-by: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-03-04Merge branch 'master' into gfioJens Axboe
Conflicts: init.c Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-02-22Add --eta-newline optionJens Axboe
For certain situations, it's handy to force a new line in the ETA output. It allows you to easily track what happened, without having to do detailed logging. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-02-07Merge branch 'master' into gfioJens Axboe
Conflicts: Makefile configure fio.h Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-02-07Fix crash and precision of ETA with zonesJens Axboe
If zonesize was bigger than zoneskip, we could encounter a divide by zero when calculating the number of bytes. Additionally, the math was just wrong for most cases of zone settings. Improve that. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-02-04Merge branch 'master' into gfioJens Axboe
Conflicts: Makefile fio.h parse.c Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-01-31Only disable stdout ETA output if results are going to stdoutJens Axboe
If they are being redirected to a file with --output, then we can still use the normal runtime ETA output on stdout. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-01-31Merge branch 'master' into gfioJens Axboe
Conflicts: Makefile client.c configure fio.c fio.h server.c server.h Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-01-30Add unified_rw_reporting optionJens Axboe
If this is set, then fio will sum and display just a single set of statistics for any IO type. By default, fio accounts and reports each data direction separately. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-01-24Merge branch 'master' into gfioJens Axboe
Conflicts: Makefile backend.c client.c fio.c fio.h ioengine.h options.c os/os-linux.h server.c Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-01-23eta: improve accuracy for rwmix workloads and verifyJens Axboe
We assume 50/50 for mixed workloads. That's silly, use the actual number specified instead. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-11-14Merge branch 'master' into gfioJens Axboe
Conflicts: Makefile backend.c client.c fio.h options.c parse.c parse.h server.c server.h Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-11-07Make the zipf/pareto state per fileJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-09-24Merge branch 'master' into gfioJens Axboe
Conflicts: Makefile backend.c client.c fio.h init.c io_ddir.h options.c server.h stat.c stat.h Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-09-17Add --output-format command line optionJens Axboe
Right now we have normal, terse, and json output. Lets add a parameter that controls how to output results, instead of having options for both terse and json outputs. If we are going to add a 4th output type in the future, it's only going to get more messy. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-09-14Add ddir_rw_sum()Jens Axboe
We sum up the three data direction primitives a lot, this is more readable. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-09-14Add support for trim as a workload typeShaohua Li
This only works on Linux so far, and it's always sync given what the interface to the kernel looks like. Also restricted to pure block devices. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-08-21eta: fix bug where t_rate[] should me m_rate[]Jens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-08-21Merge branch 'master' into gfioJens Axboe
Conflicts: eta.c Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-08-20eta: make CR= display more easy to understandJens Axboe
Currently we sum up read and write IOPS/BW rates, but that reads a bit strange when a given workload only does reads OR writes. The user then thinks that fio mis-parsed the setting, reading twice as much as expected. Only sum up for the read OR write side if one direction is given. For a mixed workload, it's still the sum of both. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-05-11Merge branch 'master' into gfioJens Axboe
Conflicts: client.c eta.c server.c server.h Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-05-11eta: ETA bandwidth was off by 1.024Jens Axboe
Same fix as 033bbb51 essentially. Since mtime is a 1000th of a second, for the usual option of having 1024 be the KB base, we end up being off by 1.024 if we don't multiply by 1000 before dividing by the runtime (and then dividing by 1024 to get to next power-of-2). Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-05-07Merge branch 'master' into gfioJens Axboe
Conflicts: Makefile backend.c client.c fio.h os/windows/install.wxs server.c server.h Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-04-18Fix for crash with more than ~500 jobsJens Axboe
We simply overwrite our status output buffer, not a terribly good idea. Reported-by: Roger Sibert <Roger_Sibert@xyratex.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-04-02Merge branch 'master' into gfioJens Axboe
2012-04-02Add indication of whether a job got killedJens Axboe
We have 'X' for exited with error, add 'K' for killed by signal as well. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-03-30Enhance the reaped status displayJens Axboe
Instead of just printing a '_' for a job that has exited, allow the user to tell if the job exited with an error or not. A normally reaped job that ran to completion without errors will have the '_' displayed. If the job exited with an error, then an 'X' will be displayed instead. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-02-29Update GUI to attempt to graphically handle ETA outputJens Axboe
The whole layout will probably be changed, but for now it demonstrates how to properly integrate with the net client to handle the data and output it. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-02-24fio: Use a progress bar instead of a labelStephen M. Cameron
Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-02-24fio: capture thread status displayStephen M. Cameron
The thread status display uses printf to stdout. Need a way to capture it for the gui. Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2011-10-12Fix off-by-one in jobs_eta allocationJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2011-10-09client/server: request ETA instead of having the server send it automaticallyJens Axboe
Also changes the 'serial' of the command to a tag, that's passed back and forth for commands that need to use it. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2011-10-03server: send network copy of run_str[]Jens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2011-10-03server: add ETA as a specific commandJens Axboe
No more text passing for ETA. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2011-10-03Abstract out calculation of ETA from display of ETAJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2011-09-30Start of functional clientJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2011-09-01Use r/R/w/W instead of m/M for mixed workloads with 100% reads or writesJens Axboe
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
2011-07-06Add --max-jobs/-j command line optionJens Axboe
And shrink OSX max default number of jobs supported. OSX has, by default, a very small shared memory segment available. Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
2011-01-19Get rid of shadow declarationsJens Axboe
Reported-by: Bruce Cran <bruce@cran.org.uk> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
2010-12-14fix ramp_inSigned-off-by Steven Pratt
There are a couple of problems with the relatively new ramp_in feature of fio. First, the estimated time to completion did not correctly take it into account and bounces around. Second and more importantly, the runtime was including ramp in time in throughput calculations even though the IO done during that time was ignored, thus making throughput metrics incorrect. This patch fixes both. Signed-off-by Steven Pratt <slpratt@austin.ibm.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
2010-11-11Call path below SIGALRM isn't safeJens Axboe
We do allocations, open files, printf, etc from the SIGALRM signal handler which gets run every 250 msecs. This isn't necessarily safe and could deadlock. Move it to thread context instead. Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
2010-05-17Improve ETA for fill_device based job filesJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-09-11Silence the style/whitespace policeJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-07-18A few more kb_base fixupsJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-07-17Get rid of KiB vs KB distinctionJens Axboe
Confuses more than it does good, drop it and default to just using KB, MB, etc. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-06-09Add support for limiting only rate in only one directionJens Axboe
So now you can say 'limit writes to 10MB/sec' and have reads go full throttle, for instance. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-06-03Improve throughput ETA displayJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>