History log of /external/fio/stat.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
365a153cfe8a3601af5d7c6c87679c20e84314e5 07-Mar-2015 Mohamad Ayyash <mkayyash@google.com> fio: Fix a GCC 4.9 allignment error.

Causes a Bus Error when running fio.

Change-Id: I388673eb3c5d596026647543d14c47ba08fef3c7
/external/fio/stat.c
ff0dbe14c236da5b0e4ab68bc65e1ac6fbeb1ce8 27-Feb-2015 Ben England <bengland@redhat.com> Patch to make per-thread IOPS more accurate

The following small patch to stat.c (using fio 2.2.4 from github)
outputs IOPS field in JSON format as a floating point number instead of
an integer. This improves accuracy in case where fio --client runs use
lots of threads with single-digit IOPS per thread. It seems to work,
here's a snippet of output from a short fio run with rate_iops=10 in the
job file.

"write" : {
"io_bytes" : 6464,
"bw" : 646,
"iops" : 10.10,
"runtime" : 10000,

Why the patch: IOPS number is rounded to integer in stats.c calls to
num2str(). This doesn't sound like much of a problem because in many
use cases, with large IOPS number the error is negligible. But in this
use case where we have many threads (we would like to get into the
thousands eventually), the IOPS/thread may be quite low and integer
rounding can introduce significant error. For example, if we are doing
5,000 IOPS over 1,000 threads, average throughput is 5 IOPS and
potential error is ~20%, but some threads could have much higher error
in IOPS because of integer format.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
ffb17c0048ff2e4ba97478152729d1f011057d0f 06-Jan-2015 Jens Axboe <axboe@fb.com> Adjust ctime_r buf down to 32

We need 'at least 26 bytes', but not all 64.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
0a24a7391078256a4481cab56afb27d58da28768 06-Jan-2015 Steve ODriscoll <sodriscoll@nexgenstorage.com> Add timestamp to json output

Modified by Jens to add humanly readable time as well.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
f38eaf70275e7d8b5ec0e6ef7737fdaaa735e11e 17-Dec-2014 Jens Axboe <axboe@fb.com> stat: always show disk util in terse v3/v4

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
4d6922b77db7109369f0499506cf2cf7a62aba45 12-Nov-2014 Jens Axboe <axboe@fb.com> Fix some shadow warnings for some gcc variants

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
c38e38f16f77567a423f75c26e1929cbe4902e24 10-Nov-2014 Vasily Tarasov <tarasov@vasily.name> Fix for a race when fio prints I/O statistics periodically

Below is the demonstration for the latest code in git:

Job-file:

[job]
filename=/dev/sda
rw=randread
blocksize=4096
direct=1
time_based=1
runtime=300
numjobs=16

Command line:

fio --output-format=json --status-interval=10 /tmp/job.file | tee /tmp/fio.out

After parsing json and printing per-job "read->runtime" and "read->iops" in two
columns, one can see this:

runtime iops
9854 4762
19861 4724
29867 4711
39873 4705
49880 4701
59886 4698
69894 4696
79900 4694
89907 4693
99913 4692
109919 4692
119926 4691
129933 4691
139940 4691
149946 4691
159953 4690
169959 4690
179966 4690
189972 4690
199978 4690
209984 4690
219990 4690
229996 4690
240002 4690
250009 4690
260015 4690
270021 4690
280027 4690
290033 4690
600043 2344 <--- You can see a spurious jump in runtime here
300001 4690

The problem is two-fold, IMHO:

1) td->ts.runtime[DDIR_READ/DDIR_WRITE/DDIR_TRIM] are set in microseconds
instead of milliseconds in thread_main() function. The values are later
converted to milliseconds (after exiting from the loop in thread_main()),
but it is too late for the out-of-band access by the helper_thread
(the one that prints periodic statistics).

2) The helper_thread in __show_running_run_stats() temporarily adds to
td->ts.runtime[DDIR_READ/DDIR_WRITE/DDIR_TRIM]
the time that has passed since the beginning of the loop (td->start).
However, the same addition happens in thread_main() by the job
thread and td->start is not reset atomically with this addition.
As a result, the runtime can be added twice. (That's why in the output
we see 600043, which is approximately twice larger than the
previous reading).

My proposal is to make the job threads updating both td->ts.runtime and
td->start atomically by using an already existing stat_mutex.
__show_running_run_stats() already takes this mutex where needed.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
7fe36313273ef051670d16aa27953699fd5cdf06 24-Oct-2014 Jens Axboe <axboe@fb.com> Consolidate disk util, eta, and status check thread

We don't need two, we can just have one do everything.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
04247864f004c0a20ceb9fb0c0ce3c3a3c512326 24-Oct-2014 Jens Axboe <axboe@fb.com> stat: avoid hang with race in stat thread exit and rusage update

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
fdb0da8028e156c0da43aca18e1423d1b300bdad 23-Oct-2014 Jens Axboe <axboe@fb.com> Start and stop status interval (or file) thread separately

This gets rid of the need to create threads on the fly for this,
and we can manage it and stop it before we do real stats at
the end.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
c2d6668d35e9bdc0a56311fcc769f8eb00f62727 13-Oct-2014 Jens Axboe <axboe@fb.com> stat: set kb/unit_base, if not already set

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
e93fd530b57b2cd4bf8205d557c509dbdb2a69cc 10-Oct-2014 Jens Axboe <axboe@fb.com> stat: add total/short/drop ios to the json output

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
67e149c4c2b580089287813246344908770c3be9 09-Oct-2014 Jens Axboe <axboe@fb.com> stat: add dropped ios to the standard output

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
2e627243f7877cefb3606ef99ec24debe32ac98c 25-Jul-2014 Jens Axboe <axboe@fb.com> Don't grab stat mutex for final stat output

We should not need it, and there's a bug with getting stuck on it
that hasn't been fully debugged/understood yet. So for now, lets
just forget about the mutex for final output.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
560f4617435902ae34a8ca4de1a19a9208becaaf 21-Jul-2014 Jens Axboe <axboe@fb.com> stat: move stat mutex grab to thread

No need to grab it from the parent.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
bac4af11424ddeb340968c4ba4fc88df4f5c1ad0 03-Jul-2014 Jens Axboe <axboe@fb.com> Add support for storing compressed logs

If log_store_compressed is set, fio won't decompress for storing
them in a file. Instead, you can use --inflate-log=logfile.fz to
output the contents to stdout.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
38a812d7fa79a673855efb6324c8fc68b92b89c1 03-Jul-2014 Jens Axboe <axboe@fb.com> Add support for runtime log compression

If log_compression=64M is specified, fio will "bite" off chunks of
the IO logs and runtime compress them with zlib. This can greatly
reduce the amount of memory required to do iops/bw/lat logging of
a run, at the cost of using some background CPU for the compression.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
ccefd5fea1de87a83db9c372985b69f4fbbe922c 01-Jul-2014 Jens Axboe <axboe@fb.com> Add option for including byte offset for each log entry

When iops/latency/bw logs are used in the job, we can note the offset
at which the specific data entry took place.

Based on an initial patch from Abutalib Aghayev <agayev@gmail.com>.
Extended by me to:

- Not do this by default, as not to add 8 bytes to each log entry
stored.

- Add support for the client/server protocol.

- Add documentation.

We should bump the server protocol rev again, but that was just done
in the previous commit, so...

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
3660ceae229f08b4086279be7c82e86926f0304b 15-Apr-2014 Jens Axboe <axboe@fb.com> strcpy: kill last of the suspect ones

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
6e5634f1008d9834d828653e6ff75bb3f95728d1 14-Apr-2014 Jens Axboe <axboe@fb.com> stat: warn on failure to detach DU thread

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
0956264f3dca6a0467092fe9ef335f3cae1c6177 14-Apr-2014 Jens Axboe <axboe@fb.com> stat: fix potential divide-by-zero

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
0a3c52f0875c85b6750239a8b65bfe230d28df35 14-Apr-2014 Jens Axboe <axboe@fb.com> stat: fix wrong check for whether we have a description or not

