]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Set VDS workqueue max_active argument to 0
authorBijan Mottahedeh <bijan.mottahedeh@oracle.com>
Thu, 9 Jun 2016 19:36:53 +0000 (15:36 -0400)
committerAllen Pais <allen.pais@oracle.com>
Thu, 15 Sep 2016 06:35:39 +0000 (12:05 +0530)
commita1ab61a431c65eddbafc4087a824e01e42689b12
tree35434b14be08520b89f69670fd399af58a1215d4
parentaab75e36279f2b011d43b47784720af2e49aece5
sparc64: Set VDS workqueue max_active argument to 0

Orabug: 23565322

Based on

https://www.kernel.org/doc/Documentation/workqueue.txt

The recommended value for max_active is 0:

max_active:

max_active determines the maximum number of execution contexts per
CPU which can be assigned to the work items of a wq.  For example,
with @max_active of 16, at most 16 work items of the wq can be
executing at the same time per CPU.

Currently, for a bound wq, the maximum limit for @max_active is 512
and the default value used when 0 is specified is 256.  For an unbound
wq, the limit is higher of 512 and 4 * num_possible_cpus().  These
values are chosen sufficiently high such that they are not the
limiting factor while providing protection in runaway cases.

The number of active work items of a wq is usually regulated by the
users of the wq, more specifically, by how many work items the users
may queue at the same time.  Unless there is a specific need for
throttling the number of active work items, specifying '0' is
recommended.

Signed-off-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
Reviewed-by: Liam Merwick <Liam.Merwick@oracle.com>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
(cherry picked from commit b584786e611e8e8a28830386e8b3db8874d794c5)
(cherry picked from commit f2559a96b70562267f01d5bb62ef44aa9f0c0cd8)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
drivers/block/vds/vds_main.c