From 4c6a70091030847ca5d6933916255194483ce91f Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 18 Jun 2015 09:17:42 -0700 Subject: [PATCH] Increase the number of iput taskq threads The number of threads in the iput taskq has been increased to speed up the number of iputs which can be handled. This has been observed to improve the meta data reclaim regardless of zfs_sb_prune() implementation in use. The taskq has also been renamed z_iput to for consistency with the rest of the I/O pipeline taskqs which are all named z_*. Signed-off-by: Brian Behlendorf Signed-off-by: Tim Chase --- module/zfs/dsl_pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/zfs/dsl_pool.c b/module/zfs/dsl_pool.c index 108fc5299..908c44e70 100644 --- a/module/zfs/dsl_pool.c +++ b/module/zfs/dsl_pool.c @@ -170,8 +170,8 @@ dsl_pool_open_impl(spa_t *spa, uint64_t txg) mutex_init(&dp->dp_lock, NULL, MUTEX_DEFAULT, NULL); cv_init(&dp->dp_spaceavail_cv, NULL, CV_DEFAULT, NULL); - dp->dp_iput_taskq = taskq_create("zfs_iput_taskq", 1, minclsyspri, - 1, 4, 0); + dp->dp_iput_taskq = taskq_create("z_iput", max_ncpus, minclsyspri, + max_ncpus * 8, INT_MAX, TASKQ_PREPOPULATE); return (dp); }