Hacker News new | ask | show | jobs
by ChocolateGod 12 days ago
> FYI, Android has had zRAM support since KitKat, which is from (checking notes) 2013. Same year as iOS.

iOS compresses regular pages, it doesn't need to go through the swap system to compress/decompress them.

This imho should end up having better savings and performance. zswap when it gains support for non-swap usage may close the gap.

1 comments

Maybe it's not technically a "swap system" but I'll be shocked if they're not doing effectively the same thing. How could you avoid having active uncompressed pages and inactive compressed pages? The amount of tracking you'd need to do to use compressed pages directly seems like an impossible amount of overhead.
There are good articles that explain that and OP is right.
Can you link one? A quick search just showed me information about compressing inactive apps and that requires very bulky actions with a lot of overhead, much more than going per page. Plus information about compressing inactive pages in a way that's basically the same as swap. Is there a third method I'm not aware of?