Skip to content

Instantly share code, notes, and snippets.

@fenar
Created January 8, 2024 14:42
Show Gist options
  • Save fenar/9b0461b222a63b33ffcaa2dae964ba22 to your computer and use it in GitHub Desktop.
Save fenar/9b0461b222a63b33ffcaa2dae964ba22 to your computer and use it in GitHub Desktop.
OCP SNO Hugepages
---
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: sno-hugepages-patch
namespace: openshift-cluster-node-tuning-operator
spec:
profile:
- data: |
[main]
summary=Configuration changes profile inherited from performance created tuned
include=openshift-node-performance-sno-control-plane
[bootloader]
cmdline_crash=nohz_full=2-13,16-27,30-41,44-55
[sysctl]
kernel.timer_migration=1
[service]
service.stalld=start,enable
name: sno-hugepages-patch
recommend:
- machineConfigLabels:
machineconfiguration.openshift.io/role: "master"
priority: 30
profile: sno-hugepages-patch
---
apiVersion: performance.openshift.io/v2
kind: PerformanceProfile
metadata:
name: sno-control-plane
spec:
additionalKernelArgs:
- rcupdate.rcu_normal_after_boot=0
- efi=runtime
cpu:
isolated: '2-13,16-27,30-41,44-55'
reserved: '0-1,14-15,28-29,42-43'
hugepages:
defaultHugepagesSize: 2M
pages:
- count: 4096
node: 0
size: 2M
- count: 4096
node: 1
size: 2M
machineConfigPoolSelector:
pools.operator.machineconfiguration.openshift.io/master: ''
nodeSelector:
node-role.kubernetes.io/master: ''
numa:
topologyPolicy: restricted
realTimeKernel:
enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment