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

Record number of references into collection set during gc

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 18
    • 18
    • hotspot
    • gc
    • b26

    Description

      JDK-8272773 introduced a configurable card table card size. Testing showed some really good pause time reductions in some applications adjusting the card table size.

      However changing the card table size is a tradeoff between the time it takes to scan the card area and the other processing needed for cards (clear CT, memory overhead).

      A rule of thumb is to look at card scanning time - if it takes a significant time of your pauses (random value: 30-40%; read bigramtester), then strongly consider a smaller card table size; if it takes a very small part of the pause time (read: specjbb) it might be useful to increase its size.

      Essentially the size of a card directly impacts card scan time - after all it is directly related to the amount of overhead needed to find the potentially single reference in that card. The larger, the more objects you might potentially search in vain.

      This is very hard to gauge for people trying to tune the VM: what would help is some measure of how many references into the collection set were found during scanning the cards (i.e. to determine a ratio between bytes scanned / interesting reference).

      Add to logging.

      Attachments

        Issue Links

          Activity

            People

              tschatzl Thomas Schatzl
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: