Whamcloud - gitweb
b=22960 Update mdsrate scripts to parse new format
authorRobert Read <robert.read@oracle.com>
Wed, 9 Jun 2010 16:42:34 +0000 (09:42 -0700)
committerRobert Read <robert.read@oracle.com>
Wed, 9 Jun 2010 20:33:15 +0000 (13:33 -0700)
i=nico

lustre/tests/mdsrate-create-large.sh
lustre/tests/mdsrate-create-small.sh

index aa99a1c..07b04e5 100644 (file)
@@ -68,7 +68,7 @@ else
     log "===== $0 ### 1 NODE UNLINK ###"
 
     if [ -f "$LOG" ]; then
     log "===== $0 ### 1 NODE UNLINK ###"
 
     if [ -f "$LOG" ]; then
-        CREATED=$(awk '/total:/ { print $7 }' $LOG)
+        CREATED=$(sed -n '/^Rate:/s/^.* \([0-9]*\) creates .*/\1/p' $LOG)
         [ $CREATED -gt 0 ] && NUM_FILES=$CREATED
     fi
 
         [ $CREATED -gt 0 ] && NUM_FILES=$CREATED
     fi
 
@@ -111,7 +111,7 @@ else
     log "===== $0 ### $NUM_CLIENTS NODES UNLINK ###"
 
     if [ -f "$LOG" ]; then
     log "===== $0 ### $NUM_CLIENTS NODES UNLINK ###"
 
     if [ -f "$LOG" ]; then
-        CREATED=$(awk '/total:/ { print $7 }' $LOG)
+        CREATED=$(sed -n '/^Rate:/s/^.* \([0-9]*\) creates .*/\1/p' $LOG)
         [ $CREATED -gt 0 ] && NUM_FILES=$CREATED
     fi
 
         [ $CREATED -gt 0 ] && NUM_FILES=$CREATED
     fi
 
index 03ca9bb..59b33a6 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+ #!/bin/bash
 #
 # This test was used in a set of CMD3 tests (cmd3-3 test). 
 
 #
 # This test was used in a set of CMD3 tests (cmd3-3 test). 
 
@@ -80,7 +80,7 @@ else
         log "===== $0 ### 1 NODE UNLINK ###"
 
         if [ -f "$LOG" ]; then
         log "===== $0 ### 1 NODE UNLINK ###"
 
         if [ -f "$LOG" ]; then
-            CREATED=$(awk '/total:/ { print $7 }' $LOG)
+            CREATED=$(sed -n '/^Rate:/s/^.* \([0-9]*\) creates .*/\1/p' $LOG)
            [ $CREATED -gt 0 ] && NUM_FILES=$CREATED
         fi
 
            [ $CREATED -gt 0 ] && NUM_FILES=$CREATED
         fi
 
@@ -130,7 +130,7 @@ else
         log "===== $0 ### $NUM_CLIENTS NODES UNLINK with $THREADS_PER_CLIENT threads per client ###"
 
         if [ -f "$LOG" ]; then
         log "===== $0 ### $NUM_CLIENTS NODES UNLINK with $THREADS_PER_CLIENT threads per client ###"
 
         if [ -f "$LOG" ]; then
-            CREATED=$(awk '/total:/ { print $7 }' $LOG)
+            CREATED=$(sed -n '/^Rate:/s/^.* \([0-9]*\) creates .*/\1/p' $LOG)
             [ $CREATED -gt 0 ] && NUM_FILES=$CREATED
         fi
 
             [ $CREATED -gt 0 ] && NUM_FILES=$CREATED
         fi