]
Jason Greene updated WFCORE-1000:
---------------------------------
Summary: Take into account cpuset affinity on Linux when using cpu count for sizing
pools (was: Take into account cpuset masks on Linux when using cpu count for sizing
pools)
Take into account cpuset affinity on Linux when using cpu count for
sizing pools
--------------------------------------------------------------------------------
Key: WFCORE-1000
URL:
https://issues.jboss.org/browse/WFCORE-1000
Project: WildFly Core
Issue Type: Feature Request
Components: Server
Reporter: Jason Greene
Assignee: Jason Greene
Fix For: 2.0.0.CR4
On Linux, Runtime.getRuntime().availableProcessors() always returns the host CPU count
regardless of the process' cpuset affinity. This effectively means usage of cgroups
(e.g. using docker) and numactl will lead to oversized thread pools. While this issue
should be fixed in the JVM, we should workaround the problem by reading /proc.