From: adilger Date: Thu, 5 Jun 2003 23:31:29 +0000 (+0000) Subject: Allow runvmstat to log to a file for perf monitoring. X-Git-Tag: v1_7_100~1^91~146 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1b764394c1f0cd8cf4d9542f3e074cf6a533191e;p=fs%2Flustre-release.git Allow runvmstat to log to a file for perf monitoring. Add a similar logging obdstat script also. --- diff --git a/lustre/tests/runobdstat b/lustre/tests/runobdstat new file mode 100644 index 0000000..886ce8f2 --- /dev/null +++ b/lustre/tests/runobdstat @@ -0,0 +1,7 @@ +#!/bin/sh +PATH=`dirname $0`/../utils:$PATH + +obdstat filter 1 | while read LINE; do + echo "`date +s`: $LINE" + [ "$1" ] && echo "`date +s`: $LINE" >> $1 +done