Datapath resource monitoring
On 7215 IXS, 7220 IXR, 7250 IXR, and 7730 SXR devices, SR Linux exposes utilization information about the following datapath resources, which are limited in number and potentially can be exhausted:
-
ACL-related resources
-
TCAM-related resources
-
MTU-related resources (only applicable to 7250 IXR devices)
-
QoS profile-related resources
-
Buffer memory
-
XDP forwarding-related resources
-
ASIC-specific forwarding-related resources
For each of these resources, you can specify a rising-threshold-log value (in percentage, 0 to 100) and a falling-threshold-log value (in percentage, 0 to 100). These values apply system-wide.
The rising-threshold-log value sets the threshold that triggers the generation of the systemResourceHighUtilization log message with warning severity whenever the utilization of the datapath resource in any line card (if applicable), forwarding-complex, or pipeline (if applicable) reaches this value in a rising direction. The log message captures the following information:
- Line card slot number (if applicable)
- Forwarding-complex name, for example “0”
- Pipeline number (if applicable)
- Resource name, for example
ip-lpm-routes
The falling-threshold-log value sets the threshold that triggers the generation of the systemResourceHighUtilizationLowered log message with notice severity whenever the utilization of the datapath resource reaches this value in a falling direction. This log message captures the same information as the rising-threshold-log message.
Configuring thresholds for datapath resources
Set thresholds for resource usage by input IPv4 filter instances
The following example sets thresholds for resource usage by input IPv4 filter instances.
--{ * candidate shared default }--[ ]--
# info with-context platform resource-monitoring
platform {
resource-monitoring {
acl {
resource input-ipv4-filter-instances {
rising-threshold-log 90
falling-threshold-log 75
}
}
}
}
Set thresholds for TCAM resource usage by IPv4 CPM filters
The following example sets thresholds for TCAM resource usage by IPv4 CPM filters.
--{ * candidate shared default }--[ ]--
# info with-context platform resource-monitoring
platform {
resource-monitoring {
tcam {
resource cpm-capture-ipv4 {
rising-threshold-log 90
falling-threshold-log 75
}
}
}
}