diff options
author | Brian Behlendorf <[email protected]> | 2009-07-06 16:51:59 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-07-06 16:51:59 -0700 |
commit | 621679fec6c74233f366b91c07e35bb71590e08c (patch) | |
tree | 7cb8ba882a2d06b3ecf111d948c4d39293f2a935 /scripts | |
parent | 684a4c5f30822ba1a5e106b87555ffb9df3639b7 (diff) |
Update to use dmu_read() instead of dmu_read_impl() now that a 'flags'
argument is available. This flags argument was added to allow a clean
API for disabling prefetch, so I'll update zpios to use it in preference
to the module option hack used before.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/zpios-survey.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/zpios-survey.sh b/scripts/zpios-survey.sh index 2a3a33033..6c5e1935b 100755 --- a/scripts/zpios-survey.sh +++ b/scripts/zpios-survey.sh @@ -50,16 +50,16 @@ zpios_survey_base() { # Disable ZFS's prefetching. For some reason still not clear to me # current prefetching policy is quite bad for a random workload. -# Allowint the algorithm to detect a random workload and not do +# Allowing the algorithm to detect a random workload and not do # anything may be the way to address this issue. zpios_survey_prefetch() { TEST_NAME="${ZPOOL_CONFIG}+${ZPIOS_TEST}+prefetch" print_header ${TEST_NAME} ./zfs.sh ${VERBOSE_FLAG} \ - zfs="zfs_prefetch_disable=1" | \ tee -a ${ZPIOS_SURVEY_LOG} ./zpios.sh ${VERBOSE_FLAG} -c ${ZPOOL_CONFIG} -t ${ZPIOS_TEST} | \ + -o "--noprefetch" | \ tee -a ${ZPIOS_SURVEY_LOG} ./zfs.sh -u ${VERBOSE_FLAG} | \ tee -a ${ZPIOS_SURVEY_LOG} @@ -144,12 +144,11 @@ zpios_survey_all() { print_header ${TEST_NAME} ./zfs.sh ${VERBOSE_FLAG} \ - zfs="zfs_prefetch_disable=1" \ zfs="zfs_vdev_max_pending=1024" \ zfs="zio_bulk_flags=0x100" | \ tee -a ${ZPIOS_SURVEY_LOG} ./zpios.sh ${VERBOSE_FLAG} -c ${ZPOOL_CONFIG} -t ${ZPIOS_TEST} \ - -o "--zerocopy" \ + -o "--noprefetch --zerocopy" \ -s "set checksum=off" | \ tee -a ${ZPIOS_SURVEY_LOG} ./zfs.sh -u ${VERBOSE_FLAG} | \ |