Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Aug 1, 2022

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit 3e1d3f2fc4a5f09174f0d6d70d036285d69f17c2:

.github: add pull request template (2022-07-28 11:00:04 -0400)

are available in the Git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 55037c4839c65612fa388ae937e63661d8192ed9:

t/io_uring: switch to GiB/sec if numbers get large (2022-07-31 12:06:12 -0600)

----------------------------------------------------------------
Jens Axboe (1):
t/io_uring: switch to GiB/sec if numbers get large

 t/io_uring.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

---

Diff of recent changes:

t/io_uring.c +9 -2
index 10035912..335a06ed 100644
@@ -1546,8 +1546,15 @@ int main(int argc, char *argv[])
 		else
 			printf("IOPS=%lu, ", iops);
 		max_iops = max(max_iops, iops);
-		if (!do_nop)
-			printf("BW=%luMiB/s, ", bw);
+		if (!do_nop) {
+			if (bw > 2000) {
+				double bw_g = (double) bw / 1000.0;
+
+				printf("BW=%.2fGiB/s, ", bw_g);
+			} else {
+				printf("BW=%luMiB/s, ", bw);
+			}
+		}
 		printf("IOS/call=%ld/%ld, inflight=(%s)\n", rpc, ipc, fdepths);
 		done = this_done;
 		calls = this_call;