7 CHECKSTAT=${CHECKSTAT:-"checkstat -v"}
8 MOUNT1=${MOUNT1:-/mnt/lustre1}
9 MOUNT2=${MOUNT2:-/mnt/lustre2}
10 DIRNAME=${DIRNAME:-"ls-timing"}
11 DIRSIZE=${DIRSIZE:-200}
12 export NAME=${NAME:-mount2}
23 mount | grep $MOUNT1 || sh llmount.sh
25 echo -n "Preparing test directory with $DIRSIZE files..."
26 rm -rf "$MOUNT1/$DIRNAME"
27 rm -rf "$MOUNT2/$DIRNAME"
28 mkdir -p "$MOUNT1/$DIRNAME"
29 [ -d "$MOUNT2/$DIRNAME" ] || error
30 createmany -o $MOUNT1/$DIRNAME/file 0 $DIRSIZE &> /dev/null
34 time ls -lr $MOUNT1/$DIRNAME 1> /dev/null
36 echo -n "Uncached ls: "
37 time ls -lr $MOUNT2/$DIRNAME 1> /dev/null
40 fsx $MOUNT1/$DIRNAME/fsx.file &>/dev/null &
43 echo -n "Cached busy ls:"
44 time ls -lr $MOUNT1/$DIRNAME 1> /dev/null
46 echo -n "Uncached busy ls: "
47 time ls -lr $MOUNT2/$DIRNAME 1> /dev/null