summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-08-24 17:38:43 +1000
committerAndrew Tridgell <tridge@samba.org>2008-08-24 17:38:43 +1000
commitb030743d7408a427cf8e36faa1a2a3b8386112e8 (patch)
treefef8936c4ca09334e47bb995a3a87f39cb1559e0 /source4
parent3efd7d22626d179b2bf28d7fb3473ed982ed7dcb (diff)
downloadsamba-b030743d7408a427cf8e36faa1a2a3b8386112e8.tar.gz
samba-b030743d7408a427cf8e36faa1a2a3b8386112e8.tar.bz2
samba-b030743d7408a427cf8e36faa1a2a3b8386112e8.zip
show the bad data in RAW-OFFLINE
also show the worst case latencies so far, matching tsm_torture (This used to be commit 5859bb337ce2ec5091425ebd02cad14c4da40457)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/raw/offline.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/source4/torture/raw/offline.c b/source4/torture/raw/offline.c
index 9240c76b6b..0f7787a92f 100644
--- a/source4/torture/raw/offline.c
+++ b/source4/torture/raw/offline.c
@@ -109,7 +109,10 @@ static void loadfile_callback(struct composite_context *ctx)
for (i=0;i<FILE_SIZE;i++) {
if (state->loadfile->out.data[i] != 1+(state->fnumber % 255)) {
- printf("Bad data in file %u\n", state->fnumber);
+ printf("Bad data in file %u (got %u expected %u)\n",
+ state->fnumber,
+ state->loadfile->out.data[i],
+ 1+(state->fnumber % 255));
test_failed++;
return;
}
@@ -344,12 +347,16 @@ static void report_rate(struct event_context *ev, struct timed_event *te,
total_online += state[i].online_count;
total_offline += state[i].offline_count;
}
- printf("ops/s=%4u offline=%5u online=%4u set_lat=%.1f get_lat=%.1f save_lat=%.1f load_lat=%.1f\r",
+ printf("ops/s=%4u offline=%5u online=%4u set_lat=%.1f/%.1f get_lat=%.1f/%.1f save_lat=%.1f/%.1f load_lat=%.1f/%.1f\n",
total, total_offline, total_online,
latencies[OP_SETOFFLINE],
+ worst_latencies[OP_SETOFFLINE],
latencies[OP_GETOFFLINE],
+ worst_latencies[OP_GETOFFLINE],
latencies[OP_SAVEFILE],
- latencies[OP_LOADFILE]);
+ worst_latencies[OP_SAVEFILE],
+ latencies[OP_LOADFILE],
+ worst_latencies[OP_LOADFILE]);
fflush(stdout);
event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state);