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

CPU_HT is set randomly on hybrid CPUs like Alder Lake

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 24
    • performance
    • None
    • x86_64

      https://en.wikipedia.org/wiki/Alder_Lake CPUs have multiple cores where some of them (performance cores) have CPU_HT

      src/hotspot/cpu/x86/vm_version_x86.hpp
          decl(HT, "ht", 3) \

      set while other cores (efficient cores) have CPU_HT unset.

      src/hotspot/cpu/x86/vm_version_x86.cpp initialization can run randomly on any of the cores. This may set UseUnalignedLoadStores, AllocatePrefetchLines and AllocatePrefetchDistance suboptimally for the whole remaining run of OpenJDK.

      It is sure questionable whether CPU_HT should be set or unset on these hybrid CPUs. I guess it should be set as the performance matters on the performance CPUs.

            Unassigned Unassigned
            jkratochvil Jan Kratochvil
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: