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 <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
This commit is contained in:
Brian Behlendorf 2015-06-18 09:17:42 -07:00
parent 57ae840077
commit 4c6a700910

View 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);
}