Original topic:

What does Ram Plus actually do?

(Topic created on: 10-08-2023 01:18 AM)
2171 Views
ArchLinux
Active Level 3
Options
Tech Talk
You might've heard about Ram Plus or have seen it in settings. But what does it actually do?

image
RAM Plus settings

Despite being said in settings, RAM Plus does not use storage. You can try enabling it on a phone with something like 500MB remaining storage. It will still work.

What it actually uses

RAM Plus uses ZRAM, which means Compressed Swap in Linux. This can be confirmed by running:
cat /vendor/etc/fstab.ramplus
Which outputs this:

image
Output of cat /vendor/etc/fstab.ramplus in ADB shell

RAM Plus can increase the amount of RAM in your phone by compressing RAM that isn't needed and decompressing it when needed. For example:

image
ZRAMCTL output on Konsole


Should I use RAM Plus?
Yes, you should. It should stop background apps from closing automatically as soon as you exit it. RAM Plus won't reduce your storage or damage your storage chip due to frequent writing

If this was helpful to you, please consider clicking the heart button
1 Comment
sandeep_d
Active Level 5
Tech Talk
Swap space has been a staple in the Linux kernel for a considerable amount of time. Essentially, it virtually expands RAM capacity by incorporating an additional 2/4 GB of space from the hard drive.