Changing Default Swap to zram #4065
relvinarsenio
started this conversation in
Features Request & Ideas | 特性请求 & 头脑风暴
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why doesn't Deepin OS replace swap file/partition with zram like Fedora does?
Or at least provide an option for swap file/partition or zram with a size of 100% of the total RAM during the installation process.
And if you want to use full zram without using swap, my suggestion is to make the size 100% of the total RAM installed in the system
Here are three key reasons for making this switch:
Improved Performance: Zram compresses memory pages in real-time, reducing the amount of data that needs to be written to disk compared to traditional swap space. This results in faster swap operations, reducing overall system latency and improving performance, especially on systems with limited RAM.
Reduced Wear on Storage Devices: Unlike traditional swap, which involves frequent disk writes that can degrade the lifespan of storage devices, zram operates in memory and doesn't rely on physical storage. This reduces wear on SSDs and other storage devices, potentially extending their lifespan.
Lower Disk Space Usage: Zram uses a compression algorithm to compress memory pages, which can significantly reduce the amount of disk space needed for swap compared to traditional swap partitions. This can be particularly beneficial for systems with limited storage capacity, such as embedded systems or cloud-based virtual machines.
Beta Was this translation helpful? Give feedback.
All reactions