eta: show complete status line with max job states
authorSitsofe Wheeler <sitsofe@yahoo.com>
Sat, 23 Dec 2017 09:55:02 +0000 (09:55 +0000)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 24 Dec 2017 23:34:39 +0000 (23:34 +0000)
commit2b34ccadbe56eca1d41cf8eb3ddfb32d8f28dd73
treeac959541601261a7952cd882d33b6256c873d60c
parent45d41a8b4a338404b838e6e5dcae376159d8dfb9
eta: show complete status line with max job states

Make the ETA output buffer big enough to cope with the maximum possible
jobs when their states can't be compressed (i.e. when every job's state
is different to the state of the job that came before it).

Allows the following script to display the complete status line:

rw[0]='read'; rw[1]='write'; \
for i in {1..4096}; do \
  echo -e "[job$i]\nrw=${rw[$((i % 2))]}\n" \
          "runtime=15"; \
done | \
./fio --eta=always --group_reporting=1 --ioengine=null --size=1g \
 --time_based --bs=1k --thread --rate_iops=1 -

Fixes: https://github.com/axboe/fio/issues/500 ("Large number of threads
result in Seg faults")

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
eta.c