Whamcloud - gitweb
file kernel-2.6.22-2.6-vanilla-x86_64-smp.config was initially added on branch b1_6.
[fs/lustre-release.git] / lustre-iokit / stats-collect / config.sh
1 #
2 # system configuration.  Set these variables to point to the locations
3 # of various system utilities.
4 #
5 AWK=/usr/bin/awk
6 XARGS=/usr/bin/xargs
7
8 #
9 # control debug output.  set PRINT_INFO_MSGS=1 to see additional messages
10 #   set PRINT_DEBUG_MSGS=1 to see debug messages
11 #
12 PRINT_INFO_MSGS=0
13 PRINT_DEBUG_MSGS=0
14
15 #
16 # TARGETS: set this variable to the list of nodes you want to
17 # gather stats from
18 #
19 # Example:
20 #
21 PERCH_MDS_LIST="nid00135"
22 PERCH_OST_LIST="nid00128 nid00131 nid00136 nid00139 nid00008 nid00011 nid00012"
23
24 MDS_LIST=${PERCH_MDS_LIST}
25 OST_LIST=${PERCH_OST_LIST}
26 export TARGETS="${MDS_LIST} ${OST_LIST}" 
27
28 #script var 
29 #case $TARGET in
30 #       oss*)     
31 #               VMSTAT_INTERVAL=0 
32 #               SERVICE_INTERVAL=2 
33 #               SDIO_INTERVAL=0  
34 #       ;;
35 #       client*)  ALEX_SCRIPT_CLIENT_VAR1="hello!"
36 #       ;;
37 #esac
38
39 #FIXME: diff these parameters according to client/MDS/OSS 
40 VMSTAT_INTERVAL=${VMSTAT_INTERVAL:-1} 
41 SERVICE_INTERVAL=${SERVICE_INTERVAL:-0}
42 SDIO_INTERVAL=${SDIO_INTERVAL:-0}
43 BRW_INTERVAL=${BRW_INTERVAL:-0}
44 MBALLOC_INTERVAL=${MBALLOC_INTERVAL:-0}
45 IO_INTERVAL=${IO_INTERVAL:-1}
46 JBD_INTERVAL=${JBD_INTERVAL:-1}
47
48 #some environment var
49 TMP=${TMP:-"/tmp"}
50 SCRIPT=${SCRIPT:-"lstats.sh"}
51 #Remote ssh script
52 DSH=${DSH:-ssh}
53 DCP=${DCP:-scp}
54 USER=""
55 TAR=${TAR:-tar -zcvf}
56