snc
snc copied to clipboard
Disable huge memory pages
Change
RHCOS defaults to ‘huge memory pages’. Disabling ‘huge memory pages’ and switching to typical 4K pages helps GoLang to gather more idle memory (more and smaller pages can be ready for garbage collection). Rebooting node with Linux kernel parameter ‘transparent_hugepage=never’ enables the switch to smaller memory pages (4K).
How
With grubby update to include kernel parameter to disable ‘huge pages’.
Implemented in https://github.com/code-ready/snc/pull/246
Expected and mesured improvements
Pros
Cons
- little chance to get accepted upstream
MachineConfig object has a kernelArguments property. Perhaps we can use it to pass the parameter.
Docs: https://github.com/openshift/installer/blob/38362a33f03a5583aa681ce39692845ca6ce82ee/docs/user/customization.md#switching-rhcos-host-kernel-using-kerneltype
Minikube doesn't disable huge pages.