Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,165,357 members, 7,860,942 topics. Date: Friday, 14 June 2024 at 07:30 PM

What Is Virtual Memory Aka RAM Extension - Phones - Nairaland

Nairaland Forum / Science/Technology / Phones / What Is Virtual Memory Aka RAM Extension (1634 Views)

SIM-NIN Linkage: NCC Rules Out Extension, Telcos Bar 12 Million Lines / Nokia 8110 4G Accepts Whatsapp Now - AKA banana phone / Who Is Using Wifi.com.ng Aka Tizeti? Give Your Feedback. (2) (3) (4)

(1) (Reply) (Go Down)

What Is Virtual Memory Aka RAM Extension by atheistandproud(m): 4:16pm On Apr 12, 2022
Hello, welcome to another blog post. In this post, we are going to be look at virtual memory. What is virtual memory or virtual RAM on a smartphone?

This topic, at this point in time, is super important. Is someone asking “why?”. Well, if you look at all the new android phones coming through, a lot of them are advertising virtual memory (or RAM extension) as a feature.

This is the new buzzword that has come to town, but it is not very understood. I have spoken to a lot of people and I can confirm this. That is why I am writing this post. So lets tackle the question, what is virtual memory?

The concept of virtual memory?
I am going to try to explain the concept of virtual memory before attempting to define it. I have seen people define virtual memory as allocating some part of the internal storage for system use. This is true but it doesn’t fully explain the concept.

The term virtual means not physically existing as such but made by software to appear to do so. Every smartphone has software for handling memory. This software contains the addresses and pages of every data and task on your phone. Now, software does not work alone, it needs to paired up with hardware.

When you boot up software into a 2GB RAM device, the software should recognize that there is only 2GB of space on the RAM. In turn, it would then only create 2GB of virtual memory which it would map on (assign) to the available RAM space.

If you booted software onto a 4GB or 6GB RAM device, it would also do the same thing. Create virtual memory according to the available RAM space and assign accordingly.

So what if you wanted more memory but do not have the available memory in hardware? This is where virtual memory comes in.

Read: Smartphone RAM explained

What is virtual memory?
Virtual memory is an extension of the software memory beyond the limits of the available hardware. Let’s say that you have only 4GB of RAM but you want 6GB (an extra 2GB). The software would then enlarge the virtual memory from 4GB to 6GB.

But wait a minute. If software needs hardware to function, what hardware would the extra 2GB of virtual memory run on? This is where your internal storage comes in to play. You the user is going to have to sacrifice 2GB of your internal storage to support the added virtual memory.

Read: What is zRAM?

How virtual memory works?
As much as companies would want to have you believe that virtual memory is RAM, it is not. This is because the physical location of the software extension is located on an entirely different block of memory.

What Virtual memory does is to act as a location for swapping. Swapping is defined as process of moving running app processes to an alternate storage. In this case, Swapping means moving running app processes from RAM to Internal Storage.


Virtual memory

So whenever the RAM gets filled up, the operating system simply removes low priority apps and swaps them to the virtual memory located on the internal storage. When the app is needed, the operating system would swap it back into the main RAM.

Android moves (swaps) processes from RAM to Storage using Kernel Swap Daemon (Kswapd).

With that we have come to the end of this post. I hope the explanation was super clear.

https://inquisitiveuniverse.com/2022/04/12/what-is-virtual-memory/

7 Likes 2 Shares

Re: What Is Virtual Memory Aka RAM Extension by Damisic: 5:26pm On Apr 12, 2022
Dammmm ....the virtual ram is dammmm advertised as if na true real ram ....na person wet buy that infinix hot 12i loss pass

It is just the g88 that sweet but the 2gb and 3gb na wash
Re: What Is Virtual Memory Aka RAM Extension by atheistandproud(m): 6:59pm On Apr 12, 2022
Damisic:
Dammmm ....the virtual ram is dammmm advertised as if na true real ram ....na person wet buy that infinix hot 12i loss pass

It is just the g88 that sweet but the 2gb and 3gb na wash

No mind them.
Re: What Is Virtual Memory Aka RAM Extension by Ahmback(m): 8:52pm On Apr 12, 2022
Actually learnt something new today..... Thank you
Re: What Is Virtual Memory Aka RAM Extension by Deicide: 8:55pm On Apr 12, 2022
This is my Samsung phone. And you can see it has a swap space 2.5G. So I have approximately 8G according to the logic.

1 Like

Re: What Is Virtual Memory Aka RAM Extension by edoairways: 10:20pm On Apr 12, 2022
At least redmni note 8 still enjoy this one too
Re: What Is Virtual Memory Aka RAM Extension by d3cod3r(m): 12:20am On Apr 13, 2022
Let the transsion marketers come and read up. They've been shouting memory fusion up and down like it is a breakthrough.
Re: What Is Virtual Memory Aka RAM Extension by EnergyEnergy(m): 5:05am On Apr 13, 2022
This is educative, learned a lot from this, it's like neural network. Chai... I must to learn coding other software stuffs like blockchain and AI

not yet in front page, stuff like 2 million bumbum enters FP quickly, I am starting to deeply dislike nairaland
Re: What Is Virtual Memory Aka RAM Extension by atheistandproud(m): 11:00pm On Apr 13, 2022
EnergyEnergy:
This is educative, learned a lot from this, it's like neural network. Chai... I must to learn coding other software stuffs like blockchain and AI

not yet in front page, stuff like 2 million bumbum enters FP quickly, I am starting to deeply dislike nairaland

Lol why should it surprise you?

The IQ of this country has been slipping since time immemorial grin grin grin

1 Like

Re: What Is Virtual Memory Aka RAM Extension by atheistandproud(m): 11:01pm On Apr 13, 2022
d3cod3r:
Let the transsion marketers come and read up. They've been shouting memory fusion up and down like it is a breakthrough.

Vawulencia everwheresia

1 Like

Re: What Is Virtual Memory Aka RAM Extension by atheistandproud(m): 11:03pm On Apr 13, 2022
Deicide:
This is my Samsung phone. And you can see it has a swap space 2.5G. So I have approximately 8G according to the logic.

Tried to reply you yesterday and got banned from writing two gigabytes in words.

I taya.

So my device has six gigabytes of RAM as well with two gigabytes of swap space. The system reads it as eight gigabytes of RAM as well.
Re: What Is Virtual Memory Aka RAM Extension by Deicide: 4:12am On Apr 14, 2022
atheistandproud:


Tried to reply you yesterday and got banned from writing two gigabytes in words.

I taya.

So my device has six gigabytes of RAM as well with two gigabytes of swap space. The system reads it as eight gigabytes of RAM as well.
Do you think it's possible to increase the swap space on Android like we do on Linux?
Re: What Is Virtual Memory Aka RAM Extension by hansomb: 4:53am On Apr 14, 2022
Deicide:
This is my Samsung phone. And you can see it has a swap space 2.5G. So I have approximately 8G according to the logic.
what application is that ?
Re: What Is Virtual Memory Aka RAM Extension by atheistandproud(m): 5:10am On Apr 14, 2022
Deicide:
Do you think it's possible to increase the swap space on Android like we do on Linux?

Android is based off a Linux kernel, so yeah. But you're going to need some real admin privileges oh (i.e. root access).
Re: What Is Virtual Memory Aka RAM Extension by Deicide: 8:23am On Apr 14, 2022
hansomb:
what application is that ?
Termux. Just run the normal top command or if you have sudo use htop if it's installed.
Re: What Is Virtual Memory Aka RAM Extension by Multiversed: 11:06pm On Sep 14, 2023
This Is Insightful.

But It's not worth the Stress. Thanks.
Re: What Is Virtual Memory Aka RAM Extension by Yinksy09(m): 8:38pm On Sep 17, 2023
I heard about this feature for the first time while using the Spark 8C device.

(1) (Reply)

Sony Ericsson Concept Phone Again In The News! / Issue Of Dissapearing Posts On Nairaland / Lets Meet On 2go

(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. 25
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.