It's an array, hence never NULL. Check for size instead.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
48b16e2725249985c9f1841928eb08574c24d3cc 14-Apr-2014 Jens Axboe <axboe@fb.com> stat: check that TEMP environment variable is half-way sane

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
c0c4b1d42e39c2ea4cb2d58e5a17aec4b00263d9 02-Apr-2014 Jens Axboe <axboe@fb.com> Merge branch 'erwan/clang' of https://github.com/enovance/fio
a806bf2e054ca389a56130849a4394ac9d4334b6 02-Apr-2014 Erwan Velu <erwan.velu@enovance.com> stat: fixing bw_agg reporting

It was wrongly set to the mean value instead of the agg one.
/external/fio/stat.c
10aa136bddbaa7c845ab4eacb4a9a4a88d6657a3 02-Apr-2014 Jens Axboe <axboe@fb.com> Cleanup symbols that should be static

Run analysis on symbols not used outside of their current file,
turn them into statics.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
4e59d0f3a3ff569bddb31fe6927a9faf204ae9bf 14-Mar-2014 Jens Axboe <axboe@fb.com> Bump length of description field to 256 chars

Ensure that string always end up \0 terminated, too.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
77d9967586f9cc8d445056510e25be4eeded2689 13-Mar-2014 Jens Axboe <axboe@fb.com> Disable status file updates on error

If fio doesn't have permission to unlink() the status file,
it'll continually dump status updates. If this happens, stop
doing status updates and log an error indicating why.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
dac45f23c3c7d146f7df82047ae7f25abf231ed3 12-Mar-2014 Jens Axboe <axboe@fb.com> stat: fixup fio-dump-status file location

Don't use /tmp in the actual file name. And kill unused Windows
os_get_tmpdir().

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
6bb58215842760895071d9f331da4dc2dfc16f30 21-Feb-2014 Jens Axboe <axboe@fb.com> Improve latency_target runs

Reset the stats when we have found our target, and then do
another latency_window run with those settings so that the
final results reflect the probed values.

Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
9900706854ce4919afb064ef6be42447f698d581 20-Feb-2014 Peter Oberparleiter <oberpar@linux.vnet.ibm.com> fio: flush log files on test end

Ensure proper flushing of all logs at the end of tests.

Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
2b8c71b0f046434d22dffd15308a326bca0c8d16 20-Feb-2014 Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> fio: allow to combine terse output with any selected output type

This patch adds the option --append-terse to be able to request a
combination of any given selected output format AND terse output based
on the same data.

This will help all users that want to parse the terse data for further
use, but need to look into the logs every now and then which then should
be readable.

Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
/external/fio/stat.c
3e260a46ea9a8de224c3d0a29a608da3440f284a 09-Dec-2013 Jens Axboe <axboe@kernel.dk> Add options to have fio latency profile a device

This adds three new options:

- latency_target. This defines a specific latency target, in usec.
- latency_window. This defines the period over which fio samples.
- latency_percentile. This defines the percentage of IOs that must
meet the criteria specified by latency_target/latency_window.

With these options set, fio will run the described workload and
vary the queue depth between 1 and iodepth= to find the best
performing spot that meets the criteria specified by the three
options.

A sample job file is also added to demonstrate how to use this.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
952b05e00103bf45576e1860cde0626bd42ed52a 31-Oct-2013 Castor Fu <castor@alumni.caltech.edu> Add json output for client/server mode

In client/server mode, this adds support for json mode. Each job's
details are gradually accumulated and upon completion the client
dumps the full json tree. The tree is annotated with the server
host and port.

Signed-off-by: Castor Fu <castor@alumni.caltech.edu>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
3c568239a319087a965b06bc2ed94d058810100f 30-Sep-2013 Jens Axboe <axboe@kernel.dk> log: disable log, if realloc fails

Right now we just segfault, if realloc() returns NULL. Handle
this a bit more gracefully, by just disabling logging if that
happens. Fio will also print an error for that case.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
9b7e600ddb531fd359322bbc14e358c10761fe57 02-Aug-2013 Erwan Velu <erwan@enovance.com> iolog: Logging blocksize in IOPS traces

When saving bandwidth's with write_bw_log option, the last column
provides the blocksize used during the run.

When doing the same with write_io_log option, the last column was always
set to 0 which is confusing when reading the log file later.

This patch put both write_bw_log & write_io_log using the same semantic
by reporting the blocksize for every sample.
/external/fio/stat.c
ee0ccb794be1d3c677e2c02b416a8702d59811d7 22-Jul-2013 Erwan Velu <erwan@enovance.com> core: Removing duplicated code

Some variable are assigned during initialization and another time with
the same value a very few later.

That's clearly useless and could lead to an error if only one is changed.
/external/fio/stat.c
a0bafb7d88c33b9046073e0bc4af7d64d0caa30b 28-Apr-2013 Bruce Cran <bruce@cran.org.uk> Add support for dumping the status on Windows.

Windows uses a per-user temporary directory, with the path stored in the TEMP
environment variable. Update check_status_file to check both the Unix TMPDIR
and Windows TEMP variables before falling back to /tmp.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
cef9175e52e8a240117b9f45b228fdaa0f1c0572 27-Apr-2013 Jens Axboe <axboe@kernel.dk> Ensure that stat outputs are serialized

Two issues:

- We don't want potentially two stat outputs running at the same time.
This could potentially happen if USR1 or interval stats race with
the thread exit.

- We could potentially crash if the interval or USR1 signaled stat
output trigger when fio is tearing down. Let the main thread wait
for any in-progress output in that case.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
fdd5f15f8231e8c91c4deff22e630a34addd0fef 27-Apr-2013 Vincent Kang Fu <VFu@fusionio.com> Add log_info_flush()

If fio dumps status through -USR1 or similar and output is
being stored in a file, the buffering on the file descriptor
by the library can cause is not to see all the output. Ensure
that it gets flushed after dumping stats.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
06464907159baf7a1eeac654a023743e33f28d86 25-Apr-2013 Jens Axboe <axboe@kernel.dk> Add support for other ways of triggering intermediate result outputs

Fio has support for using the USR1 signal to dump the current
results while continuing to run. Add a --status-interval parameter
to allow this to be configured to automatically happen every X
seconds.

There's also support for signaling fio through the file system. To
do that, simply touch /tmp/fio-dump-status. When fio sees this file,
it will unlink and dump the current results.

A small tweak is needed for the file approach to work in Windows.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
4e0a8fa2593006505b7f4e18931a201d221b49e9 15-Apr-2013 Jens Axboe <axboe@kernel.dk> Fixup bad logging types

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
e9d806fa2661cf685fc5c5d0172ff15193c9c8b1 15-Apr-2013 Dmitry Monakhov <dmonakhov@openvz.org> fio: fix segfault on 32bits platforms

Uses wrong type in log_info().

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
b4ea84daaf58566fe21e50d6540a8bc287d91863 11-Apr-2013 Jens Axboe <axboe@kernel.dk> Fix a few 4.8 extra anal warnings

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
22f80458a520d0c5371c64bf91d24cdd21dff825 09-Apr-2013 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio

Conflicts:
eta.c
fio.h
init.c
options.c
stat.c

