]> granicus.if.org Git - zfs/commitdiff
Increase the number of iput taskq threads
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 18 Jun 2015 16:17:42 +0000 (09:17 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 22 Jun 2015 17:22:10 +0000 (10:22 -0700)
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 <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
module/zfs/dsl_pool.c

index 108fc5299f41c67b0bd9b6e45774c31565887b92..908c44e702a176b531dda03ee67c3655d8d2e4b4 100644 (file)
@@ -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);
 }