All of lore.kernel.org
 help / color / mirror / Atom feed
* --minimal does not work in client/server mode
@ 2013-07-26 23:16 asomers
  2013-07-29 15:02 ` Jens Axboe
  0 siblings, 1 reply; 16+ messages in thread
From: asomers @ 2013-07-26 23:16 UTC (permalink / raw)
  To: fio

When I use fio in client/server mode, no matter how I try to specify
--minimal, I always get the normal output.  I've tried all of these
methods, and their combinations:

server# fio --server
client#  fio --minimal --client=localhost /tmp/cpuio.fio

server# fio --server
client#  fio --client=localhost --minimal /tmp/cpuio.fio

server# fio --minimal --server
client# fio --client=localhost  /tmp/cpuio.fio

The following patch fixes the problem, though I can't promise it won't
break anything else:

--- fio-2.1.1/client.c	2013-06-05 08:55:53.000000000 -0600
+++ fio-2.1.1.new/client.c	2013-07-26 17:13:18.504740214 -0600
@@ -788,11 +788,15 @@
 	dst->unified_rw_rep	= le32_to_cpu(src->unified_rw_rep);
 }

+
 static void handle_ts(struct fio_client *client, struct fio_net_cmd *cmd)
 {
 	struct cmd_ts_pdu *p = (struct cmd_ts_pdu *) cmd->payload;

-	show_thread_status(&p->ts, &p->rs);
+	if (output_format == FIO_OUTPUT_TERSE)
+		show_thread_status_terse(&p->ts, &p->rs);
+	else
+		show_thread_status(&p->ts, &p->rs);
 	client->did_stat = 1;

 	if (!do_output_all_clients)
@@ -808,7 +812,10 @@

 	if (++sum_stat_nr == sum_stat_clients) {
 		strcpy(client_ts.name, "All clients");
-		show_thread_status(&client_ts, &client_gs);
+		if (output_format == FIO_OUTPUT_TERSE)
+			show_thread_status_terse(&client_ts, &client_gs);
+		else
+			show_thread_status(&client_ts, &client_gs);
 	}
 }

diff -dur fio-2.1.1/stat.c fio-2.1.1.new/stat.c
--- fio-2.1.1/stat.c	2013-06-05 08:55:53.000000000 -0600
+++ fio-2.1.1.new/stat.c	2013-07-26 17:03:05.332755580 -0600
@@ -885,7 +885,8 @@
 		log_info(";%3.2f%%", io_u_lat_m[i]);

 	/* disk util stats, if any */
-	show_disk_util(1, NULL);
+	if (is_backend)
+		show_disk_util(1, NULL);

 	/* Additional output if continue_on_error set - default off*/
 	if (ts->continue_on_error)
@@ -982,7 +983,7 @@
 	return root;
 }

-static void show_thread_status_terse(struct thread_stat *ts,
+void show_thread_status_terse(struct thread_stat *ts,
 				     struct group_run_stats *rs)
 {
 	if (terse_version == 2)
diff -dur fio-2.1.1/stat.h fio-2.1.1.new/stat.h
--- fio-2.1.1/stat.h	2013-06-05 08:55:53.000000000 -0600
+++ fio-2.1.1.new/stat.h	2013-07-26 16:46:12.972780950 -0600
@@ -203,6 +203,7 @@
 extern void stat_exit(void);

 extern void show_thread_status(struct thread_stat *ts, struct
group_run_stats *rs);
+extern void show_thread_status_terse(struct thread_stat *ts, struct
group_run_stats *rs);
 extern void show_group_stats(struct group_run_stats *rs);
 extern int calc_thread_status(struct jobs_eta *je, int force);
 extern void display_thread_status(struct jobs_eta *je);

^ permalink raw reply	[flat|nested] 16+ messages in thread
* --minimal does not work in client/server mode
@ 2017-06-29 23:51 Nisha Miller
  2017-06-30  3:17 ` Sitsofe Wheeler
  0 siblings, 1 reply; 16+ messages in thread
From: Nisha Miller @ 2017-06-29 23:51 UTC (permalink / raw)
  To: fio

Hi,

When running fio locally, --minimal --status-interval=1 works fine.
Terse output is dumped once a second.

When I run fio remotely like this:

fio <jobfile> --client=10.10.1.165,55555 --minimal --status-interval=1

fio dumps normal output once a second and at the end of the test it
dumps terse output just once. I've tried this using fio version 2.12
and 2.20. Both have the same issue.

I see others have faced the same problems, but I don't see any solutions.

Can anyone help me?

thanks
Nisha Miller

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-07-01  8:58 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-26 23:16 --minimal does not work in client/server mode asomers
2013-07-29 15:02 ` Jens Axboe
2013-07-29 16:00   ` asomers
2013-07-29 16:23     ` Jens Axboe
2013-08-29 22:23       ` asomers
2013-08-29 22:24       ` asomers
2013-08-29 22:26       ` asomers
2013-08-31  4:29         ` Jens Axboe
2013-08-29 22:29       ` asomers
  -- strict thread matches above, loose matches on Subject: below --
2017-06-29 23:51 Nisha Miller
2017-06-30  3:17 ` Sitsofe Wheeler
2017-06-30 21:59   ` Nisha Miller
2017-06-30 23:06   ` Nisha Miller
2017-06-30 23:46     ` Sitsofe Wheeler
2017-07-01  0:05       ` Nisha Miller
2017-07-01  8:57         ` Sitsofe Wheeler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.