]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
Make the number of system taskq threads based on the node of cores in the node, as...
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 2 Feb 2009 16:53:53 +0000 (08:53 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 2 Feb 2009 16:53:53 +0000 (08:53 -0800)
module/spl/spl-taskq.c

index 799b54839c50e3595453b05c80f2317073b90568..e77ef669fc3125eee274b701c7319975cdaeee2b 100644 (file)
@@ -474,8 +474,10 @@ spl_taskq_init(void)
 {
         ENTRY;
 
-        system_taskq = taskq_create("system_taskq", 64, minclsyspri, 4, 512,
-                                    TASKQ_PREPOPULATE);
+       /* Solaris creates a dynamic taskq of up to 64 threads, however in
+        * 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)
                RETURN(1);