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, zramswap may only provide marginal performance increase (especially on fast SSD media), however, it will prevent some amount of wear on your flash memory. zramswap is 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, zramswap allows 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 πŸŒΈπŸ’–βœ¨