This seems like dejá vu all over again... Leslie On 2023-07-31 00:32:22 Masaru Nomiya wrote:
Hello,
Please have a look;
https://www.reddit.com/r/openSUSE/comments/mfs53x/tip_enable_zram_easily/
it is written as follows;
Zram uses your CPU to compress swap which makes your PC faster
( People say it boosts the performance even though it uses your CPU ) Using Zram can reduce the read/write cycles on an SSD and increases its durability.
In adsdition from
https://haydenjames.io/linux-performance-almost-always-add-swap-part2-zram/
[...] What is ZRAM?
ZRAM creates a block device in RAM where pages that would otherwise be written to swap (disk/SSD) are instead first compressed, then stored. This allows for a much faster I/O of swap, and also, the data compression provides a significant amount of memory savings.
A downside of ZRAM is that it uses some CPU for compression, but this is usually negated by the gains achieved from avoiding disk swap and the overall memory savings of compression. So keep those things in mind per your usage.
In my case;
1. before installation of zram
$ free -m
total used free shared buff/cache available Mem: 96297 4831 65144 84 26321 90403 Swap: 4095 0 4095
2. after installtion
$ free -m
total used free shared buff/cache available Mem: 96297 5383 64598 77 26315 89857 Swap: 100393 0 100393
where;
# zramctl --output-all NAME DISKSIZE DATA COMPR ALGORITHM STREAMS ZERO-PAGES TOTAL MEM-LIMIT MEM-USED MIGRATED MOUNTPOINT /dev/zram0 94G 4K 62B zstd 16 0 20K 0B 20K 0B [SWAP]
You will soon see the effect of ZRAM implementation.
The dramatic improvement in sound quality is very pleasing, as well as the crisp running of applications.
Regards.
--- ┏━━┓彡 野宮 賢 mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "Maddox hopes that empowering users to pick their own algorithms will get them to think more about what’s involved in making them. "
-- Bluesky's Custom Algorithms Could Be the Future of Social Media --