Version v1.11 of the documentation is for the Talos version being developed. For the latest stable version of Talos, see the latest version.

ZswapConfig

ZswapConfig is a zswap (compressed memory) configuration document. When zswap is enabled, Linux kernel compresses pages that would otherwise be swapped out to disk. The compressed pages are stored in a memory pool, which is used to avoid writing to disk when the system is under memory pressure.
apiVersion: v1alpha1
kind: ZswapConfig
maxPoolPercent: 25 # The maximum percent of memory that zswap can use.
shrinkerEnabled: true # Enable the shrinker feature: kernel might move
FieldTypeDescriptionValue(s)
maxPoolPercentintThe maximum percent of memory that zswap can use.
This is a percentage of the total system memory.
The value must be between 0 and 100.
shrinkerEnabledboolEnable the shrinker feature: kernel might move
cold pages from zswap to swap device to free up memory
for other use cases.
Last modified June 11, 2025: feat: implement zswap support (c880835c8)