17a3ee006a
1. To disable multi-zRAM device creation (based on the number of CPU cores) in the original script, as it's deprecated, can cause some issues, and is unnecessary since kernel 4.7. See https://bugzilla.suse.com/show_bug.cgi?id=1185928 and https://github.com/Nefelim4ag/systemd-swap/issues/176 2. To change the zRAM compression algorithm from "lzo-rle" to "zstd", as it yields the highest compression ratio, hence the fastest to complete the task. Both compression ratio and speed are better than "lzo-rle". Therefore, changing the compression algorithm to "zstd" will benefit zRAM usage. See https://www.reddit.com/r/Fedora/comments/mzun99/new_zram_tuning_benchmarks/ OBS-URL: https://build.opensuse.org/request/show/1000767 OBS-URL: https://build.opensuse.org/package/show/filesystems/systemd-zram-service?expand=0&rev=6
7 lines
65 B
Bash
7 lines
65 B
Bash
#!/bin/bash
|
|
|
|
# Switching off swap
|
|
swapoff /dev/zram0
|
|
|
|
rmmod zram
|