This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/12587] New: sysconf(_SC_*CACHE) returns 0 for all caches on some CPUs.


http://sourceware.org/bugzilla/show_bug.cgi?id=12587

           Summary: sysconf(_SC_*CACHE) returns 0 for all caches on some
                    CPUs.
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: john.haxby@oracle.com


I have a machine for which /proc/cpuinfo shows this:

  vendor_id       : GenuineIntel
  cpu family      : 6
  model           : 44
  model name      : Intel(R) Xeon(R) CPU           X5670  @ 2.93GHz
  stepping        : 2

and "getconf -a | grep CACHE" shows zero for all the matching entries.

For what its worth, __cpuid(2, eax, ebx, ecx, edx) puts 0x5b0b101,
0x5657f0, 0x0 and 0x2cb43049 in eax, ebx, ecx and edx respectively and
these do not correspond to any entries in intel_02_known[] in
sysdeps/x86_64/cacheinfo.c or sysdeps/i386/i686/cacheinfo.c.

The values in /sys/devices/system/cpu/cpuN/cache/index*/* seem to be
correct for this machine.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]