summaryrefslogtreecommitdiffstats
path: root/scripts/zpios.sh
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2008-12-01 16:15:29 -0800
committerBrian Behlendorf <[email protected]>2008-12-01 16:15:29 -0800
commit7ebbc0c799748b8e13cdfcf7c96e11b3d331549b (patch)
treea5a7b1762a9504e679942d96ebb21b1dc5f4d1f5 /scripts/zpios.sh
parentef76e2f5ea42f9fab723ee79d17d69fe7caf1e13 (diff)
Finish removing all non-upstream bits from master
Diffstat (limited to 'scripts/zpios.sh')
-rwxr-xr-xscripts/zpios.sh133
1 files changed, 0 insertions, 133 deletions
diff --git a/scripts/zpios.sh b/scripts/zpios.sh
deleted file mode 100755
index 342ecd1f5..000000000
--- a/scripts/zpios.sh
+++ /dev/null
@@ -1,133 +0,0 @@
-#!/bin/bash
-
-prog=zpios.sh
-. ../.script-config
-
-SPL_OPTIONS="spl_debug_mask=0 spl_debug_subsys=0 ${1}"
-ZPOOL_OPTIONS=$2
-KPIOS_OPTIONS=$3
-PROFILE_KPIOS_LOGS=$4
-KPIOS_PRE=$5
-KPIOS_POST=$6
-
-PROFILE_KPIOS_PRE=/home/behlendo/src/zfs/scripts/profile-kpios-pre.sh
-PROFILE_KPIOS_POST=/home/behlendo/src/zfs/scripts/profile-kpios-post.sh
-
-DEVICES="/dev/hda"
-
-echo ------------------------- ZFS TEST LOG ---------------------------------
-echo -n "Date = "; date
-echo -n "Kernel = "; uname -r
-echo ------------------------------------------------------------------------
-
-echo
-./load-zfs.sh "${SPL_OPTIONS}" "${ZPOOL_OPTIONS}"
-
-echo ---------------------- SPL Sysctl Tunings ------------------------------
-sysctl -A | grep spl
-echo
-
-echo ------------------- SPL/ZPOOL Module Tunings ---------------------------
-if [ -d /sys/module/spl/parameters ]; then
- grep [0-9] /sys/module/spl/parameters/*
- grep [0-9] /sys/module/zpool/parameters/*
-else
- grep [0-9] /sys/module/spl/*
- grep [0-9] /sys/module/zpool/*
-fi
-echo
-
-echo "${CMDDIR}/zpool/zpool create -f lustre ${DEVICES}"
-${CMDDIR}/zpool/zpool create -f lustre ${DEVICES}
-
-echo "${CMDDIR}/zpool/zpool status lustre"
-${CMDDIR}/zpool/zpool status lustre
-
-echo "Waiting for /dev/kpios to come up..."
-while [ ! -c /dev/kpios ]; do
- sleep 1
-done
-
-if [ -n "${KPIOS_PRE}" ]; then
- ${KPIOS_PRE}
-fi
-
-# Usage: zpios
-# --chunksize -c =values
-# --chunksize_low -a =value
-# --chunksize_high -b =value
-# --chunksize_incr -g =value
-# --offset -o =values
-# --offset_low -m =value
-# --offset_high -q =value
-# --offset_incr -r =value
-# --regioncount -n =values
-# --regioncount_low -i =value
-# --regioncount_high -j =value
-# --regioncount_incr -k =value
-# --threadcount -t =values
-# --threadcount_low -l =value
-# --threadcount_high -h =value
-# --threadcount_incr -e =value
-# --regionsize -s =values
-# --regionsize_low -A =value
-# --regionsize_high -B =value
-# --regionsize_incr -C =value
-# --cleanup -x
-# --verify -V
-# --zerocopy -z
-# --threaddelay -T =jiffies
-# --regionnoise -I =shift
-# --chunknoise -N =bytes
-# --prerun -P =pre-command
-# --postrun -R =post-command
-# --log -G =log directory
-# --pool | --path -p =pool name
-# --load -L =dmuio
-# --help -? =this help
-# --verbose -v =increase verbosity
-
-# --prerun=${PROFILE_KPIOS_PRE} \
-# --postrun=${PROFILE_KPIOS_POST} \
-
-CMD="${CMDDIR}/zpios/zpios \
- --load=dmuio \
- --path=lustre \
- --chunksize=1M \
- --regionsize=4M \
- --regioncount=64 \
- --threadcount=4 \
- --offset=4M \
- --cleanup \
- --verbose \
- --human-readable \
- ${KPIOS_OPTIONS} \
- --log=${PROFILE_KPIOS_LOGS}"
-echo
-date
-echo ${CMD}
-$CMD
-date
-
-if [ -n "${KPIOS_POST}" ]; then
- ${KPIOS_POST}
-fi
-
-${CMDDIR}/zpool/zpool destroy lustre
-
-echo ---------------------- SPL Sysctl Tunings ------------------------------
-sysctl -A | grep spl
-echo
-
-echo ------------------------ KSTAT Statistics ------------------------------
-echo ARCSTATS
-cat /proc/spl/kstat/zfs/arcstats
-echo
-echo VDEV_CACHE_STATS
-cat /proc/spl/kstat/zfs/vdev_cache_stats
-echo
-echo SLAB
-cat /proc/spl/kmem/slab
-echo
-
-./unload-zfs.sh