Mercurial > illumos > illumos-gate
changeset 12605:6790e683d5a5
6959846 DMU traverse prefetch size should be a global tunable
author | Chris Kirby <Chris.Kirby@oracle.com> |
---|---|
date | Thu, 10 Jun 2010 15:46:47 -0600 |
parents | 3b6b88cabb4b |
children | 3c942b164456 |
files | usr/src/uts/common/fs/zfs/dmu_traverse.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/fs/zfs/dmu_traverse.c Thu Jun 10 14:07:42 2010 -0700 +++ b/usr/src/uts/common/fs/zfs/dmu_traverse.c Thu Jun 10 15:46:47 2010 -0600 @@ -36,6 +36,8 @@ #include <sys/sa_impl.h> #include <sys/callb.h> +int zfs_pd_blks_max = 100; + struct prefetch_data { kmutex_t pd_mtx; kcondvar_t pd_cv; @@ -370,7 +372,7 @@ td.td_pfd = &pd; td.td_flags = flags; - pd.pd_blks_max = 100; + pd.pd_blks_max = zfs_pd_blks_max; pd.pd_flags = flags; mutex_init(&pd.pd_mtx, NULL, MUTEX_DEFAULT, NULL); cv_init(&pd.pd_cv, NULL, CV_DEFAULT, NULL);