Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCOS OKD Huge Pages Support #24

Open
f5-jay opened this issue Nov 16, 2024 · 1 comment
Open

SCOS OKD Huge Pages Support #24

f5-jay opened this issue Nov 16, 2024 · 1 comment

Comments

@f5-jay
Copy link

f5-jay commented Nov 16, 2024

I can't seem to get huge pages enabled on my worker nodes following this:

https://docs.okd.io/4.16/scalability_and_performance/what-huge-pages-do-and-how-they-are-consumed-by-apps.html#configuring-huge-pages_huge-pages

Is this supported with SCOS (Version: 4.16.0-okd-scos.0)?

@f5-jay
Copy link
Author

f5-jay commented Nov 26, 2024

I've upgraded to 4.16.0-okd-scos.1 and it still is not enabling hugepages.

Here are my yaml files:


apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfigPool
metadata:
  name: worker-hp
  labels:
    worker-hp: ""
spec:
  machineConfigSelector:
    matchExpressions:
      - {key: machineconfiguration.openshift.io/role, operator: In, values: [worker,worker-hp]}
  nodeSelector:
    matchLabels:
      node-role.kubernetes.io/worker-hp: ""

apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
  name: hugepages 
  namespace: openshift-cluster-node-tuning-operator
spec:
  profile: 
  - data: |
      [main]
      summary=Boot time configuration for hugepages
      include=openshift-node
      [bootloader]
      cmdline_openshift_node_hugepages=hugepagesz=2M hugepages=50 
    name: openshift-node-hugepages

  recommend:
  - machineConfigLabels: 
      machineconfiguration.openshift.io/role: "worker-hp"
    priority: 30
    profile: openshift-node-hugepages

root@bastion:~# oc get nodes
NAME                 STATUS   ROLES                         AGE   VERSION
master.okd.lab    Ready    control-plane,master,worker   17d   v1.29.10+67d3387
worker1.okd.lab   Ready    worker,worker-hp              17d   v1.29.10+67d3387
worker2.okd.lab   Ready    worker,worker-hp              17d   v1.29.10+67d3387

I'm really not sure what I am doing wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant