Cost per byte ergonomics dependent on number of threads

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P3
    • tbd
    • Affects Version/s: 14
    • Component/s: hotspot
    • gc

      We calculate the cost per byte ergonomcis value without taking the number of active threads into account, i.e.:

      src/hotspot/share/gc/g1/g1Policy.cpp


        782 double cost_per_byte_ms = (average_time_ms(G1GCPhaseTimes::ObjCopy) + average_time_ms(G1GCPhaseTimes::OptObjCopy)) / copied_bytes;

      If active_workers changes, this is wrong. Otoh active_workers probably does not change too much, and a linear interpolation might not work as speedup achieved may not perfectly scale with the number of threads.

      There may be additional similar metrics that do not take the active workers into account properly.

      Day one.

            Assignee:
            Unassigned
            Reporter:
            Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: