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

[nmt] Totals for malloc should show total peak

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • hotspot
    • b25

      In NMT, when printing Summary information, we print:

      ```
      Total: reserved=17838MB, committed=1141MB
             malloc: 45MB #90495
             mmap: reserved=17793MB, committed=1097MB
      ```
      For each individual category, we print peak numbers too, e.g.:

      ```
      - GC (reserved=384MB, committed=90MB)
                                  (malloc=38MB #1534) (peak=38MB #1773)
                                  (mmap: reserved=347MB, committed=53MB, at peak)
      ```
      or

      ```
      - Other (reserved=0MB, committed=0MB)
                                  (malloc=0MB #1) (peak=512MB #67108865)
      ```

      We should print out the total malloc footprint peak in the Totals section too.

      Note that we cannot just simply add up the individual peaks, since there is no guarantee they happened at the same time. Instead, we need to keep total peak value and print that.






            szaldana Sonia Zaldana Calles
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: