From c4d3d5017e04c13562e148e1fb74202c3b318ffa Mon Sep 17 00:00:00 2001
From: eeb <eeb>
Date: Sat, 2 Oct 2004 16:05:23 +0000
Subject: [PATCH] *  fixed multi-dev reporting buglet

---
 lustre-iokit/sgpdd-survey/sgpdd-survey | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lustre-iokit/sgpdd-survey/sgpdd-survey b/lustre-iokit/sgpdd-survey/sgpdd-survey
index 8f7cd1fab2..0b1fdc6858 100755
--- a/lustre-iokit/sgpdd-survey/sgpdd-survey
+++ b/lustre-iokit/sgpdd-survey/sgpdd-survey
@@ -23,12 +23,12 @@ rszhi=1024
 
 # Concurrent regions per device
 crglo=1
-crghi=128
+crghi=256
 
 # threads to share between concurrent regions per device
-# NB survey skips over #thr < #regions
+# NB survey skips over #thr < #regions and #thr > SG_MAX_QUEUE
 thrlo=1
-thrhi=128
+thrhi=8192
 
 #####################################################################
 
@@ -131,7 +131,7 @@ for ((rsz=$rszlo;rsz<=$rszhi;rsz*=2)); do
 		    print_summary -n "$((ndevs*crg - ok)) failed "
 		else
 	            # compute MB/sec from elapsed
-		    bw=`awk "BEGIN {printf \"%7.2f MB/s\", $actual_size / (( $t1 - $t0 ) * 1024); exit}"`
+		    bw=`awk "BEGIN {printf \"%7.2f MB/s\", $actual_size * $ndevs / (( $t1 - $t0 ) * 1024); exit}"`
 	            # compute MB/sec from nregions*slowest
 		    check=`awk < $tmpf \
 			'/time to transfer data/ {mb=$8/1.048576; if (n == 0 || mb < min) min = mb; n++}\
-- 
GitLab