Whamcloud - gitweb
LU-2902 test: Debug for roc_hit v1
authorKeith Mannthey <keith.mannthey@intel.com>
Fri, 15 Mar 2013 00:41:02 +0000 (17:41 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 20 Mar 2013 18:31:01 +0000 (14:31 -0400)
This will output all the stats and help sort out what
is happening on the systems.  I would like to know
what the proc values are the roc_hit is blank.

More debug may be needed but I want to start here.

This patch should be dropped when LU-2902 is closed.

I have used this patch with auster without issue it
just added noise to the test results.

Signed-off-by: Keith Mannthey <keith.mannthey@intel.com>
Change-Id: I3efe9aa87e8c51909667f9fbc3b9c2d6779d8d0d
Reviewed-on: http://review.whamcloud.com/5648
Tested-by: Hudson
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity.sh

index bd7753a..6c4ce0a 100644 (file)
@@ -8444,7 +8444,8 @@ run_test 150 "truncate/append tests"
 
 function roc_hit() {
        local list=$(comma_list $(osts_nodes))
-
+       #debug temp debug for LU-2902: lets see what values we get back
+       echo $(get_osd_param $list '' stats) 1>&2
        echo $(get_osd_param $list '' stats |
               awk '/'cache_hit'/ {sum+=$2} END {print sum}')
 }