]> git.proxmox.com Git - mirror_spl.git/commit - module/spl/spl-kmem-cache.c
Set TASKQ_DYNAMIC for kmem and system taskqs
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 24 Jun 2015 16:53:47 +0000 (09:53 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 24 Jun 2015 22:14:25 +0000 (15:14 -0700)
commit3c82160ff2feb86fb7275fd941d203167340a187
tree94978605e64baacb299143006f378121f2ab82f9
parentf7a973d99b5e272f4a6223b8fb7db4fc6d363b41
Set TASKQ_DYNAMIC for kmem and system taskqs

Add the TASKQ_DYNAMIC flag to the kmem_cache and system taskqs
to reduce the number of idle threads on the system.  Additional
threads will be created on demand up to the previous maximum
thread counts.  This should have minimal, if any, impact on
performance.

This makes the system taskq consistent with illumos which is
always created as a dynamic taskq with up to 64 threads.

The task limits for the kmem_cache have been increased to avoid
any unnessisary throttling and to keep a larger reserve of
task_t structures on the free list.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #458
module/spl/spl-kmem-cache.c
module/spl/spl-taskq.c