meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| hw:nsa310:debian:kernel_58 [2020/11/01 18:05] – niziak | hw:nsa310:debian:kernel_58 [2021/01/19 09:32] (current) – niziak | ||
|---|---|---|---|
| Line 42: | Line 42: | ||
| </ | </ | ||
| + | |||
| + | ====== zram ====== | ||
| + | <code bash> | ||
| + | apt-get install zram-tools | ||
| + | </ | ||
| + | |||
| + | <file init / | ||
| + | # Specifies amount of zram devices to create. | ||
| + | # By default, zramswap-start will use all available cores. | ||
| + | CORES=1 | ||
| + | |||
| + | # Specifies the amount of RAM that should be used for zram | ||
| + | # based on a percentage the total amount of available memory | ||
| + | # | ||
| + | |||
| + | # Specifies a static amount of RAM that should be used for | ||
| + | # the ZRAM devices, this is in MiB | ||
| + | # | ||
| + | |||
| + | # Specifies the priority for the swap devices, see swapon(2) | ||
| + | # for more details. | ||
| + | PRIORITY=100 | ||
| + | </ | ||
| + | |||
| + | <file bash / | ||
| + | ... | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | zramswap start | ||
| + | zramswap status | ||
| + | </ | ||