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

Suppress warning about disabling adaptive size policy when enabling UseLargePages with UseNUMA when adaptive size policy is disabled

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b66
    • CPU:
      generic
    • OS:
      linux

      Backports

        Description

        The warning in this block should be conditional:

            // With SHM and HugeTLBFS large pages we cannot uncommit a page, so there's no way
            // we can make the adaptive lgrp chunk resizing work. If the user specified
            // both UseNUMA and UseLargePages (or UseSHM/UseHugeTLBFS) on the command line - warn and
            // disable adaptive resizing.
            if (UseNUMA && UseLargePages && !can_commit_large_page_memory()) {
              if (FLAG_IS_DEFAULT(UseNUMA)) {
                UseNUMA = false;
              } else {
                if (FLAG_IS_DEFAULT(UseLargePages) &&
                    FLAG_IS_DEFAULT(UseSHM) &&
                    FLAG_IS_DEFAULT(UseHugeTLBFS)) {
                  UseLargePages = false;
                } else {
                  warning("UseNUMA is not fully compatible with SHM/HugeTLBFS large pages, disabling adaptive resizing");
                  UseAdaptiveSizePolicy = false;
                  UseAdaptiveNUMAChunkSizing = false;
                }
              }
            }

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                redestad Claes Redestad
                Reporter:
                redestad Claes Redestad
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: