Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-721

glibc: Debug GLIBC_TUNABLES=glibc.cpu.hwcaps=

    • None
    • Moderate
    • rhel-sst-pt-libraries
    • 2
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Debugging setting these flags very early is not very easy.

      What is a good approach, for example, attempting to disable AVX, with
      several approaches in the pattern:

      $ GLIBC_TUNABLES=glibc.cpu.hwcaps=-AVX,-AVX2,-AVX_Usable /lib64/ld-2.28.so --list-diagnostics|grep -i AVX
      env[0x0]="GLIBC_TUNABLES=glibc.cpu.hwcaps=-AVX,-AVX2,-AVX_Usable"
      x86.cpu_features.preferred.AVX_Fast_Unaligned_Load=0x1
      x86.cpu_features.preferred.Prefer_No_AVX512=0x1
      x86.cpu_features.preferred.MathVec_Prefer_No_AVX512=0x0

      The desired trest is, for example, to get x86.cpu_features.preferred.AVX_Fast_Unaligned_Load set to zero.

      This request is to help an user to experiment with forcing glibc to choose __memcpy_ssse3_back (as was done in rhel7) instead of __memcpy_avx_unaligned_erms

      Tried several combinations from the switch in sysdeps/x86/cpu-tunables.c
      and could not find a good pattern to experiment. Note that info libc
      shows an incorrect path to check for possible values.

      The main request is to be able to experiment with different ifunc patterns
      for benchmark purposes.

              Unassigned Unassigned
              rhn-support-pandrade Paulo Andrade
              Platform Tools - Libraries Bot Platform Tools - Libraries Bot
              qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: