Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,720 members, 7,816,964 topics. Date: Friday, 03 May 2024 at 09:28 PM

What Is Zram? - Phones - Nairaland

Nairaland Forum / Science/Technology / Phones / What Is Zram? (556 Views)

(2) (3) (4)

(1) (Reply) (Go Down)

What Is Zram? by atheistandproud(m): 1:52pm On Apr 09, 2022
In the last post I made, I talked about smartphone RAM. What it is, how it works, the different types as well as other key specs. When I was done, I said I was going to do a post on zRAM. So in this post, I am going to be tackling the question, what is zRAM?

What is zRAM?
zRAM can be defined as a partition of RAM that is designed to hold compressed app processes. The data of an app currently in use that is saved to the RAM is known as an app process.

In Linux terms, the ‘z’ stands for compressed. The zRAM resides within the main RAM module and can be thought as a block of RAM which holds low priority data that is compressed.

Function
This part is simple enough. It holds compressed app processes which are in memory but are not currently in use.

How does zRAM work?
Our smartphones, especially Android phones, have the ability to multitask. When you boot up an app, important data needed for the app to run is then saved to the RAM. This makes it easier for the CPU cores to access and process such apps.

The more apps that you open, the more app processes that you create. These app processes are saved to the RAM. This will continue until the RAM gets filled up. Of course, the RAM is going to get filled up at some point. The space is not infinite.

At this point, the operating system (OS) is going to take a look at the app processes that sitting in the RAM. If an app process has been sitting in the RAM for hours, without being touched, the OS would conclude that such an app is not important. Such apps are termed low-priority apps.

The OS would compress such low priority apps to smaller sizes and push them out of the main RAM into the zRAM. Sometimes, it is the zRAM itself that does the compression. This action would then create space for a newer app process to be loaded into the RAM.

In RAM management, this entire process is known as compressing/compression. The naming depends on where you get your information.

Read: RAM, Internal and External storage explained

Decompressing
If for some reason, the user decides reopen an app whose process is stored in the zRAM, the OS would decompress the app back to it’s full size. The OS will then restore the app process back to the RAM.

In Summary…

If you are asked, what is zRAM? zRAM is a block of RAM that is designed to hold compressed app processes. How does it do this? Simple, by acting as a storage area for low priority data. It will hold this data until it (i.e. the data) is needed.

Basically, zRAM is a very intelligent way for smartphones to multitask efficiently and effectively.

https://inquisitiveuniverse.com/2022/04/09/what-is-zram/

5 Likes 1 Share

Re: What Is Zram? by Josbreed: 2:22pm On Apr 09, 2022
Turanchi.
Re: What Is Zram? by atheistandproud(m): 2:43pm On Apr 09, 2022
Josbreed:
Turanchi.

Me ya faru da turanci?
Re: What Is Zram? by jboixxx: 3:07pm On Apr 09, 2022
atheistandproud:


Me ya faru da turanci?
grin grin
Re: What Is Zram? by Gbolahan111: 5:44pm On Apr 09, 2022
Your explanation is well detailed. Thanks

2 Likes

Re: What Is Zram? by Nobody: 5:54pm On Apr 09, 2022
Following
Re: What Is Zram? by atheistandproud(m): 8:20pm On Apr 09, 2022
Gbolahan111:
Your explanation is well detailed. Thanks

You're welcome.

(1) (Reply)

The Infinix Hot 30 Full Specifications / Dreammmmmms / Blackberry Curve Vs Nokia E71

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.