From 358d3e17c73a809d0daedd6a96ace7cba7bd4dfd Mon Sep 17 00:00:00 2001 From: grev Date: Wed, 15 Oct 2008 16:06:40 +0000 Subject: [PATCH] b=14471 i=Adilger replace lustre proc by lctl [set|get]_param --- lustre/tests/test-framework.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 6441c9d..1dcc9ed 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1711,6 +1711,14 @@ calc_llite_stats() { echo $res } +calc_sum () { + awk 'BEGIN {s = 0}; {s += $1}; END {print s}' +} + +calc_osc_kbytes () { + $LCTL get_param -n osc.*[oO][sS][cC][-_]*.$1 | calc_sum +} + # save_lustre_params(node, parameter_mask) # generate a stream of formatted strings ( =) save_lustre_params() { -- 1.8.3.1