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

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b66
    • generic
    • linux

        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;
                }
              }
            }

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

                Created:
                Updated:
                Resolved: