Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8181055

PPC64: "mbind: Invalid argument" still seen after 8175813

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      master
    • CPU:
      ppc
    • OS:
      linux

      Backports

        Description

        After back porting 8175813 to openjdk 1.8.0, "mbind: Invalid argument" message still can be seen on one of PPC64 machines.

         The problem is that, the machine only has one node, and numa_interleave_memory() apparently does not like to be called when it is the case.

        [zgu@ibm-p730-03-lp1 hotspot]$ lscpu
        Architecture: ppc64
        CPU op-mode(s): 32-bit, 64-bit
        Byte Order: Big Endian
        CPU(s): 8
        On-line CPU(s) list: 0-7
        Thread(s) per core: 4
        Core(s) per socket: 1
        Socket(s): 2
        NUMA node(s): 2
        Model: 2.1 (pvr 003f 0201)
        Model name: POWER7 (architected), altivec supported
        L1d cache: 32K
        L1i cache: 32K
        NUMA node0 CPU(s): 0-7
        NUMA node1 CPU(s):

        Following patch fixes the problem:

        diff -r 56d2166223f6 src/os/linux/vm/os_linux.cpp
        --- a/src/os/linux/vm/os_linux.cpp Wed May 24 12:42:44 2017 +0200
        +++ b/src/os/linux/vm/os_linux.cpp Wed May 24 19:28:49 2017 -0400
        @@ -2728,7 +2728,9 @@
         }
         
         void os::numa_make_global(char *addr, size_t bytes) {
        - Linux::numa_interleave_memory(addr, bytes);
        + if (numa_get_groups_num() > 1) {
        + Linux::numa_interleave_memory(addr, bytes);
        + }
         }
         
         // Define for numa_set_bind_policy(int). Setting the argument to 0 will set the



          Issue Links

            Activity

            Hide
            zgu Zhengyu Gu added a comment - - edited
            The alternative, we can disable NUMA if there is only one configured node discovered.

            I am not sure the implications: 1 NUMA node = UMA?
             
            Show
            zgu Zhengyu Gu added a comment - - edited The alternative, we can disable NUMA if there is only one configured node discovered. I am not sure the implications: 1 NUMA node = UMA?  
            Hide
            gromero Gustavo Romero added a comment -
            Hi Zhengyu,

            Could you please also provide the output of 'numactl -H' on the machine were the issue in question occurs? Thanks!
            Show
            gromero Gustavo Romero added a comment - Hi Zhengyu, Could you please also provide the output of 'numactl -H' on the machine were the issue in question occurs? Thanks!
            Hide
            zgu Zhengyu Gu added a comment -
            [zgu@ibm-p730-03-lp1 bin]$ numactl -H
            available: 2 nodes (0-1)
            node 0 cpus: 0 1 2 3 4 5 6 7
            node 0 size: 0 MB
            node 0 free: 0 MB
            node 1 cpus:
            node 1 size: 7680 MB
            node 1 free: 1896 MB
            node distances:
            node 0 1
              0: 10 40
              1: 40 10
            Show
            zgu Zhengyu Gu added a comment - [ zgu@ibm-p730-03-lp1 bin]$ numactl -H available: 2 nodes (0-1) node 0 cpus: 0 1 2 3 4 5 6 7 node 0 size: 0 MB node 0 free: 0 MB node 1 cpus: node 1 size: 7680 MB node 1 free: 1896 MB node distances: node 0 1   0: 10 40   1: 40 10
            Show
            zgu Zhengyu Gu added a comment - http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-May/027000.html
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk10/hs/hotspot/rev/2befe2aca4b4
            User: dholmes
            Date: 2017-06-01 03:11:13 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk10/hs/hotspot/rev/2befe2aca4b4 User: dholmes Date: 2017-06-01 03:11:13 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk10/jdk10/hotspot/rev/2befe2aca4b4
            User: jwilhelm
            Date: 2017-08-18 18:01:35 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk10/jdk10/hotspot/rev/2befe2aca4b4 User: jwilhelm Date: 2017-08-18 18:01:35 +0000

              People

              • Assignee:
                zgu Zhengyu Gu
                Reporter:
                zgu Zhengyu Gu
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: