]> Git Repo - J-linux.git/commitdiff
workqueue: Adjust WQ_MAX_ACTIVE from 512 to 2048
authorChen Ridong <[email protected]>
Tue, 8 Oct 2024 11:24:58 +0000 (11:24 +0000)
committerTejun Heo <[email protected]>
Tue, 8 Oct 2024 18:46:54 +0000 (08:46 -1000)
WQ_MAX_ACTIVE is currently set to 512, which was established approximately
15 yeas ago. However, with the significant increase in machine sizes and
capabilities, the previous limit of 256 concurrent tasks is no longer
sufficient. Therefore, we propose to increase WQ_MAX_ACTIVE to 2048.
and WQ_DFL_ACTIVE is 1024 now.

Signed-off-by: Chen Ridong <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Documentation/core-api/workqueue.rst
include/linux/workqueue.h

index 2b813f80ce39c59c22aa7a4301062809085af04c..e295835fc1164ecc543e4faea2cd7e501f7233d0 100644 (file)
@@ -245,8 +245,8 @@ CPU which can be assigned to the work items of a wq. For example, with
 at the same time per CPU. This is always a per-CPU attribute, even for
 unbound workqueues.
 
-The maximum limit for ``@max_active`` is 512 and the default value used
-when 0 is specified is 256. These values are chosen sufficiently high
+The maximum limit for ``@max_active`` is 2048 and the default value used
+when 0 is specified is 1024. These values are chosen sufficiently high
 such that they are not the limiting factor while providing protection in
 runaway cases.
 
index 59c2695e12e7674d5bc4cdd1fb416074374f981c..b0dc957c3e56024468bee708e853aaf5e2cbf531 100644 (file)
@@ -412,7 +412,7 @@ enum wq_flags {
 };
 
 enum wq_consts {
-       WQ_MAX_ACTIVE           = 512,    /* I like 512, better ideas? */
+       WQ_MAX_ACTIVE           = 2048,   /* I like 2048, better ideas? */
        WQ_UNBOUND_MAX_ACTIVE   = WQ_MAX_ACTIVE,
        WQ_DFL_ACTIVE           = WQ_MAX_ACTIVE / 2,
 
This page took 0.056118 seconds and 4 git commands to generate.