Make the number of system taskq threads based on the node of cores in the node, as is done for most linux system tasks
This commit is contained in:
parent
10a4be0f03
commit
f220894e1f
|
@ -474,8 +474,10 @@ spl_taskq_init(void)
|
||||||
{
|
{
|
||||||
ENTRY;
|
ENTRY;
|
||||||
|
|
||||||
system_taskq = taskq_create("system_taskq", 64, minclsyspri, 4, 512,
|
/* Solaris creates a dynamic taskq of up to 64 threads, however in
|
||||||
TASKQ_PREPOPULATE);
|
* a Linux environment 1 thread per-core is usually about right */
|
||||||
|
system_taskq = taskq_create("spl_system_taskq", num_online_cpus(),
|
||||||
|
minclsyspri, 4, 512, TASKQ_PREPOPULATE);
|
||||||
if (system_taskq == NULL)
|
if (system_taskq == NULL)
|
||||||
RETURN(1);
|
RETURN(1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue