m-j-w / CpuId.jl

Ask the CPU for cache sizes, SIMD feature support, a running hypervisor, and more.
Other
54 stars 10 forks source link

Xeon E3-1241 v3 not correctly identified on hypervisor #9

Closed m-j-w closed 7 years ago

m-j-w commented 7 years ago

Per the log of pkglisting, the cache sizes are wrong. Should be 8MB L3, and L2 looks suspicious. It should also have AVX2. First Haswell Xeon tested on thus far. Also possible that its a hypervisor problem. Check after next tag: remember to add full dump of cpuid registers to tests, plus a dump of /proc/cpuinfo on linux.

>>> 'Pkg.add("CpuId")' log
INFO: Cloning cache of CpuId from https://github.com/m-j-w/CpuId.jl.git
INFO: Installing CpuId v0.1.0
INFO: Package database updated
INFO: METADATA is out-of-date — you may not have the latest version of CpuId
INFO: Use `Pkg.update()` to get the latest versions of your packages

>>> 'Pkg.test("CpuId")' log
Julia Version 0.6.0-pre.beta.174
Commit 16d7342 (2017-04-16 22:18 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E3-1241 v3 @ 3.50GHz
  WORD_SIZE: 64
           Ubuntu 14.04.5 LTS
  uname: Linux 3.13.0-116-generic #163-Ubuntu SMP Fri Mar 31 14:13:22 UTC 2017 x86_64 x86_64
Memory: 2.9392738342285156 GB (665.37890625 MB free)
Uptime: 28343.0 sec
Load Avg:  1.0029296875  0.98583984375  1.00244140625
Intel(R) Xeon(R) CPU E3-1241 v3 @ 3.50GHz: 
       speed         user         nice          sys         idle          irq
#1  3501 MHz    1670759 s       5367 s      79695 s     662311 s         34 s
#2  3501 MHz     413208 s       1380 s      46353 s    2316719 s          1 s

  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, haswell)
Environment:
  TERM = vt100
  LD_LIBRARY_PATH = :/usr/local/lib/
  PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/vagrant/julia/bin/
  JAVA_HOME = /usr/lib/jvm/java-7-oracle
  HOME = /home/vagrant

Package Directory: /home/vagrant/.julia/v0.6
2 required packages:
 - CpuId                         0.1.0
 - JSON                          0.9.0
1 additional packages:
 - Compat                        0.23.0
INFO: Testing CpuId
| `Cpuid` Property | Value                                                |
|:---------------- |:---------------------------------------------------- |
| Brand            | Intel(R) Xeon(R) CPU E3-1241 v3 @ 3.50GHz            |
| Vendor           | Intel                                                |
| Model            | Dict(:Family=>6,:Stepping=>3,:CpuType=>0,:Model=>60) |
| Address Size     | 48 bits virtual, 39 bits physical                    |
| SIMD             | max. vector size: 16 bytes = 128 bits                |
| Data cache       | level 1:3 : (32, 32, 6144) kbytes                    |
|                  | 64 byte cache line size                              |
| Hypervisor       | No                                                   |

Test Summary: | Pass  Total
ReturnTypes   |   24     24
INFO: CpuId tests passed

>>> End of log
m-j-w commented 7 years ago

http://www.cpu-world.com/CPUs/Xeon/Intel-Xeon%20E3-1241%20v3.html

m-j-w commented 7 years ago

This actually seems to be a non-issue. /proc/cpuinfo reports same L3 cache size:

processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 60
model name  : Intel(R) Xeon(R) CPU E3-1241 v3 @ 3.50GHz
stepping    : 3
microcode   : 0x19
cpu MHz     : 3498.574
cache size  : 6144 KB
physical id : 0
siblings    : 2
core id     : 0
cpu cores   : 2
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 5
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl pni ssse3 lahf_lm
bogomips    : 6997.14
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family  : 6
model       : 60
model name  : Intel(R) Xeon(R) CPU E3-1241 v3 @ 3.50GHz
stepping    : 3
microcode   : 0x19
cpu MHz     : 3498.574
cache size  : 6144 KB
physical id : 0
siblings    : 2
core id     : 1
cpu cores   : 2
apicid      : 1
initial apicid  : 1
fpu     : yes
fpu_exception   : yes
cpuid level : 5
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl pni ssse3 lahf_lm
bogomips    : 6997.14
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management: