> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siderolabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

> 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.

# ZswapConfig

```yaml theme={null}
apiVersion: v1alpha1
kind: ZswapConfig
maxPoolPercent: 25 # The maximum percent of memory that zswap can use.
shrinkerEnabled: true # Enable the shrinker feature: kernel might move
```

<table>
  <thead>
    <tr>
      <th>Field</th>
      <th>Type</th>
      <th>Description</th>
      <th>Value(s)</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`maxPoolPercent`</td>
      <td>int</td>
      <td>The maximum percent of memory that zswap can use.<br />This is a percentage of the total system memory.<br />The value must be between 0 and 100.</td>

      <td />
    </tr>

    <tr>
      <td>`shrinkerEnabled`</td>
      <td>bool</td>
      <td>Enable the shrinker feature: kernel might move<br />cold pages from zswap to swap device to free up memory<br />for other use cases.</td>

      <td />
    </tr>
  </tbody>
</table>
