]> git.proxmox.com Git - mirror_zfs-debian.git/blame - scripts/zpios-test/lustre.sh
New upstream version 0.7.11
[mirror_zfs-debian.git] / scripts / zpios-test / lustre.sh
CommitLineData
8c3ab23f
BB
1#!/bin/bash
2#
3# Usage: zpios
4# --threadcount -t =values
5# --threadcount_low -l =value
6# --threadcount_high -h =value
7# --threadcount_incr -e =value
8# --regioncount -n =values
9# --regioncount_low -i =value
10# --regioncount_high -j =value
11# --regioncount_incr -k =value
12# --offset -o =values
13# --offset_low -m =value
14# --offset_high -q =value
15# --offset_incr -r =value
16# --chunksize -c =values
17# --chunksize_low -a =value
18# --chunksize_high -b =value
19# --chunksize_incr -g =value
20# --regionsize -s =values
21# --regionsize_low -A =value
22# --regionsize_high -B =value
23# --regionsize_incr -C =value
24# --load -L =dmuio|ssf|fpp
25# --pool -p =pool name
26# --name -M =test name
27# --cleanup -x
28# --prerun -P =pre-command
29# --postrun -R =post-command
30# --log -G =log directory
31# --regionnoise -I =shift
32# --chunknoise -N =bytes
33# --threaddelay -T =jiffies
34# --verify -V
35# --zerocopy -z
36# --nowait -O
37# --human-readable -H
38# --verbose -v =increase verbosity
39# --help -? =this help
40
41ZPIOS_CMD="${ZPIOS} \
42 --load=dmuio,fpp \
43 --pool=${ZPOOL_NAME} \
44 --name=${ZPOOL_DESC} \
45 --threadcount=128 \
46 --regioncount=4096 \
47 --regionsize=16M \
48 --chunksize=1M \
49 --offset=0M \
50 --threaddelay=0 \
51 --cleanup \
52 --human-readable \
53 ${ZPIOS_OPTIONS}"
54
55zpios_start() {
56 if [ ${VERBOSE} ]; then
57 ZPIOS_CMD="${ZPIOS_CMD} --verbose"
58 echo ${ZPIOS_CMD}
59 fi
60
61 ${ZPIOS_CMD} || exit 1
62}
63
64zpios_stop() {
65 [ ${VERBOSE} ] && echo
66}