-
Notifications
You must be signed in to change notification settings - Fork 684
feat: implement zswap support #11199
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
base: main
Are you sure you want to change the base?
Conversation
20b7155
to
b0a4ec5
Compare
Zswap allows to compress pages in memory before they hit the actual swap device. Both swap and zswap (or either one of these) can be enabled. Fixes siderolabs#10675 Signed-off-by: Andrey Smirnov <[email protected]>
172.20.0.5 runtime ZswapStatus zswap 1 0 B 0 0 0 | ||
``` | ||
|
||
Removing a `ZswapConfig` document will disable zswap on the system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: add a note about Kubernetes & swap, talosctl cgroups --preset swap
} | ||
} | ||
|
||
if err = safe.CleanupOutputs[*runtime.KernelParamSpec](ctx, r); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is cleaning up enough, or do we need to explicitly set sys.module.zswap.parameters.enabled
to N
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, cleaning up is enough - the kernel param controller reverts the value to the previous setting ('N') if the spec is removed
``` | ||
|
||
Removing a `SwapVolumeConfig` document will remove the swap device from the system, but the partition will remain on the disk. | ||
To |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the To
is to add docs about removing the partition?
Zswap allows to compress pages in memory before they hit the actual swap device.
Both swap and zswap (or either one of these) can be enabled.
Fixes #10675