2015-07-01 22:23:09 +00:00
|
|
|
export KERNELSRC=@LINUX@
|
|
|
|
export KERNELBUILD=@LINUX_OBJ@
|
|
|
|
export KERNELSRCVER=@LINUX_VERSION@
|
|
|
|
export KERNELMOD=/lib/modules/${KERNELSRCVER}/kernel
|
2010-09-04 20:26:23 +00:00
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
export SPLSRC=@SPL@
|
|
|
|
export SPLBUILD=@SPL_OBJ@
|
|
|
|
export SPLSRCVER=@SPL_VERSION@
|
2010-09-04 20:26:23 +00:00
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
export SRCDIR=@abs_top_srcdir@
|
|
|
|
export BUILDDIR=@abs_top_builddir@
|
|
|
|
export LIBDIR=${BUILDDIR}/lib
|
|
|
|
export CMDDIR=${BUILDDIR}/cmd
|
|
|
|
export MODDIR=${BUILDDIR}/module
|
|
|
|
export SCRIPTDIR=${BUILDDIR}/scripts
|
|
|
|
export ZPOOLDIR=${BUILDDIR}/scripts/zpool-config
|
|
|
|
export ZPIOSDIR=${BUILDDIR}/scripts/zpios-test
|
|
|
|
export ZPIOSPROFILEDIR=${BUILDDIR}/scripts/zpios-profile
|
|
|
|
export ETCDIR=${SRCDIR}/etc
|
|
|
|
export TESTSDIR=${SRCDIR}/tests
|
|
|
|
export RUNFILEDIR=${TESTSDIR}/runfiles
|
2016-05-06 17:24:06 +00:00
|
|
|
export UDEVRULEDIR=${BUILDDIR}/udev/rules.d
|
2010-09-04 20:26:23 +00:00
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
export ZDB=${CMDDIR}/zdb/zdb
|
|
|
|
export ZFS=${CMDDIR}/zfs/zfs
|
2016-05-06 17:24:06 +00:00
|
|
|
export ZHACK=${CMDDIR}/zhack/zhack
|
2015-07-01 22:23:09 +00:00
|
|
|
export ZINJECT=${CMDDIR}/zinject/zinject
|
|
|
|
export ZPOOL=${CMDDIR}/zpool/zpool
|
|
|
|
export ZTEST=${CMDDIR}/ztest/ztest
|
|
|
|
export ZPIOS=${CMDDIR}/zpios/zpios
|
SIMD implementation of vdev_raidz generate and reconstruct routines
This is a new implementation of RAIDZ1/2/3 routines using x86_64
scalar, SSE, and AVX2 instruction sets. Included are 3 parity
generation routines (P, PQ, and PQR) and 7 reconstruction routines,
for all RAIDZ level. On module load, a quick benchmark of supported
routines will select the fastest for each operation and they will
be used at runtime. Original implementation is still present and
can be selected via module parameter.
Patch contains:
- specialized gen/rec routines for all RAIDZ levels,
- new scalar raidz implementation (unrolled),
- two x86_64 SIMD implementations (SSE and AVX2 instructions sets),
- fastest routines selected on module load (benchmark).
- cmd/raidz_test - verify and benchmark all implementations
- added raidz_test to the ZFS Test Suite
New zfs module parameters:
- zfs_vdev_raidz_impl (str): selects the implementation to use. On
module load, the parameter will only accept first 3 options, and
the other implementations can be set once module is finished
loading. Possible values for this option are:
"fastest" - use the fastest math available
"original" - use the original raidz code
"scalar" - new scalar impl
"sse" - new SSE impl if available
"avx2" - new AVX2 impl if available
See contents of `/sys/module/zfs/parameters/zfs_vdev_raidz_impl` to
get the list of supported values. If an implementation is not supported
on the system, it will not be shown. Currently selected option is
enclosed in `[]`.
Signed-off-by: Gvozden Neskovic <neskovic@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4328
2016-04-25 08:04:31 +00:00
|
|
|
export RAIDZ_TEST=${CMDDIR}/raidz_test/raidz_test}
|
2010-09-04 20:26:23 +00:00
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
export COMMON_SH=${SCRIPTDIR}/common.sh
|
|
|
|
export ZFS_SH=${SCRIPTDIR}/zfs.sh
|
|
|
|
export ZPOOL_CREATE_SH=${SCRIPTDIR}/zpool-create.sh
|
|
|
|
export ZPIOS_SH=${SCRIPTDIR}/zpios.sh
|
|
|
|
export ZPIOS_SURVEY_SH=${SCRIPTDIR}/zpios-survey.sh
|
2010-09-04 20:26:23 +00:00
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
# Test Suite Specific Commands
|
|
|
|
export TEST_RUNNER=${TESTSDIR}/test-runner/cmd/test-runner.py
|
|
|
|
export STF_TOOLS=${TESTSDIR}/test-runner
|
|
|
|
export STF_SUITE=${TESTSDIR}/zfs-tests
|
2010-09-04 20:26:23 +00:00
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
export CHG_USR_EXEC=${TESTSDIR}/zfs-tests/cmd/chg_usr_exec/chg_usr_exec
|
|
|
|
export DEVNAME2DEVID=${TESTSDIR}/zfs-tests/cmd/devname2devid/devname2devid
|
|
|
|
export DIR_RD_UPDATE=${TESTSDIR}/zfs-tests/cmd/dir_rd_update/dir_rd_update
|
|
|
|
export FILE_CHECK=${TESTSDIR}/zfs-tests/cmd/file_check/file_check
|
|
|
|
export FILE_TRUNC=${TESTSDIR}/zfs-tests/cmd/file_trunc/file_trunc
|
|
|
|
export FILE_WRITE=${TESTSDIR}/zfs-tests/cmd/file_write/file_write
|
|
|
|
export LARGEST_FILE=${TESTSDIR}/zfs-tests/cmd/largest_file/largest_file
|
|
|
|
export MKBUSY=${TESTSDIR}/zfs-tests/cmd/mkbusy/mkbusy
|
|
|
|
export MKFILE=${TESTSDIR}/zfs-tests/cmd/mkfile/mkfile
|
|
|
|
export MKFILES=${TESTSDIR}/zfs-tests/cmd/mkfile/mkfiles
|
|
|
|
export MKTREE=${TESTSDIR}/zfs-tests/cmd/mktree/mktree
|
|
|
|
export MMAP_EXEC=${TESTSDIR}/zfs-tests/cmd/mmap_exec/mmap_exec
|
|
|
|
export MMAPWRITE=${TESTSDIR}/zfs-tests/cmd/mmapwrite/mmapwrite
|
|
|
|
export RANDFREE_FILE=${TESTSDIR}/zfs-tests/cmd/randfree_file/randfree_file
|
|
|
|
export READMMAP=${TESTSDIR}/zfs-tests/cmd/readmmap/readmmap
|
|
|
|
export RENAME_DIR=${TESTSDIR}/zfs-tests/cmd/rename_dir/rename_dir
|
|
|
|
export RM_LNKCNT_ZERO_FILE=${TESTSDIR}/zfs-tests/cmd/rm_lnkcnt_zero_file/rm_lnkcnt_zero_file
|
|
|
|
export THREADSAPPEND=${TESTSDIR}/zfs-tests/cmd/threadsappend/threadsappend
|
|
|
|
export XATTRTEST=${TESTDIR}/zfs-tests/cmd/xattrtest
|
2010-09-04 20:26:23 +00:00
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
export INTREE=1
|
|
|
|
export LDMOD=/sbin/insmod
|
2016-03-23 01:08:59 +00:00
|
|
|
export GDB="/usr/bin/libtool --mode=execute gdb"
|
2014-01-21 21:30:03 +00:00
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
export ZED_PIDFILE=@runstatedir@/zed.pid
|
|
|
|
|
|
|
|
export KERNEL_MODULES=( \
|
2010-09-04 20:26:23 +00:00
|
|
|
${KERNELMOD}/lib/zlib_deflate/zlib_deflate.ko \
|
2010-11-11 18:00:39 +00:00
|
|
|
${KERNELMOD}/lib/zlib_inflate/zlib_inflate.ko \
|
2010-09-04 20:26:23 +00:00
|
|
|
)
|
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
export SPL_MODULES=( \
|
2010-09-04 20:26:23 +00:00
|
|
|
${SPLBUILD}/module/spl/spl.ko \
|
|
|
|
${SPLBUILD}/module/splat/splat.ko \
|
|
|
|
)
|
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
export ZFS_MODULES=( \
|
2010-09-04 20:26:23 +00:00
|
|
|
${MODDIR}/avl/zavl.ko \
|
|
|
|
${MODDIR}/nvpair/znvpair.ko \
|
|
|
|
${MODDIR}/unicode/zunicode.ko \
|
|
|
|
${MODDIR}/zcommon/zcommon.ko \
|
|
|
|
${MODDIR}/zfs/zfs.ko \
|
|
|
|
)
|
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
export ZPIOS_MODULES=( \
|
2010-09-04 20:26:23 +00:00
|
|
|
${MODDIR}/zpios/zpios.ko \
|
|
|
|
)
|
|
|
|
|
2015-07-01 22:23:09 +00:00
|
|
|
export MODULES=( \
|
2010-09-04 20:26:23 +00:00
|
|
|
${SPL_MODULES[*]} \
|
|
|
|
${ZFS_MODULES[*]} \
|
|
|
|
)
|