Signed-off-by: Jens Axboe <axboe@kernel.dk>
d686990a3c4bf23823d78c9b69196b24028491ee 09-Apr-2013 Steven Noonan <steven@uplinklabs.net> stat.c: make 'bw' summary line respect 'unit_base' option

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
142c7f2d081337362afd85c1613627d8ee9ddeaf 09-Apr-2013 Steven Noonan <steven@uplinklabs.net> stats: show summary bandwidth in terms of kb_base

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
ad705bcb7e79a7cdb9891db17b4c40b13b6c30c3 09-Apr-2013 Steven Noonan <steven@uplinklabs.net> implement 'unit_base' option to select between KB and Kbit et. al.

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>
/external/fio/stat.c
73798eb297e4d4afa2f67d72eb2a3618592a1c4d 06-Apr-2013 Steven Noonan <steven@uplinklabs.net> num2str: add arguments to represent values in terms of bytes/bits

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>
/external/fio/stat.c
62232d0618e3f5aa4805b4be34e872895ba1beb2 05-Apr-2013 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio

Conflicts:
Makefile

Signed-off-by: Jens Axboe <axboe@kernel.dk>
b9e1b49128450bcfd792165354b98026e3ac2734 03-Apr-2013 Shaohua Li <ShLi@fusionio.com> Fixup json bandwidth output

The final version sent in for inclusion had the check mixed
up, so it doesn't output bandwidth unless the calculation
failed.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
c97f1ad6d2a2fb4fe9f3b15e40158aac21e5699e 28-Mar-2013 Jens Axboe <axboe@kernel.dk> Fix usr/sys/ctx/majf/minf for -USR1 usage

Let the threads themselves update their stats.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
427899c4c9a09e245f0dd1210e824cfcea8212f8 21-Feb-2013 Huadong Liu <HLiu@fusionio.com> check output_format before calling show_idle_prof_stats()

Do the proper checks for output format type and whether we are
a server backend or not.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
609040037aabb49b7ac65562587c17d990f6b303 21-Feb-2013 Huadong Liu <HLiu@fusionio.com> check output_format before calling show_idle_prof_stats()

Do the proper checks for output format type and whether we are
a server backend or not.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
9db01ef976006c002b05fa4e4ec589eb029aac5b 07-Feb-2013 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio

Conflicts:
Makefile
configure
fio.h

Signed-off-by: Jens Axboe <axboe@kernel.dk>
3dc1e5b28bc4d9b673fe81fc4884b1a621ffe9de 07-Feb-2013 Jens Axboe <axboe@kernel.dk> stat: fix wrong type used for 32-bit compiles

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
eef02441621aa969f01a1a331e0215dd587d25af 06-Feb-2013 Jens Axboe <axboe@kernel.dk> Handle normal output wrapping of the percentile list

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
619adf9c5aa472904eec3a62f13030e6b261ea25 06-Feb-2013 Jens Axboe <axboe@kernel.dk> Cleanup the percentile output formatting

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
435d195a9da120c5a618129cdb73418f4748c20a 06-Feb-2013 Vincent Kang Fu <VFu@fusionio.com> Handle percentile lists with higher precision that 2 digits

We cap the output at %2.2f right now, that's not always enough.
Make the parser check and store the precision required to
output the list correctly.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
90b7a96d9573a14f20470af2aa0dd4e60611a477 04-Feb-2013 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio

Conflicts:
Makefile
fio.h
parse.c

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fd112d34a2cfdc2d9efcd394e38b6d87b357c23d 02-Feb-2013 Vincent Kang Fu <VFu@fusionio.com> Fix percentile_list option

Commit 802ad4a8 broke the parsing of the percentile list,
by neglecting to change the parser type fo a fio_fp64_t.

Also get rid of the def_percentile_list, just set the
default percentile list as the option default.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
95820b6e6c92025df8d89c0bf39b174e53137c41 31-Jan-2013 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio

Conflicts:
Makefile
client.c
configure
fio.c
fio.h
server.c
server.h

Signed-off-by: Jens Axboe <axboe@kernel.dk>
98ffb8f3ecebed9984d1744f142eb8be10c14dbd 30-Jan-2013 Ken Raeburn <raeburn@permabit.com> Fix bugs in [v]snprintf usage

When calling snprintf, supply the full buffer size instead of
one byte less.

When using the returned length from vsnprintf for logging, don't write
more than the actual buffer size (minus one for the trailing \0), in
case the formatted string was truncated.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
f2a2ce0eedb44eaa8689e4cbfa77c79b1751b216 30-Jan-2013 Huadong Liu <HLiu@fusionio.com> Add support for idletime profiling

Idletime profiling allows a benchmark to run while filling the
idle cycles on the server, hence giving you some metric of how
much pressure the system is under. This is useful to be able
to profile and compare changes in a setup or driver, for instance.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
771e58befea806d2d881953050c4e65329eee382 30-Jan-2013 Jens Axboe <axboe@kernel.dk> Add unified_rw_reporting option

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>
/external/fio/stat.c
135be493d843d4cae2966a35cbd22a3058ec8e4b 29-Jan-2013 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio

Conflicts:
Makefile
configure
options.c

Signed-off-by: Jens Axboe <axboe@kernel.dk>
44404c5a7f90aa42c3228b56b6f686f15a50fb29 24-Jan-2013 Jens Axboe <axboe@kernel.dk> Add lib/getrusage.c

Abstract out the SELF/THREAD complication.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
1e5324e723116a5faf9da686993cc79c14d62d4b 14-Nov-2012 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio

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>
40059399870da25608a6c0014d37c014550821ff 23-Oct-2012 Yufei Ren <renyufei83@gmail.com> Replace FIO_HAVE_RUSAGE_THREAD with RUSAGE_THREAD

RUSAGE_THREAD is a more clear macro to enable getrusage() thread support.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
f5fd0b1cd383c4a3cb8fb5078b7e93aecba8847e 20-Oct-2012 Yufei Ren <renyufei83@gmail.com> thread cpu resource statistics bug fix

