zramswap(1)
β¨ zramswap β the manual page bestie π
okay so you found zramswap, the little tool from the zram-tools crew, and honestly? she's giving main character energy for your RAM. let's get into it π«Ά
πΈ NAME πΈ
zramswap β configure swap on zram π
π¦ SYNOPSIS π¦
zramswap [OPTION]
π DESCRIPTION π
so like, zram is a Linux feature that lets a user create compressed ramdisks β¨ and zramswap sets up swap in zram, which β no cap β effectively lets you compress memory. it's literally free real estate in your RAM, bestie.
here's where it actually eats, aka the common use cases:
- On machines with low memory, it mitigates the tedious situation where the machine is out of memory and then it starts swapping to disk only to lose a large amount of disk bandwidth. (the classic "why is my laptop screaming" arc π)
- On machines where the main swap file is on flash memory,
zramswapmay only provide marginal performance increase (especially on fast SSD media), however, it will prevent some amount of wear on your flash memory.zramswapis especially beneficial if your main flash is on SD/MMC/CF card. (saving your poor little SD card's life fr fr π) - On servers that run many virtual machines or containers,
zramswapallows you to optimise memory usage by swapping out data that's not often accessed, but when a user needs to access it, it will be available fast. It allows you to overcommit on memory with a negligible hit on your application performance (and often an improvement in performance where you can use more main memory for filesystem cache). (overcommitting? iconic. servers stay winning π)
β OPTIONS β
Usage: zramswap [OPTION]
π ZRAMSWAP Options π
startβ Sets up zram swap. (the glow-up begins β¨)stopβ Tears down zram swap. (rip bozo π)statusβ Displays zram swap usage and compression ratio. (vibe check your RAM π)
π REPORTING BUGS π
found a bug? don't be shy, please file issues at: https://salsa.debian.org/jcc/zram-tools/issues ππ
π AUTHORS π
This manual page was written by Jonathan Carter <jcarter@linux.com> β absolute legend, we stan π«Ά
ngl bestie, that's the whole page. every flag, every use case, all accounted for. periodt π
zramswap Β· 2018-10-04 Β· zramswap(1) β mwah, hope this helped, go compress some memory and slay the day πΈπβ¨
π¦ where this page comes from
- debian bookworm: zram-tools 0.3.3.1-1.1 Β· ISC
- debian trixie: zram-tools 0.3.7-1 Β· ISC
- ubuntu jammy: zram-tools 0.3.3.1-1 Β· ISC
- ubuntu noble: zram-tools 0.3.3.1-1.1 Β· ISC
- ubuntu questing: zram-tools 0.3.7-1
- ubuntu resolute: zram-tools 0.3.7-1build1 Β· ISC
- ubuntu stonking: zram-tools 0.3.7-1build1 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms