Git Product home page Git Product logo

system-query's People

Contributors

dependabot[bot] avatar mbdevpl avatar undertherain avatar vatai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

system-query's Issues

Access hardware info return null

{  
   'host':'kwan-LIFEBOOK-U536',
   'gpus':[  

   ],
   'swap':None,
   'ram':{  
      'total':None
   },
   'os':'Linux-4.15.0-54-generic-x86_64-with-Ubuntu-16.04-xenial',
   'hdds':{  

   },
   'cpu':{  

   }
}

##Environment

OS: ubuntu 16.04

I tested on python 3.5 and 3.6, both not working

not all CPU info is returned

on less common CPUs, such as Cavium ThunderX2
underlying pycpuinfo, though not reporting brand name, at least shows architecture and number of cores
but this information does not percolate into system_query

sample output of cpuinfo:

$ python3 -m cpuinfo
Python Version: 3.7.4.final.0 (64 bit)
Cpuinfo Version: (5, 0, 0)
Vendor ID: 
Hardware Raw: 
Brand: 
Hz Advertised: 
Hz Actual: 
Hz Advertised Raw: 
Hz Actual Raw: 
Arch: ARM_8
Bits: 64
Count: 224
Raw Arch String: aarch64
L1 Data Cache Size: 32 KB
L1 Instruction Cache Size: 32 KB
L2 Cache Size: 256 KB
L2 Cache Line Size: 
L2 Cache Associativity: 
L3 Cache Size: 32768 KB
Stepping: 
Model: 1
Family: 
Processor Type: 
Extended Model: 
Extended Family: 
Flags: aes, asimd, asimdrdm, atomics, cpuid, crc32, evtstrm, fp, pmull, sha1, sha2

output of sustem_query:

{'brand': None,
         'cache': {1: 32768, 2: 262144, 3: 33554432},
         'clock': None,
         'clock_max': None,
         'clock_min': None,
         'logical_cores': None,
         'physical_cores': None},

with, say, arch and cores I could have at least rendered this as "Unknown 224 core ARM_8 CPU " or something

fail to get cache size on Ryzen 3600/ Ubuntu 19.10

getting this error on ubuntu 19.10 / Ryzen 3600

blackbird@sugi:~/Projects_heavy/performance/benchmarker [master|โœ”]$ python3 -m system_query
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/__main__.py", line 7, in <module>
    main()
  File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/main.py", line 41, in main
    query_and_export(query_scope=args.scope, export_format=args.format, export_target=target)
  File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/query.py", line 29, in query_and_export
    info = query(query_scope, **kwargs)
  File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/query.py", line 36, in query
    info = query_all(**kwargs)
  File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/all_info.py", line 20, in query_all
    'cpu': query_cpu(**kwargs),
  File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/cpu_info.py", line 54, in query_cpu
    cache = _get_cache_sizes(cpu)
  File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/cpu_info.py", line 44, in _get_cache_sizes
    return {lvl: _get_cache_size(lvl, cpuinfo_data) for lvl in range(1, 4)}
  File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/cpu_info.py", line 44, in <dictcomp>
    return {lvl: _get_cache_size(lvl, cpuinfo_data) for lvl in range(1, 4)}
  File "/home/blackbird/.local/lib/python3.7/site-packages/system_query/cpu_info.py", line 40, in _get_cache_size
    return int(raw_value) * 1024
ValueError: invalid literal for int() with base 10: '192 KiB'

incorrect CPU info on multy-socket system

         'cache': {1: 32768, 2: 262144, 3: 31457280},
         'clock': 2199.6667291666668,
         'clock_max': 2200.0,
         'clock_min': 2200.0,
         'logical_cores': 48,
         'physical_cores': 12},```

this system is 2 socket Xeon, each 12 cores and 24 threads

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.