]> granicus.if.org Git - zfs/commitdiff
Use CPU percentages for number of commit cb threads.
authorRicardo M. Correia <Ricardo.M.Correia@Sun.COM>
Tue, 9 Mar 2010 21:21:20 +0000 (13:21 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 Mar 2010 21:21:20 +0000 (13:21 -0800)
This doesn't change number of threads in the kernel, but it reduces number of
threads in ztest (important due to 32-bit address limitations).

module/zfs/txg.c

index b5fcc8c4a858a67c92cd112b8b7239120b992e1a..dc2ca3da6b74a990afefe1fedec454699609d743 100644 (file)
@@ -348,8 +348,8 @@ txg_dispatch_callbacks(dsl_pool_t *dp, uint64_t txg)
                         * Commit callback taskq hasn't been created yet.
                         */
                        tx->tx_commit_cb_taskq = taskq_create("tx_commit_cb",
-                           max_ncpus, minclsyspri, max_ncpus, max_ncpus * 4,
-                           TASKQ_PREPOPULATE);
+                           100, minclsyspri, max_ncpus, max_ncpus * 4,
+                           TASKQ_PREPOPULATE | TASKQ_THREADS_CPU_PCT);
                }
 
                tcb = kmem_alloc(sizeof (tx_cb_t), KM_SLEEP);