foundObjects / zram-swap

A simple zram swap service for modern systemd Linux
MIT License
309 stars 44 forks source link

Use more CPU resource to get more RAM resource #11

Closed SYK696 closed 1 year ago

SYK696 commented 2 years ago

My cpu resource is enough,but raspiberryhas only 512MB ram.I want to use more cpu resource to get more resource.

reukiodo commented 1 year ago

According to https://linuxreviews.org/Comparison_of_Compression_Algorithms you should try using zstd, which zram already supports. Have you tried all 4 different options mentioned in the https://github.com/foundObjects/zram-swap/blob/master/service/zram-swap.config ?

foundObjects commented 1 year ago

As mentioned above just select a compression algorithm with a higher compression ratio, zstd is likely what you want.