

However, this does come with a performance penalty. So, in theory, they should save their state to storage so you can pick up where you left off. Android apps are written in such a way that they know they could be killed off like this as a normal part of RAM management. If no more ZRAM is available, Android will kill older processes that aren’t currently in use, freeing up any memory they’re using.

However, it’s still faster than loading app data from storage. This data can’t be read directly but must be decompressed and loaded into the regular portion of RAM first. It’s just a logical portion of RAM that’s been cordoned off, containing compressed RAM pages. If there isn’t enough free RAM, the first thing Android does is “swap RAM pages” to a special compressed segment of RAM called ZRAM.
