Sample Configuration
CM calculates the CPU set of kubepods and passes it as the environment value "CPUSET_KUBEPODS" to create a static pod for CPU isolator.
To define isolcpu from host profile, the following is a sample host profile configuration:
---
profile_version: 2
profiles:
bios:
name: test_bios_settings
description: "CIMC BIOS settings"
pids:
UCSC-C220-M5SX:
description: "Copy of Default CIMC BIOS settings for UCSC-C220-M5SX"
tokens:
cpuPerformance: hpc
cpuEnergyPerformance: balanced-performance
eppProfile: Performance
packageCstateLimit: C0 C1 State
usbPortInternal: disabled
usbPortKvm: enabled
usbPortRear: disabled
usbPortSdCard: disabled
linux:
cisco_c220_m5_dual_numa:
# name: no longer used
description: "Cisco M5 Dual Numa Test Profle"
grub:
dedicate-cpus:
numa-0: '0%'
numa-1: '26-39'
hugepages:
numa-0:
2m: 0%
1g: 0%
numa-1:
2m: 20%
1g: 50
addition-grub-cmd-line: "intel_iommu=on intel_pstate=disable intel_idle.max_cstate=1 pcie_aspm.policy=performance idle=poll clocksource=tsc tsc=reliable skew_tick=1 nosoftlockup"
sysctl:
net.ipv4.neigh.default.gc_thresh1: 8192
net.ipv4.neigh.default.gc_thresh2: 32768
net.ipv4.neigh.default.gc_thresh3: 65536
net.ipv6.neigh.default.gc_thresh1: 8192
net.ipv6.neigh.default.gc_thresh2: 32768
net.ipv6.neigh.default.gc_thresh3: 65536
sysfs:
/sys/module/nvme_core/parameters/io_timeout: 4294967295
sriov:
- match:
pf-name: enp94s*
vfs-per-pf: 4
dpdk-vfs-per-pf: 2
dpdk-bind: vfio-pci
- match:
pf-name: enp216s*
vfs-per-pf: 16
cisco_c220_m5_single_numa:
description: "Cisco M5 Single Numa Test Profle"
grub:
dedicate-cpus:
numa-0: '26-39'
hugepages:
numa-0:
2m: 20%
1g: 0%
# single core needs intel_iommu=off
addition-grub-cmd-line: "intel_iommu=off intel_pstate=disable intel_idle.max_cstate=1 pcie_aspm.policy=performance idle=poll clocksource=tsc tsc=reliable skew_tick=1 nosoftlockup"
sysctl:
net.ipv4.neigh.default.gc_thresh1: 8192
net.ipv4.neigh.default.gc_thresh2: 32768
net.ipv4.neigh.default.gc_thresh3: 65536
net.ipv6.neigh.default.gc_thresh1: 8192
net.ipv6.neigh.default.gc_thresh2: 32768
net.ipv6.neigh.default.gc_thresh3: 65536
sysfs:
/sys/module/nvme_core/parameters/io_timeout: 4294967295
sriov:
- match:
pf-name: enp94s*
vfs-per-pf: 4
dpdk-vfs-per-pf: 2
dpdk-bind: vfio-pci
- match:
pf-name: enp216s*
vfs-per-pf: 16