podman_rest_client/v5/models/
linux_intel_rdt.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// LinuxIntelRdt has container runtime resource constraints for Intel RDT CAT and MBA
4/// features and flags enabling Intel RDT CMT and MBM features.
5/// Intel RDT features are available in Linux 4.14 and newer kernel versions.
6pub struct LinuxIntelRdt {
7    /// The identity for RDT Class of Service
8    #[serde(rename = "closID")]
9    pub clos_id: Option<String>,
10    /// EnableCMT is the flag to indicate if the Intel RDT CMT is enabled. CMT (Cache Monitoring Technology) supports monitoring of
11    /// the last-level cache (LLC) occupancy for the container.
12    #[serde(rename = "enableCMT")]
13    pub enable_cmt: Option<bool>,
14    /// EnableMBM is the flag to indicate if the Intel RDT MBM is enabled. MBM (Memory Bandwidth Monitoring) supports monitoring of
15    /// total and local memory bandwidth for the container.
16    #[serde(rename = "enableMBM")]
17    pub enable_mbm: Option<bool>,
18    /// The schema for L3 cache id and capacity bitmask (CBM)
19    /// Format: "L3:<cache_id0>=<cbm0>;<cache_id1>=<cbm1>;..."
20    #[serde(rename = "l3CacheSchema")]
21    pub l3_cache_schema: Option<String>,
22    /// The schema of memory bandwidth per L3 cache id
23    /// Format: "MB:<cache_id0>=bandwidth0;<cache_id1>=bandwidth1;..."
24    /// The unit of memory bandwidth is specified in "percentages" by
25    /// default, and in "MBps" if MBA Software Controller is enabled.
26    #[serde(rename = "memBwSchema")]
27    pub mem_bw_schema: Option<String>,
28}