ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
412 stars 85 forks source link

Debian rollup #27

Closed nabijaczleweli closed 5 years ago

nabijaczleweli commented 5 years ago

I have a big honkin' loniax now, preliminary testing revealed:

Warnings:

nabijaczleweli@tarta:~/projects/infoware/build$ ninja
[46/48] Building CXX object CMakeFiles/infoware.dir/src/cpu/quantities_cache/quantities_cache_non_windows_non_darwin.cpp.o
../src/cpu/quantities_cache/quantities_cache_non_windows_non_darwin.cpp: In function ‘iware::cpu::cache_t iware::cpu::cache(unsigned int)’:
../src/cpu/quantities_cache/quantities_cache_non_windows_non_darwin.cpp:63:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
      ret.size *= 1024;
      ~~~~~~~~~^~~~~~~
../src/cpu/quantities_cache/quantities_cache_non_windows_non_darwin.cpp:64:5: note: here
     case 'M':
     ^~~~
../src/cpu/quantities_cache/quantities_cache_non_windows_non_darwin.cpp:65:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
      ret.size *= 1024;
      ~~~~~~~~~^~~~~~~
../src/cpu/quantities_cache/quantities_cache_non_windows_non_darwin.cpp:66:5: note: here
     case 'K':
     ^~~~

E5645s have 6 cores apiece, so Physical CPUs should read 2*6=12:

nabijaczleweli@tarta:~/projects/infoware/build$ ./bin/infoware_cpu_example
Infoware version 0.2.1

  Quantities:
    Logical CPUs : 24
    Physical CPUs: 24
    CPU packages : 2

  Caches:
    L1:
      Size         : 32768B
      Line size    : 64B
      Associativity: 0
      Type         : Instruction
    L2:
      Size         : 262144B
      Line size    : 64B
      Associativity: 0
      Type         : Unified
    L3:
      Size         : 12582912B
      Line size    : 64B
      Associativity: 0
      Type         : Unified

  Architecture: x64
  Frequency: 2536104000 Hz
  Endianness: Little-Endian
  Model name: Intel(R) Xeon(R) CPU           E5645  @ 2.40GHz
  Vendor ID: GenuineIntel

  Instruction set support:
    3D-now!: false
    MMX    : true
    SSE    : true
    SSE2   : true
    SSE3   : true
    AVX    : false

No OS name (and I have a mouse connected?):

nabijaczleweli@tarta:~/projects/infoware/build$ ./bin/infoware_system_example
Infoware version 0.2.1

  Connected HIDs:
    Mice     : 1
    Keyboards: 0
    Other    : 0

  Memory:
    Physical:
      Available: 99850997760B
      Total    : 101361758208B
    Virtual:
      Available: 35184372087808B
      Total    : 35184372087808B

  Kernel:
    Variant: Linux
    Version: 4.19.0 build 6

  OS:
    Name     :
    Full name:
    Version  : 0.0.0 build 0

  Displays:
    None connected or no detection method enabled

  Display configurations:
    No displays connected, no detection method enabled, or not supported
nabijaczleweli commented 5 years ago

https://www.githubstatus.com/incidents/42hkbtl63nmn