Whamcloud - gitweb
merge b_devel into HEAD, which will become 0.7.3
[fs/lustre-release.git] / lustre / tests / lldlm.sh
1 #!/bin/sh
2
3 SRCDIR="`dirname $0`/"
4 . $SRCDIR/common.sh
5
6 export DEBUG_WAIT=yes
7 . $SRCDIR/llsetup.sh $SRCDIR/net-local.cfg $SRCDIR/ldlm.cfg $SRCDIR/obdecho.cfg $SRCDIR/client-echo.cfg || exit 2
8
9 cat <<EOF
10 **********************************************
11 To run tests, use $OBDCTL.
12 $OBDCTL
13 device `$OBDCTL name2dev OSCDEV`
14 probe
15
16 To test basic locking functionality:
17 test_ldlm
18
19 The regression stress test will start some
20 number of threads, each locking and unlocking
21 extents from a set of resources. To run it:
22 ldlm_regress_start [numthreads [refheld [numres [numext]]]] 
23 numthreads is the number of threads to start.
24        (default 1)
25 refheld is the total number of resources to hold,
26        between all the threads. Once this number
27        is reached, every time a lock is granted
28        or matched, the oldest reference is
29        decremented.
30        (default 10)
31 numres is the number of resources to use
32        (default 10)
33 numext is the number of extents to divide
34        each resource into
35        (default 10)
36
37 To stop the test:
38 ldlm_regress_stop
39 **********************************************
40 EOF