mirror of
https://github.com/oneclickvirt/oneclickvirt.github.io.git
synced 2026-06-24 15:47:47 +08:00
476 B
476 B
outline
| outline |
|---|
| deep |
Repository
https://github.com/spiritLHLS/addzram
addzram
Enable zram (compressed memory) on Linux servers.
Install
curl -L https://raw.githubusercontent.com/spiritLHLS/addzram/main/addzram.sh -o addzram.sh && chmod +x addzram.sh && bash addzram.sh
Notes
- zram and swap both consume CPU resources in different ways.
- Input
1024to create about1Gzram device memory. - zram size should not exceed physical memory size.