Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1000

Take into account cpuset affinity on Linux when using cpu count for sizing pools

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 2.0.0.CR4
    • None
    • Server
    • None

    Description

      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.

      Attachments

        Activity

          People

            jgreene@redhat.com Jason Greene
            jgreene@redhat.com Jason Greene
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: