Skip to main content

sc_crawler.inspector_helpers

Helpers to parse the hardware details of servers from the sc-inspector-data repository.

Classes:

  • StorageInfo – Bundled storage of a server, parsed from lsblklsblkA Linux command of util-linux that lists block devices, such as disks and their partitions, with attributes such as size, type, and mount point. It can print a table or JSON, with sizes in bytes or in human-readable units.man pageGlossary and lshw outputs.
  • CpuCacheInfo – Size and sharing of a CPU cacheCPU cacheSmall, fast memory inside a CPU that holds copies of recently used data, so that most accesses avoid the slower RAM. Server CPUs have three levels, each larger and slower than the one before. The L1 cache is split into a data cache (L1d) and an instruction cache (L1i) and belongs to one core, as the L2 cache usually does, while the L3 cache is shared by the cores of a socket, a die, or a group of cores.WikipediaGlossary level, parsed from lscpulscpuA Linux command of util-linux that reports the CPU architecture of a system, such as the CPU model, the number of sockets, cores, and threads, the cache sizes, and the NUMA nodes. It can print a table or JSON.man pageGlossary and lstopo outputs.

class StorageInfo inspector_helpers.py:26–35⁠ (opens in a new tab)​

Bundled storage of a server, parsed from lsblklsblkA Linux command of util-linux that lists block devices, such as disks and their partitions, with attributes such as size, type, and mount point. It can print a table or JSON, with sizes in bytes or in human-readable units.man pageGlossary and lshw outputs.

class CpuCacheInfo inspector_helpers.py:38–76⁠ (opens in a new tab)​

Size and sharing of a CPU cacheCPU cacheSmall, fast memory inside a CPU that holds copies of recently used data, so that most accesses avoid the slower RAM. Server CPUs have three levels, each larger and slower than the one before. The L1 cache is split into a data cache (L1d) and an instruction cache (L1i) and belongs to one core, as the L2 cache usually does, while the L3 cache is shared by the cores of a socket, a die, or a group of cores.WikipediaGlossary level, parsed from lscpulscpuA Linux command of util-linux that reports the CPU architecture of a system, such as the CPU model, the number of sockets, cores, and threads, the cache sizes, and the NUMA nodes. It can print a table or JSON.man pageGlossary and lstopo outputs.