Refresh script to handle errors (missing stat files) more gracefully, additionally lengthen the default test to a useful length

This commit is contained in:
Brian Behlendorf 2009-01-14 09:18:16 -08:00
parent 1194e0412f
commit b0bf494b37
1 changed files with 23 additions and 12 deletions

View File

@ -19,8 +19,10 @@ echo ------------------------- ZFS TEST LOG ---------------------------------
echo -n "Date = "; date echo -n "Date = "; date
echo -n "Kernel = "; uname -r echo -n "Kernel = "; uname -r
echo ------------------------------------------------------------------------ echo ------------------------------------------------------------------------
echo echo
echo "rm /etc/zfs/zpool.cache" || exit 1
rm -f /etc/zfs/zpool.cache
./zfs.sh -v "${SPL_OPTIONS}" "${ZPOOL_OPTIONS}" || exit 1 ./zfs.sh -v "${SPL_OPTIONS}" "${ZPOOL_OPTIONS}" || exit 1
echo ---------------------- SPL Sysctl Tunings ------------------------------ echo ---------------------- SPL Sysctl Tunings ------------------------------
@ -101,7 +103,7 @@ CMD="${CMDDIR}/zpios/zpios \
--path=lustre \ --path=lustre \
--chunksize=1M \ --chunksize=1M \
--regionsize=4M \ --regionsize=4M \
--regioncount=64 \ --regioncount=256 \
--threadcount=4 \ --threadcount=4 \
--offset=4M \ --offset=4M \
--cleanup \ --cleanup \
@ -125,16 +127,25 @@ echo ---------------------- SPL Sysctl Tunings ------------------------------
sysctl -A | grep spl sysctl -A | grep spl
echo echo
echo ------------------------ KSTAT Statistics ------------------------------ if [ -d /proc/spl/kstat/ ]; then
echo ARCSTATS if [ -f /proc/spl/kstat/zfs/arcstats ]; then
cat /proc/spl/kstat/zfs/arcstats echo "------------------ ARCSTATS --------------------------"
echo cat /proc/spl/kstat/zfs/arcstats
echo VDEV_CACHE_STATS echo
cat /proc/spl/kstat/zfs/vdev_cache_stats fi
echo
echo SLAB if [ -f /proc/spl/kstat/zfs/vdev_cache_stats ]; then
cat /proc/spl/kmem/slab echo "-------------- VDEV_CACHE_STATS ----------------------"
echo cat /proc/spl/kstat/zfs/vdev_cache_stats
echo
fi
fi
if [ -f /proc/spl/kmem/slab ]; then
echo "-------------------- SLAB ----------------------------"
cat /proc/spl/kmem/slab
echo
fi
./zfs.sh -vu || exit 1 ./zfs.sh -vu || exit 1