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
- Raises
ProcessorVendorNotFoundError – An error occurred while looking for processor vendor.
KeyNotFoundError – An error occurred while looking for micro architecture
-
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
- Returns
String containing event code and umask
- Return type
- Raises
ProcessorVendorNotFoundError – An error occurred while looking for processor vendor.