-
Notifications
You must be signed in to change notification settings - Fork 50
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
Spike: Investigate the use of swap for OCP-4.15 to deal with default memory requirements #861
Comments
In general swap is no magic bullet, it helps to overcommit, but the price to pay is slower performance. The more you overcommit, the slower your system will get. What is the impact here? |
@cfergeau impact in case of cluster performance? Because I didn't see but I also didn't put any workload. Docs on kubenetes already suggest the https://kubernetes.io/blog/2023/08/24/swap-linux-beta/#caveats those. |
Is there an impact on cluster startup time? |
I am less concerned about the startup time, as the introduction of swap to prevent the increase of the default memory might have effects on the overall use.
'performance constraints' might already be the case to get the cluster in a stable state (startup time). Though I want to see an actual and representative payload to test this. |
During my testing I didn't see any impact but let me create the bundle and then see. |
What are the implications of this? This allows us to use swap, but does this also enable automatically other features we may want or not want? |
https://docs.openshift.com/container-platform/4.15/nodes/clusters/nodes-cluster-enabling-features.html#nodes-cluster-enabling-features-about_nodes-cluster-enabling have all details about what ll features are auto enabled (even we want or not) |
This one might be problematic? Though it looks like we can change back the value to be more permissive. |
After bit more experiment looks like |
As per https://docs.openshift.com/container-platform/4.15/nodes/nodes/nodes-nodes-managing.html#nodes-nodes-swap-memory_nodes-nodes-managing it is possible to use swap but this is in Tech preview. I was trying it out and see how reliable we can start the cluster without increase the resources on crc side. Because for 4.15, OVN-K is default and require more memory resource (~1.5G) then SDN for network operator.
swapaccount=1
which can be done with following machine configAfter all those steps swap is used for the the workload and take care of all the extra mem requirement but it has some caveats which is part of https://kubernetes.io/blog/2023/08/24/swap-linux-beta/ one. On openshift side since we enable Techpreview feature gate which means anything behind this gate is enabled automatic which are lot of things mentioned in the doc.
Node resources when swap is on (you can see memory is over committed because of swap is taking hit) and I started this cluster with default mem setting (9G)
Should we go with this option and not update the resource limit on crc side or should we not use it because it is tech preview?
All this is done as day-2 operation on our existing 4.15 bundle so I am not sure how much bundle size increase if we do it.
The text was updated successfully, but these errors were encountered: