diff options
author | DHE <[email protected]> | 2015-12-16 14:22:32 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-12-18 13:46:23 -0800 |
commit | dcb6bed1dfc7ca6221a556f19d4252272ccfda33 (patch) | |
tree | 5444013b4c1df3a0cd1fce868b3320601010c214 /module/zfs/spa.c | |
parent | 82dba185c8780e439958d1524f91167a2920d76c (diff) |
Make zio_taskq_batch_pct user configurable
Adds zio_taskq_batch_pct as an exported module parameter,
allowing users to modify it at module load time.
Signed-off-by: DHE <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4110
Diffstat (limited to 'module/zfs/spa.c')
-rw-r--r-- | module/zfs/spa.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/module/zfs/spa.c b/module/zfs/spa.c index 2e23a341f..b4831a724 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -867,7 +867,7 @@ spa_taskqs_init(spa_t *spa, zio_type_t t, zio_taskq_type_t q) case ZTI_MODE_BATCH: batch = B_TRUE; flags |= TASKQ_THREADS_CPU_PCT; - value = zio_taskq_batch_pct; + value = MIN(zio_taskq_batch_pct, 100); break; default: @@ -6804,4 +6804,9 @@ MODULE_PARM_DESC(spa_load_verify_metadata, module_param(spa_load_verify_data, int, 0644); MODULE_PARM_DESC(spa_load_verify_data, "Set to traverse data on pool import"); + +module_param(zio_taskq_batch_pct, uint, 0444); +MODULE_PARM_DESC(zio_taskq_batch_pct, + "Percentage of CPUs to run an IO worker thread"); + #endif |