Processor specific data

This file contains processor specific information like model names, families and perf events

monitormetrics.utils.processorspecific.cpu_micro_architecture_name(vendor_name, model_id, family_id)[source]

This function gives the name of the micro architecture based on CPU model and family IDs

Parameters
  • vendor_name (str) – Name of the vendor

  • model_id – Model ID of the CPU

  • family_id – Family ID of the cpu

Returns

Name of the micro architecture

Return type

str

Raises
monitormetrics.utils.processorspecific.llc_cache_miss_perf_event(processor_vendor, micro_architecture)[source]

This function gives the event code and umask for LLC cache miss event for different architectures

Parameters
  • processor_vendor (str) – Vendor of the processor

  • micro_architecture (str) – Name of the micro architecture of the processor

Returns

String containing event code and umask

Return type

str

Raises

ProcessorVendorNotFoundError – An error occurred while looking for processor vendor.

monitormetrics.utils.processorspecific.perf_event_list(micro_architecture)[source]

This function returns list of perf events implemented for a given processor and micro architecture

Parameters

micro_architecture (str) – Name of the micro architecture

Returns

A dict with name and event code of perf events dict: A dict with derived perf metrics and its formula

Return type

dict