If `thread' option is enabled, resource usage should be thread
based instead of process based. For the following job,

fio --ioengine=cpuio --cpuload=50 --time_based --runtime=10 --name=j0 --numjobs=4 --thread

before patch, each thread CPU statistics:
...
cpu : usr=199.67%, sys=0.14%, ctx=1475, majf=0, minf=24
...

after patch:
...
cpu : usr=49.80%, sys=0.00%, ctx=79, majf=0, minf=18446744073709538943
...

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
f681d0bac9c42e5d6bcb3601d2f3cfaa1c2cefb4 11-Oct-2012 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio
45054cbec0e624de3b79a795d7dfe1c64cdea934 09-Oct-2012 Saurabh De <SDe@fusionio.com> solaris: fix compile error on ctime_r()

On Solaris, it takes a 3rd length argument.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
d79db1222039e906dd49ae290daa59701f4e2385 24-Sep-2012 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio

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>
f3afa57e36550288340f1b6c694f354ae72654b9 17-Sep-2012 Jens Axboe <axboe@kernel.dk> Add --output-format command line option

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>
/external/fio/stat.c
cc372b17f2827e89da79241f1bbaca1e7c650611 17-Sep-2012 Shaohua Li <shli@fusionio.com> Add a simple json encoder and use it to print fio output in json format

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
3449ab8c4d2addb716105ded698438a1d3811572 14-Sep-2012 Jens Axboe <axboe@kernel.dk> Default to terse version 3

4 will include the trim output, and we'll augment that with json output
as well. To avoid breaking anyone who's using the git pulls for their
testing, we'll default to version 3 for now.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
6eaf09d6e9ca1f8accb057cdb18620b7e53ae33f 14-Sep-2012 Shaohua Li <shli@fusionio.com> Add support for trim as a workload type

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>
/external/fio/stat.c
80666bece308842c36132245e4cbbe9eb0bc506b 01-Aug-2012 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio

Conflicts:
iolog.h
stat.c

Signed-off-by: Jens Axboe <axboe@kernel.dk>
57a64324184090fdc9f5052a6a34ab2b42359a22 14-Jun-2012 Jens Axboe <axboe@kernel.dk> Include end-of-run time in the output

When results are stored, it's convenient to be able to tell
when they were run.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
fb390e242cac8868e01cdc2046c63e04e3d53d70 07-May-2012 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio

Conflicts:
Makefile
backend.c
client.c
fio.h
os/windows/install.wxs
server.c
server.h

Signed-off-by: Jens Axboe <axboe@kernel.dk>
033bbb5119b3135f198b7a6032d484e227d97c69 07-May-2012 Jens Axboe <axboe@kernel.dk> Fix terse bandwidth

Off by 1.024

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
4c6d91e8808fd11f3cee663e42db813b0934c8bb 30-Mar-2012 Jens Axboe <axboe@kernel.dk> Define SIGUSR1 to inform fio to dump run stats while continuing to run

For long running jobs, it may be interesting to see the stats without
having to terminate the job. Set up SIGUSR1 so that it does that,
gives you the stats at that point in time.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
a462baefd211d1847cefbaa500c8aaad2128374b 30-Mar-2012 Jens Axboe <axboe@kernel.dk> Free disk util on exit, not on stats display

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
61b29c20eb4b1d374636d5325fb56c0fa9a574ad 05-Apr-2012 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio

Conflicts:
fio.c
fio.h

Signed-off-by: Jens Axboe <axboe@kernel.dk>
c857cfebb50209b950cbc88b4f74714fdf5be75f 05-Apr-2012 Jens Axboe <axboe@kernel.dk> group reporting: fix bad values of min/max

If you look at the fio output, the group reporting min and max
bandwidth don't match what the actual job reports. This is due
to an error in calculating the min and max values. The aggregate
value is correct, and matches what the job reports.

This did not affect the values that are usually used for reporting,
it's only affecting the group run status output.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
b0df7176176935b4d39fd196ad35f046bbe10333 02-Apr-2012 Jens Axboe <axboe@kernel.dk> Merge branch 'master' into gfio
b852e7cf097cec1c7fb92305f9c3c6b394bb39ad 30-Mar-2012 Jens Axboe <axboe@kernel.dk> Define SIGUSR1 to inform fio to dump run stats while continuing to run

For long running jobs, it may be interesting to see the stats without
having to terminate the job. Set up SIGUSR1 so that it does that,
gives you the stats at that point in time.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
d44256b0094fc2e0516adfaf5126d2de9dc951e7 30-Mar-2012 Jens Axboe <axboe@kernel.dk> Free disk util on exit, not on stats display

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
3c3ed070502bbfec387ded2c43d5e4559ca24a63 27-Mar-2012 Jens Axboe <axboe@kernel.dk> White space spring cleaning

Lets squash them all, with a bit of tooling help.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
946e42764c6cc536d42e55acbf2fa8bc424124bd 23-Mar-2012 Jens Axboe <axboe@kernel.dk> stat: move final \n of terse output to the end

Don't print a new line, description, then another new line.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
ea1fd2e63ed831ae038b2778e1474517bfb15da3 23-Mar-2012 Vikram Seth <seth.vik@gmail.com> Fix terse output with description set

I have seen that using 2.05 version of fio the terse output formatting
has an issue when there is a text description given in the test file.
There is no newline separating the description and the next job stats.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
2f122b135b7319ff8dd04dadf31ff28b301051a3 15-Mar-2012 Jens Axboe <axboe@kernel.dk> Add thread number ID to appropriate network commands

The client doesn't necessarily have a 1:1 mapping between jobs
and its internal job representation, so allow it to tell the
various jobs apart.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
2e33101f218a1603eeecca969f5b7a0e98696a01 05-Mar-2012 Jens Axboe <axboe@kernel.dk> gfio: add os resource usage and io depth display

IO depths is a bit of a hack, needs work.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
e5bd13470beaeed9c4a6835b7b92265fb94173a9 05-Mar-2012 Jens Axboe <axboe@kernel.dk> gfio: add latency bucket display

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
c551f65a0a2a972c19f9c274f3cf24f4b6d98680 05-Mar-2012 Jens Axboe <axboe@kernel.dk> Move stat arrays into show/calc func

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
a269790cd25788dd4226641a3ceab1b3c8fda14b 05-Mar-2012 Jens Axboe <axboe@kernel.dk> Add completion percentiles to results output

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
5a18988ebd18598bf93cfc76ce1e954f2eede438 05-Mar-2012 Jens Axboe <axboe@kernel.dk> stat: move calc of latencies into show function

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
b29ad56266faa33326de00e315d2b34b735fb028 05-Mar-2012 Jens Axboe <axboe@kernel.dk> Unify cli latency display

And export usec_to_msec().

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
421f4a827c192e3e14bfe9973d79a2e4fa8d8792 28-Feb-2012 Jens Axboe <axboe@kernel.dk> Really fix IOPS logging

Commit 9602d8df had a bug where it mistakenly stored
the bytes last seen when doing an IOPS log entry, instead
of the blocks last seen.

Reported-by: Bill Hooper <whooper@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
9602d8df781db46f78a25a02abc75de03a69b6a8 20-Feb-2012 Jens Axboe <axboe@kernel.dk> Fix IOPS logging for mixed read/write workloads

Similar to commit 5daa4ebe, but for the IOPS logging.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
5daa4ebed724cb0223dac4a1386e068f59722dab 20-Feb-2012 Josh Carter <public@joshcarter.com> Fix bandwidth logging for mixed read/write workloads.

fio was maintaining separate read/write stats, but only one timer for
bw_avg_time. Whichever IO direction happened to cross the timer would
get its interval logged; the other data direction would not. Now both
ddir are logged each time we cross bw_avg_time.

Where intervals don't contain any activity in a given ddir, no log
entry is made.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
2f2c69242ba72508fb5429d12e1fd72c3cc1e76c 07-Feb-2012 Jens Axboe <axboe@kernel.dk> stat: fix typo

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
19d3e967ff31c055c1497dd67f4d7305ec1607f4 07-Feb-2012 Jens Axboe <axboe@kernel.dk> stat: NaN fixes

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
531a63265f64f259a08dce0c62255107dd50a33c 02-Dec-2011 Jens Axboe <axboe@kernel.dk> Remove debug/broken assert() in the IOPS logging code

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
7fb28d3661a5833d8be24a014a04ee4548ec1c16 01-Dec-2011 Jens Axboe <axboe@kernel.dk> Only log the period mean if we have samples

We can't use the mean value to determine that, it could in theory
be 0.0 and still have valid samples.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
b8bc8cba9512c6dce4891fda86de675053605ca2 01-Dec-2011 Jens Axboe <axboe@kernel.dk> Add log_avg_msec option

By default, fio will note an entry in the bw/iops/lat logs for every
IO that is completed. This quickly eats up a lot of disk space
for long running jobs. By setting this option to eg 1000, fio will
average the results logged over 1 second instead. This reduces the
resolution of the log, but makes it more manageable.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
2341a37a2df4bca221d5ea25aa7d8a8307407d1a 19-Oct-2011 Keplar kramer <kkramer@fusionio.com> Fix clat latency terse output

The fio HOWTO shows Completion latency percentiles as coming after
Completion latency stats and before total latency stats.

Completion latency percentiles are actually after total latency stats
and before BW stats.

Patch moves completion percentiles to before total latency stats.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
4d658652bac63fd72af8302e27deba5beb381906 17-Oct-2011 Jens Axboe <axboe@kernel.dk> Add terse version 2 output format

Default is the new format, but allow a user to set version 2 for
easier backwards compatability with older scripts.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
72c27ff8f2eaf945ae34776dab4da3fee753707d 16-Oct-2011 Jens Axboe <axboe@kernel.dk> Fix problem with mixing is_backend and terse_output

Always send disk util and group_run_stats, even if terse
output got set in the server. Also fixes a disk util leak
for !terse_output.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
7e1773ba2033a2f70bcbb36c07dc8743c6ce05d1 14-Oct-2011 Jens Axboe <axboe@kernel.dk> Pretty up output a bit

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
b7017e324de0484b5b4db881bdb280611523cf7e 14-Oct-2011 Jens Axboe <axboe@kernel.dk> Scale bw output to MB/sec if larger than 99999 KB/sec

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
5e726d0a29b815f526f835e44afe3225522c6c20 14-Oct-2011 Jens Axboe <axboe@kernel.dk> Add fio version to terse output

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
259e47dea8db94a372a73b07b5245d43d4f9ab92 13-Oct-2011 Jens Axboe <axboe@kernel.dk> Only print ts->description if set for non-terse output

Identical to commit 4b0f2258, but for non-terse output.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
4b0f22588568035952ea4c4673fdb1d7f5444eed 13-Oct-2011 Jens Axboe <axboe@kernel.dk> Check string length of ts->description, not value

It's no longer a pointer. Fix a buglet in the terse output
printing.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
c7c6cb4cb3114ec4ce3107e15c184e161b50122e 13-Oct-2011 Jens Axboe <axboe@kernel.dk> Move IEEE754 support code to lib/

It's not strictly core code.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
f2f788dd732d97c2c3a5f5dd93223a7bfafcc410 13-Oct-2011 Jens Axboe <axboe@kernel.dk> Add disk utilization to terse format output

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
1db92cb6b3db5965a52359cb2dab7ebd3f476f53 13-Oct-2011 Jens Axboe <axboe@kernel.dk> Add completion latency percentiles to terse output format

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
312b4af22018a73a445ae6ecf640d71f12120ab9 13-Oct-2011 Jens Axboe <axboe@kernel.dk> Add IOPS to terse output

Bump the terse version format. There will be a few more changes
until version 3 is final, but since it's already changed now,
flag it as a different version. Consider this terse version 3 alpha.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
07511a632ef219eb578d8c7f12825a275c640bcf 13-Oct-2011 Jens Axboe <axboe@kernel.dk> Break double loop on end-of-clat percentiles

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
d09a64a01a6c807596e9286c93f6c6f30fd2ea26 13-Oct-2011 Jens Axboe <axboe@kernel.dk> client/server: add support for passing disk_util structures

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
4f6f8298a2d3f19cec0ba65525930a62eee3967f 13-Oct-2011 Jens Axboe <axboe@kernel.dk> Adapt clat percentiles for min/max values

Decide between using msec or usec based on the calculated values.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
250506294d3658d0eab0139d3829917a58b62c9a 13-Oct-2011 Jens Axboe <axboe@kernel.dk> Remove extra \n before printing run status

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
351de8de68623375d2693192047cef7411f16442 12-Oct-2011 Jens Axboe <axboe@kernel.dk> Be a bit more defensive in clat percentile calc and display

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
81ab0b3ab4db39033e020a1e611197fe04df6c3e 12-Oct-2011 Jens Axboe <axboe@kernel.dk> Pretty up clat percentile display so it's actually readable

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
731e3f7882e286742af32866cf2dcac1ba9d6a38 12-Oct-2011 Jens Axboe <axboe@kernel.dk> Fix clat percentile display

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
37f0c1ae23ad1716403d3d113c3dfdf41c47e329 11-Oct-2011 Jens Axboe <axboe@kernel.dk> client: display summed total of all clients when all stats have been received

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
5b9babb7fb9ac46c0e960ccd88c2d85ba3065c01 10-Oct-2011 Jens Axboe <axboe@kernel.dk> Abstract out and export summation of thread_stats

Client side will need it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
c8eeb9df1f52f28567a5937e141decc6a26ec30b 05-Oct-2011 Jens Axboe <axboe@kernel.dk> Add support for write_iops_log

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
802ad4a83e92a30b5fdccf117d59fbb69068c054 05-Oct-2011 Jens Axboe <axboe@kernel.dk> Change network transmitted doubles to fio_fp64_t IEEE 754 type

Encode and decode when transferring over the network.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
c59971e18924f44c5e2b234c5208c67c573aaad7 04-Oct-2011 Jens Axboe <axboe@kernel.dk> Style fixup

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
a64e88dad0c0e4a510ae8ab54cde1a20b99c59d1 03-Oct-2011 Jens Axboe <axboe@kernel.dk> server: transmit status as structures, not text

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
f6bb5b88614073878cbbd2666a1553481720faee 03-Oct-2011 Jens Axboe <axboe@kernel.dk> Allocate thread_stat name arrays statically

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
c8aaba193fd910f89486ba4caab0c023306fffae 03-Oct-2011 Jens Axboe <axboe@kernel.dk> Move getrusage() out of thread_stat

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
f0505a1457d848e25e59f0d4373a066c2cef5de0 03-Oct-2011 Jens Axboe <axboe@kernel.dk> Move stat_io_bytes/time to thread_data

Anything that isn't needed to sum/show thread stats should not be
in struct thread_stat.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
7b9f733afb91a5c92f44bb6e68860f17ba14f585 03-Oct-2011 Jens Axboe <axboe@kernel.dk> server: start conversion of data structures to network friendly types

Not done yet, but do the basic conversion.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
e09231c214906b4ff8cbc3dc202c39755fbf6afd 16-Sep-2011 Zheng Liu <wenqing.lz@taobao.com> Fix sum_stat() bug in group_reporting

Write samples in io_stat does not be counted with rw=randread, vice versa.
Then, in sum_stat() function, it will cause 0/0 in calculating mean and S,
and 'nan' is printed. So it should return immediately when src->samples is
equal to 0.

the error result is as follows:
write: io=8328.0KB, bw=1582.7KB/s, iops=395 , runt= 5262msec
clat (usec): min=58 , max=293353 , avg= -nan, stdev= -nan
lat (usec): min=59 , max=293353 , avg= -nan, stdev= -nan
bw (KB/s) : min= 92, max= 804, per=-nan%, avg= -nan, stdev= -nan

the configuration file used:

[global]
direct=1
ioengine=psync
bs=4k
filename=/dev/sdb1
runtime=5
group_reporting
loops=50

[read]
rw=randread
numjobs=8

[write]
rw=randwrite
numjobs=8

CC: Jens Axboe <jaxboe@fusionio.com>
CC: Yu-ju Hong <yjhong@google.com>
Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/stat.c
716050f2a0b858835d7836ad74e8b680973e08e8 16-Aug-2011 Jens Axboe <jaxboe@fusionio.com> Fixup bad style in plat code

- Comments
- Var declarations in code sections
- Misc style

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
0a7d7f9e450f823b4ca25c23516050c339778b13 16-Aug-2011 Eric Gouriou <egouriou@google.com> stats: fix io_u_plat out-of-bound accesses (round 2)

Commit 833491908a1afd67 introduced the ability to report completion
latency percentiles. It also caused a memory corruption when running
with multiple threads due to out of bound accesses in show_run_stats().
The major index of the io_u_plat two-dimensional array is meant
to be DDIR_ value in {DDIR_READ, DDIR_WRITE} (i.e., {0, 1}). The
code in show_run_stats() incorrectly wrote into the array using
a major index with values {0, 1, 2}. Commit 0a0b49007cbce8d1 fixed
the out of bound accesses by increasing the size of the major
dimension of the io_u_plat array from 2 to 3.

This patch reverts the size change from 0a0b49007cbce8d1 in favor
of avoiding the out-of-bound accesses in show_run_stats().

Signed-off-by: Eric Gouriou <egouriou@google.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
0a0b49007cbce8d16c9214e7ed47a2b7cc0cc7ed 15-Aug-2011 Jens Axboe <jaxboe@fusionio.com> Fix off-by-one in io_u_plat[] array sizing

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
833491908a1afd67d27ce79257de3a4d80143d9f 13-Aug-2011 Yu-ju Hong <yjhong@google.com> stats: Add a function to report completion latency percentiles

This patch introduces two new options:
1) Specifying --clat_percentiles enables the reporting of
completion latency percentiles.
2) --percentile_list allows the user to customize the
list of percentiles to report.

Signed-off-by: Yu-ju Hong <yjhong@google.com>

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
cdcac5cf0e9262105e676874d11c4639a80574eb 30-Jul-2011 Yu-ju Hong <yjhong@google.com> stats: Fix computation of summed standard deviation

Fix the computation of standard deviation for a group
of jobs. Please see the below link for the
approximation formula used.
<http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance

The formula was originally presented here:
<ftp://reports.stanford.edu/pub/cstr/reports/cs/tr/79/773/
CS-TR-79-773.pdf>

Signed-off-by: Yu-ju Hong <yjhong@google.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
0aacc50c2fa41e44512ce8eacfd3d679cb016d86 09-Jul-2011 Bruce Cran <BCran@fusionio.com> Fix integer overflow in calculating large IOPS on 32-bit platforms

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
2b13e716c0921356c0930522718e00b8df34293a 19-Jan-2011 Jens Axboe <jaxboe@fusionio.com> Get rid of shadow declarations

Reported-by: Bruce Cran <bruce@cran.org.uk>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
cda99fa0fcca41fc0d54ecaa2fd600162a8de5d3 14-Dec-2010 Signed-off-by Steven Pratt <slpratt@austin.ibm.com> fix ramp_in

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>
/external/fio/stat.c
562c2d2f25ae829c812a58c10bc1a03ab6f6f52b 23-Sep-2010 David Nellans <DNellans@fusionio.com> Add some comments around the terse output

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
0d29de831183dfd049c97a03008d425ce21e2fa4 01-Sep-2010 Jens Axboe <jaxboe@fusionio.com> Add verify trim support

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
ff58fcede39d16a2c642897cbe5a7f28b2da1950 25-Aug-2010 Jens Axboe <jaxboe@fusionio.com> Add support for replaying blktrace trim/discard

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
525c2bfabdb7e0093a8775a09ad3e772d962760e 30-Jun-2010 Jens Axboe <jaxboe@fusionio.com> Update documentation on new terse format and add version number

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
4cf1abc34ff1cc8aaa2e02e3aaf919681b717c91 25-Jun-2010 Jens Axboe <jaxboe@fusionio.com> Revert "fix 1000 vs kb_base confusion in show_run_stats."

This reverts commit 1f53e9d84573b1f9b9a23ad3ac4ef3d312d59c78.

The conversion is from msec to sec, so the 1000 factor
was correct.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
02af09886db695e5ea2b7fd2a632733955f3c03f 24-Jun-2010 Jens Axboe <jaxboe@fusionio.com> Add total latency log

We log submission and completion latencies, also log total latencies.
This makes it easier to graph and make histograms, if you care only
about the complete latency.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
1f53e9d84573b1f9b9a23ad3ac4ef3d312d59c78 23-Jun-2010 YAMAMOTO Takashi <yamamoto@valinux.co.jp> fix 1000 vs kb_base confusion in show_run_stats.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
/external/fio/stat.c
4ceb30d4b44957e252a75f7ee4170f36109934c3 24-Feb-2010 Jens Axboe <jens.axboe@oracle.com> Use log_info() more consistently

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
0b9d69ecb14045cf3b2622ae922756b9889b25e6 11-Sep-2009 Jens Axboe <jens.axboe@oracle.com> Silence the style/whitespace police

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
90fef2d162fba55ad684c2c80b3b9739b8d16e72 17-Jul-2009 Jens Axboe <jens.axboe@oracle.com> Add kb_base option to specify the base unit of a kilobyte

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
b22989b9f9349b3c1d1c41846ab27ff0914bd6de 17-Jul-2009 Jens Axboe <jens.axboe@oracle.com> Get rid of KiB vs KB distinction

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>
/external/fio/stat.c
1ec99eea970609e63f49982f0d052a23ac18848d 15-Jun-2009 Jens Axboe <jens.axboe@oracle.com> Fix typo on continue_on_error patch

Also expand the error print a bit.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
f2bba1820a567ac00b09916239ac8feb125cead2 15-Jun-2009 Radha Ramachandran <radha@google.com> Add a 'continue_on_error' option to fio

Add option to make fio continue on non-fatal errors.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
adb02ba8e05ccbb1c1985791d0ee52828bcbf6aa 03-Jun-2009 Jens Axboe <jens.axboe@oracle.com> Add iops rate to ETA display

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
7c9b1bce094d58c374b086bbb780c08265623ea4 03-Jun-2009 Jens Axboe <jens.axboe@oracle.com> Split off diskutil include

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
306ddc9752eef70c3fbb111af63d197a3a6d447f 18-May-2009 Jens Axboe <jens.axboe@oracle.com> Include transfer size in the clat/slat measurements

It's useful to know the block size that matches the given latency, so
add that to the end.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
8879fd15550a5edac3f4fdab6f98badb18dea18c 20-Apr-2009 Jens Axboe <jens.axboe@oracle.com> Fix throughput reporting

It was off by 1024/1024 :/

Initial patch from Carl Henrik Lunde <chlunde@ping.uio.no>

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
5921e80c5dfc9f96d2f21da6ae58f2b5d3a0b373 30-May-2008 Jens Axboe <jens.axboe@oracle.com> Make it work on opensolaris

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
838bc709279964bdcc64070d4eb2777a0f79bcbb 22-May-2008 Jens Axboe <jens.axboe@oracle.com> Add logging for queue submit and complet counts

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
5ec10eaad3b09875b91e19a20bbdfa06f2117562 06-Mar-2008 Jens Axboe <jens.axboe@oracle.com> Style fixups

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
b4c5e1acb5a7964f858e2b41c1ae07b1afc0f4ea 25-Oct-2007 Jens Axboe <jens.axboe@oracle.com> More cpu engine fixes

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
e7823a941468e807c381fac4c5f7d41329ef0c1d 07-Sep-2007 Jens Axboe <jens.axboe@oracle.com> Add display of major and minor faults

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
d9309cb10119155c8cbf7369c807b9ae08bcd67c 16-Aug-2007 Jens Axboe <jens.axboe@oracle.com> clat/slat display improvements

If the avg and min are small, we'll display in usec. But that can make
the max hard to read, so convert min/max to strings like we do for
other values.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
4539ed73159735c20cf6c2808eea84d0cc25a608 23-Jul-2007 Jens Axboe <jens.axboe@oracle.com> Missing carriage return in latency print

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
4b43f54ed7dece502350658bee10eba551aeb4a4 19-Jul-2007 Jens Axboe <jens.axboe@oracle.com> Default stdev to 0.0, not -1.0

If we only have a single sample, then the deviation is by definition 0.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
04a0feae73ca50d05914cc3c425b2a6949523204 19-Jun-2007 Jens Axboe <jens.axboe@oracle.com> Adaptive io latency distrobution "histogram"

Log ranges all the way down to microseconds, and display the most
appropriate values for those ranges.

This makes the latency usable for sub-milisecond devices as well.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
ea2accc50fe911f7c24f08e62db55de4d2386b71 19-Jun-2007 Jens Axboe <jens.axboe@oracle.com> Cleanup msec <-> usec lat conversion

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
d85f5118c41a112c3b8a58cc6908d00294bfb78d 18-Jun-2007 Jens Axboe <jens.axboe@oracle.com> Make completion and submission latency use appropriate time base

It's hardcoded as msecs right now, switch the accounting to usecs
and print out the appropriate base determined by the value range.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
30061b974a501c5cdfd84ab21b98d990455c84f8 17-Apr-2007 Jens Axboe <jens.axboe@oracle.com> Log and dump short ios

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
9f8f2064bcb196c10c9d3a2b64b951d796af22b5 02-Apr-2007 Jens Axboe <jens.axboe@oracle.com> Seperate disk util code out of fio.c

It's only used if FIO_HAVE_DISK_UTIL is set.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
07e5b2646f673a56c05a53c6a84bf5d0c949d290 02-Apr-2007 Jens Axboe <jens.axboe@oracle.com> Fix disk utilization and ioscheduler switch on raw devices

Add a method for mapping a raw device to the real block device,
so our sysfs lookup stuff works as expected.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
ef11d7376273302d22c7d013bb9c296ee27f4082 29-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Save a division, if delta is non-zero.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
d0f62ba37546928d3b35b391b7465c6bf8cfe9c5 29-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Increase latency histogram resolution

Currently it was at one decimal, but that can cause us to lose
precision. Always ensure to round up for higher entries of they
get rounded to 0.0 for print.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
2dc1bbeb58edc85f2829eed6729862c438ea2353 15-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Move thread options into a seperate structure

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
6d86144dd10b05e8b82e9b895c35dd778e5e71ab 15-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Use log_info() throughout

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
1c17818009ced8e78e9fee47fd9aaef29e708b41 13-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Improve handling of nr_files != open_files

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
7b4e4fe5e6fa26f82f9169c18ec70c08d0805ca9 13-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Init stat for all files, not just current range

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
55bc7fc003004510d2bd19080668fc3fbea517d5 13-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Make disk_util() account for all files

Now we can have files all over the place, so we need to loop
over td->files[] to setup disk util stats.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
62d984e2c12579361ee620b0a309c540cff9b09d 13-Mar-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] disk_util: Allow an engine to turn off disk_util specifically

Originally from Joel Becker <Joel.Becker@oracle.com>

An engine may support disks, but be unable to work with disk_util (as
there is no fd). Add a flag to turn off disk_util from the engine.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
7abd0e3a872b000aefb740028f777aae1fa6f77d 12-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Group reporting fixes

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
b3605062146bce0136918763bb8eb584478ae042 12-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Show IOPS as well as bw numbers

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
de64df05bb69d38b7ecf548d9e15573b9010704a 08-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Use DDIR_WRITE symbolic value instead of a hard coded 2

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
197574e43bea5ac00f7b64d4731173c177041de0 08-Mar-2007 Jens Axboe <jens.axboe@oracle.com> A few more stat fixes and cleanups

Mostly cleanups, but also one group status index that was
hardcoded as READ when it should be 'i' for either read or write.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
94370ac42ddee6572c434073d3c1840a513bc8f4 08-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Fixup reporting for !runtime data directions

Got broken with the group reporting, the minimum time and bw
should only be accounted for data directions where actual
work has happened. Otherwise they are pretty much guarenteed
to be 0.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
7bdce1bde82e37c8876270853840c1d09d760b67 06-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Move description text

It was dangling at the bottom.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
6af019c992eb5fc5e502341d653977909184cc82 06-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Terse output change

- Missing a comma.
- Change comma to semicolon, less confusion over floating point numbers.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
6586ee8992b30e81334d83d10480bdc4f6c8cc1a 06-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Show how many jobs are in a group

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
2270890cef8d98ab97f87d348d16dce6454e631f 06-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Update terse output

Several additions to the verbose output have been added since the
terse format was introduced, update it to match.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
6660cc67cb72b70d1ea0ab8c465976d715fcb976 06-Mar-2007 Jens Axboe <jens.axboe@oracle.com> stat.c: Superflous n

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
2dc84ba74186eb9ef4dde0f08dc20571c62e001e 06-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Be sure to pick up any group error with group_reporting

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
c39cced652676a2b1dd76a98ca54f23b1f844cc5 06-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Stat summation fixup

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
d59d31aff657005e63b48807230bbe42b464e537 06-Mar-2007 Jens Axboe <jens.axboe@oracle.com> td vs ts typo

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
756867bd127cfa1fb27ae2d4ba973af8cb341f13 06-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Add group reporting

Still needs some testing, so the option isn't documented yet. The
standard deviation averaging also isn't mathematically sound.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
b2560f3ca4677e2908fc4111f4d04fae5df3b229 06-Mar-2007 Jens Axboe <jens.axboe@oracle.com> One step closer to group reporting

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
34403fb14ba48d708fdfd2934583506bb5caac05 02-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Spelling fixes

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
138502a97c7957d9be7599d9fde94b5317e8c24b 01-Mar-2007 Jens Axboe <jens.axboe@oracle.com> Only check FIO_DISKLESSIO in stat.c

Just make the null engine set that flag as well.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
a9defc9abb4a3013335d3aeeb132fd90900cac85 01-Mar-2007 Joel Becker <joel.becker@oracle.com> [PATCH] ioengine flags: Replace FIO_NETIO with real flags that map the
behavior

The FIO_NETIO ioengine flag created two behaviors. First, open_files()
would not open any files - this was handled in engines/net:setup().
Second, init_disk_util() would ignore the files and not try to locate
their disk.

Other engines might want one of these behaviors but not the other. If
an engine opens its own files, it doesn't want open_files() to do anything,
even if the files are eventually disk-based. An engine might want to
prevent init_disk_util() from running.

The FIO_NETIO flag is split into two flags.

FIO_SELFOPEN states that the engine will do its own open(), whether it
is a real open(2) or something internal to the engine.

FIO_DISKLESSIO states that init_disk_util() is should not be run. fio
should treat the engine's files as if they are not part of a disk.

Finally, engines/net.c is changed to use these two flags.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
c0a6b0d8fcf07512fad42ba16613da83ceec4475 26-Feb-2007 Jens Axboe <jens.axboe@oracle.com> Speedup init_disk_util() when dealing with many jobs

sysfs lookups can take quite a while, so check against last device
to avoid having to iterate through sysfs again.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
413dd459a7710ba421061e840dd9ac3161c70f20 23-Feb-2007 Jens Axboe <jens.axboe@oracle.com> Streamline thread_data data direction setting and checking

Currently it's a mess of ->ddir, ->iomix and ->sequential. Add
a TD_DDIR_* for each of these, so we can store them as one value.

A prerequisite for the next parsing cleanup.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
8abdce6686bfcaa211e7eb75a69ec07e980bd96e 21-Feb-2007 Jens Axboe <jens.axboe@oracle.com> Change IO latency histogram to be in power-of-10

Power of 2 is just confusing for latencies, make the series
more natural by doing 1, 2, 4, 10, 20, 50, etc.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
079ad09b1ef22fa0d47c2cd2673908c5619aa41a 20-Feb-2007 Jens Axboe <jens.axboe@oracle.com> First step for group reporting

Put most of the stats into a dedicated structure, so we can
later share such a structure between threads.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
ec1183049478cfc03ec3cc513ae07b7ca9a48140 17-Feb-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] IO completion time histograms

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
f3502ba2dd72d846a388c774a01c6bb833871248 14-Feb-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Exabytes

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
c8c51efdfb621275c23ab74b385d80702b7a30d0 11-Feb-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Sign warning

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
6d663077379b40e1ec6e2321fe8a731087777d32 11-Feb-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Allow thread/group dump regardless of error state

Just because the thread ended in error, doesn't mean the
stats aren't interesting. So dump everything and make sure
the error and verror are visible.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
dbe1125e9c53b2a0b1fc2fd9c6cfd0b3fbddda8b 11-Feb-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Pretty up stat output

Always convert numbers to a known base. We could have byte range values
or gigabyte range values, reading huge numbers can be difficult.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
4d9345ae968ca92ace3dab06c25a9b73159cb329 07-Feb-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Don't create files for engines that don't need them

Introduce FIO_NULLIO as a way to control that from the io engine.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
ed92ac0ce9ce1cc64697272d307d4fa7d18ed64c 06-Feb-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Simple support for networked IO

Adds a new ioengine, net. Use with ioengine=net, it supports only strict
reading or writing (no mixed reads/writes) to/from a single host.
The filename given must contain the host and port to connect to (or
listen from).

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
61697c37566a211ad3fd70f46397d9b7675b0fc2 05-Feb-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Add 'description' option

Can help provide a textual description of a job, if it's submitted
to someone for run/review.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
bb3884d855100fa8fa6a1d2aac79e867dfd47bf9 17-Jan-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Add support for writing aggregate bandwidth log

This is the same that is shown while fio is running, it can be useful
for graphing purposes as well.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
5d4580774d8df3393fc4264c71caed16201821de 13-Jan-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] The last io depth entry is actually >= 64, not > 32

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
71619dc28506f7b7b40905b942e992b02f0d5b96 13-Jan-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Include io depth distribution statistics

Calculate the distribution of io depths for the job run.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
6104ddb6b14be6f3d97bf0faa5b7e06dea22f5f4 11-Jan-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Change output dev= to stdev=

It's really standard deviation, so make it a little easier to
understand.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
03b74b3ec5268e731ed7fcaef31c8c0655acd530 11-Jan-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Change timeout to runtime and rearrange option entries

Runtime is a more descriptive name - the documentation is updated
as well, however the parsing has added an alias functionality to
support older names as well. So 'timeout' still works.

Also rearrange option entries, now they matter because the --cmdhelp
option will print them in order.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
687040842bf56502d33b6c0cb5d2af6da27d080c 10-Jan-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Implement a better mean and standard deviation calculation

Based on Knuth's, volume 2.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
ddf4a69b083416fa0e626f591b3b425085656531 10-Jan-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Fix standard deviation calculation

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
1188caf84ba7fb6c2b3955ad67f4bf087ede13fd 08-Jan-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Add extra disk util name check

If it's the same device name, don't print utilization more than once.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
ef9c5c40a9f4b0ce3be9f13cedaaf7e2a90d47a6 03-Jan-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Fix deviation overflow

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
e6d276f2c07cc35f3d57210713e8288bb44daf97 03-Jan-2007 Jens Axboe <jens.axboe@oracle.com> [PATCH] Fix division by zero in deviance calculation

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
1e97cce9f5a87a67293a05ec4533ed6968698b2e 05-Dec-2006 Jens Axboe <jens.axboe@oracle.com> [PATCH] Fix warnings from icc

icc spewed a bunch of warnings on building fio, but it did actually build
and work. Some of them are real bugs, most are just "helpful" warnings.

icc doesn't like pointer arithmetic, however these are not fixed up. It
works as-is, just ignore those class of warnings.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
690089990d051d86b4ef2b6fd5c1972c0dd4897b 24-Nov-2006 Jens Axboe <jens.axboe@oracle.com> [PATCH] Improve time accounting for a job

We need to account loop time in usecs, or the null io engine can
get the timing wrong. For the system usage stats, don't use summed
up loop counts, but calculate end-start time instead.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
02bcaa8c31feb93c61b701d143a7eea3efd2124d 24-Nov-2006 Jens Axboe <jens.axboe@oracle.com> [PATCH] Time and seek optimizations

We did too many gettimeofday() calls, this patch cuts the number by
40%. Use clock_gettime() MONOTONIC instead, it is faster on my system
at least.

This patch also optimizes calling lseek() only when necessary for the
sync io engine.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
3c9b60c1fb144950ca51220ffa18f485672c3ba6 07-Nov-2006 Jens Axboe <jens.axboe@oracle.com> [PATCH] Warn on writable strings

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
0bbab0e789d4d8438d63327da052d64b45f0596a 02-Nov-2006 Jens Axboe <jens.axboe@oracle.com> [PATCH] String copy limiting fixes

Avoid overflows when we can.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
eecf272f1b2d55c1e49aadd7f65b9a433ba04c15 20-Oct-2006 Jens Axboe <jens.axboe@oracle.com> [PATCH] Plug a few more leaks

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
b4a6a59a939f0e6554632de311e7d1d1b7633ccf 20-Oct-2006 Jens Axboe <jens.axboe@oracle.com> [PATCH] Be nicer about cleaning up allocated memory

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
34572e28f8cf45ba4e2601797f2aa4a114601fb2 20-Oct-2006 Jens Axboe <jens.axboe@oracle.com> [PATCH] Add for_each_td()

Similar to for_each_file(), just iterates over each td we know about.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
84585003d025a38b91749cb0d68f6b5653d1f1a3 19-Oct-2006 Jens Axboe <jens.axboe@oracle.com> [PATCH] Fix a bunch of bugs

- engines/fio-engine-libaio.o needs to link against -laio and fio need not
anymore. This caused funky crashes with libaio io engine.

- Fix a few bugs in the libaio engine.

- Only do sync/cleanup in do_io() if we exit without error.

- ->io_ops may be NULL in reap_threads(), if the job exited.

- Allocate io engine, don't reuse the dlopen() object.

- Overlapping sprintf() in init_disk_util().

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
53cdc6864f7471b28cc9b40a5314ab43e5b1cb5e 18-Oct-2006 Jens Axboe <jens.axboe@oracle.com> [PATCH] First cut at supporting > 1 file per job

This is likely very buggy, a simple test works though.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
/external/fio/stat.c
3307d653f9cfc05b9c02e4cda91e6b45444dc1b0 17-Jul-2006 Jens Axboe <axboe@suse.de> [PATCH] Use lstat() instead of stat() in sysfs lookup

Otherwise we cannot detect the symlinks, and the directory
lookup will get into an infinite loop.
/external/fio/stat.c
c6ae0a5b8123ea9af2ce70319081fbd5d65c8093 12-Jun-2006 Jens Axboe <axboe@suse.de> [PATCH] Add option for terse parseable output
/external/fio/stat.c
727097a1f2a12096075ccfc30785180cf505ec77 12-Jun-2006 Jens Axboe <axboe@suse.de> [PATCH] Don't hide submission latency numbers, even if they are 0.
/external/fio/stat.c
3b70d7e51e0b672a8b337c57c8faf865c0b7f415 08-Jun-2006 Jens Axboe <axboe@suse.de> [PATCH] When logging to a file, stderr should go both to stderr and file
/external/fio/stat.c
eb8bbf48e79a8c6afd3c84e3d64263d10ee45daa 08-Jun-2006 Jens Axboe <axboe@suse.de> [PATCH] Enable output logging to file instead of stdout
/external/fio/stat.c
5c4e1dbc4ec6ee963220c5f4e64a04cd6130dc81 07-Jun-2006 Jens Axboe <axboe@suse.de> [PATCH] Final FreeBSD compile fixups

It actually builds now!
/external/fio/stat.c
01452055af61d6f5de543575dba3ebb0c9e55fab 07-Jun-2006 Jens Axboe <axboe@suse.de> [PATCH] Add name=x option to name jobs

This makes it easier to see what is going on with large job files.
/external/fio/stat.c
6796209a7e3d39522b0f5599aba277809786335e 07-Jun-2006 Jens Axboe <axboe@suse.de> [PATCH] Shorten the file names, stupid to prefix everything with fio-
/external/fio/stat.c