What Is Virtual RAM in Android and Should You Care (2024)

Apart fromhuge camera megapixelsandhigh refresh rate displays, the biggest trend in the smartphone world seems to be Virtual RAM. Some refer to it as Dynamic RAM expansion, while others call it Extended RAM. Regardless of what it’s called, the idea remains the same. Allow users to use some part of their storage as RAM to help multitask.

What Is Virtual RAM in Android and Should You Care (1)

We will discuss in this guide how memory management in Android works and how the idea of Virtual RAM differs from it. We will try to ponder whether Virtual RAM is even required on Android or not. So let’s get to it.

How Memory Management Works on Android

First things first, it’s important to understand how Android manages your memory. Within Android, there are 3 types of memory. First is your RAM, then you have zRAM, and finally your storage. RAM is the basic memory module inside which all apps run. Then there’s your onboard storage, either UFS or eMMC on budget devices. Finally, we have zRAM. Essentially, zRAM is a partition inside of RAM.

The idea behind zRAM is that low-priority data on RAM is compressed and stored inside zRAM. Because RAM is any day faster than your normal storage, having compressed data inside zRAM, which is a part of RAM, is still going to be faster than accessing it off your storage, even if you count the compressing and uncompressing times.

What Is Virtual RAM in Android and Should You Care (2)

Now that we’ve established the 3 different types of memory available to Android let’s understand how the OS handles it all. So Android makes use of paging techniques. How it functions is that RAM is broken into pages, where each page is typically of 4KB. Whether that page is free or actively used, they combine to show used RAM and unused RAM, respectively. Then, the kernel’s task is to convert used memory into free memory. It does so by shifting the data on those used pages to your storage.

What Is Paging and How It Works

To understand how it works, let’s understand the kinds of pages. You can classify Pages into two types – Clean and Dirty pages. The clean pages have an unmodified copy saved in the storage space. Meanwhile, dirty pages have a modified copy of data stored in storage. Now, what is this modified and unmodified? Let’s call it dynamic use of your memory.

Unmodified copies are static data, while modified copies are dynamic data changes every second. Android can purge the clean pages when needed since they’re not dynamically accessing the resources. That helps to free up the RAM and make more of it available. That might sound a bit too technical, so let’s make it simpler to understand using real-world applications.

What Is Virtual RAM in Android and Should You Care (3)

Suppose you open Twitter, browse through your feed, and then switch to something else. Twitter is still there in your RAM. But if you don’t open it for a while, its priority decreases. Later on, if you launch something new, Android will have to free the memory that Twitter is using. So what it does is that it shifts its values and data to the storage, and gives you free space. This is why when you launch Twitter again, it will first show you the timeline that it was hibernated at, and then refresh. The same is for Facebook, Reddit, or similar apps like Calculator or Notes. These apps use Clean pages since a copy of their data is statically saved inside your storage.

What Is Virtual RAM in Android and Should You Care (4)

Now, for dirty pages, consider Spotify or any music player. You start some music inside the player and then keep it running in the background without opening the app. However, the system cannot close it since it’s dynamically using your memory. As a result, Android compresses the app and shifts it to zRAM when more free RAM is required.

What Is Virtual RAM

Now that you’ve know how Android manages memory, you must wonder – where does the Virtual RAM feature comes in? Remember how we said that zRAM is also a part of RAM? The way Virtual RAM works is that it creates a swap partition on your storage space, and uses it as extra zRAM.

What Is Virtual RAM in Android and Should You Care (5)

Because zRAM is stored on your RAM only, there’s a limit to the number of pages you can compress and store in it. With a swap partition, you can use your storage space as extra zRAM, for compressing and shifting apps, while making space available in your actual RAM.

Is This Feature New

So, is all of this new? Well, not really. Linux has been using swap partitions since the beginning. For Android, custom kernel users have been using their SD Cards to create additional swap partitions to improve memory management.

As such, brand manufacturers are just giving you the same feature baked inside their Android skins. However, it does beg the question – if the feature is so helpful, why hasn’t it been a part of Android’s source code?

Is Virtual RAM Good or Bad

The answer lies in the very basic working of Virtual RAM itself. While the feature does allow you to run more apps on your device by compressing hibernated apps and shifting them to your storage, it does more harm than good. Because swap partitions are essentially storing active apps, there’s a higher sense of reading and writing involved.

This works fine on traditional storage, but flash memory has a limited number of reads and writes. So by using SWAP or Virtual RAM, you are technically lowering your device storage’s life span.

This is also highlighted well onAndroid’s developer page. “On Android, storage isn’t used for swap space like it is on other Linux implementations since frequent writing can cause wear on this memory and shorten the life of the storage medium.” Another example of this is in the new Apple M1 MacBooks. Those machines use a swap partition on Apple’s SSDs, for which users have been complaining quite a lot.

Does Virtual RAM Matter and Should You Use It

Essentially, it all depends on how you define multitasking. If it is juggling between just two to three active apps, then sure, virtual RAM does help with that. But if you keep switching between 5-6 heavily active apps, virtual RAM won’t do anything because it would keep shifting the apps.

At its core, the virtual RAM feature does allow you more RAM space available for apps to run. However, it comes at the cost of your storage. If you intend to keep using your device for more than two years, we reckcon that using virtual RAM might not make much sense.

I am an enthusiast with in-depth knowledge of smartphone technology and memory management, supported by practical experience and a comprehensive understanding of the concepts involved. My expertise extends to the intricate details of Android memory management, including RAM, zRAM, and storage, as well as the evolving trends in smartphone features such as high camera megapixels, high refresh rate displays, and the Virtual RAM phenomenon.

In the article you provided, the discussion revolves around the trend of Virtual RAM in the smartphone world, particularly in Android devices. Let me break down the concepts mentioned in the article:

Memory Management in Android:

  1. RAM (Random Access Memory): This is the primary memory module where all apps run.
  2. zRAM: A partition inside RAM used for compressing low-priority data, making it faster to access than regular storage.
  3. Storage: Onboard storage, either UFS or eMMC, where data is stored persistently.

How Android Manages Memory:

  1. Paging Techniques: RAM is divided into pages, typically 4KB each. Clean pages have unmodified data stored in storage, while dirty pages have modified data.

  2. Clean Pages vs. Dirty Pages: Clean pages contain static data, and Android can purge them to free up RAM. Dirty pages hold dynamic data that changes frequently, and they are compressed and shifted to zRAM when more free RAM is needed.

Virtual RAM:

  1. Definition: Virtual RAM, also known as Dynamic RAM expansion or Extended RAM, creates a swap partition on storage and uses it as extra zRAM.
  2. Purpose: It allows users to use part of their storage as additional RAM, increasing multitasking capabilities.

Is Virtual RAM Good or Bad:

  1. Benefits: It enables running more apps by compressing and shifting hibernated apps to storage.
  2. Drawbacks: It can lead to increased reading and writing on storage, potentially shortening its lifespan, especially with flash memory.

Considerations and Recommendations:

  1. Historical Context: Linux has used swap partitions, and some custom kernel users in Android have employed SD Cards for additional swap partitions.
  2. Concerns: Frequent writing to storage can cause wear and shorten the life of flash memory.
  3. Decision to Use Virtual RAM: Depends on individual usage patterns; beneficial for light multitasking but may not be ideal for heavy multitasking if the intention is to use the device for an extended period.

In summary, while Virtual RAM can provide additional RAM space for multitasking, users should weigh the benefits against potential drawbacks, especially regarding the impact on storage lifespan. The decision to use Virtual RAM depends on individual usage habits and long-term device usage plans.

What Is Virtual RAM in Android and Should You Care (2024)

FAQs

Is virtual RAM useful in Android? ›

It wont make a single piece of difference. Virtual RAM isn't a RAM either, it is just a simple HDD space that is being used from the storage to make the OS look like it has more RAM. This in return will consume more of the actual available system level RAM(from the 8GB pool). This will increase RAM consumption.

Is it better to turn off virtual RAM? ›

If you don't have enough RAM on your PC, disabling it might increase the frequency of memory-related errors, but at least you might increase your SSD's life span because that's one less file being written on it. Personally, I don't see the need to disable it.

Is virtual RAM necessary? ›

Virtual memory frees up RAM by swapping data that has not been used recently over to a storage device, such as a hard drive or solid-state drive (SSD). Virtual memory is important for improving system performance, multitasking and using large programs.

How much should my virtual RAM be? ›

You can change this to match the maximum size, or you can increase both beyond the maximum size. Microsoft recommends that you set virtual memory to be no less than 1.5 times and no more than 3 times the amount of RAM on your computer.

What is the disadvantage of virtual RAM in Android? ›

It has been observed that virtual memory operates at much slower speeds than computer RAM. If the OS juggles data between virtual memory and RAM continuously, it can slow down the computer considerably. This can lead to a phenomenon called 'thrashing.

Does increasing virtual RAM help? ›

When virtual memory is increased, the empty space reserved for RAM overflow increases. Having enough available space is absolutely necessary for virtual memory and RAM to function properly. Virtual memory performance can be improved automatically by freeing up resources in the registry.

What are the disadvantages of virtual memory? ›

Using virtual memory makes a computer run slower, as the processor has to wait while data is swapped between hard disk and RAM. As secondary storage devices have slower access times than RAM, the computer's processing performance can be severely impaired.

What happens if you turn off virtual memory? ›

Sometimes, disabling or enabling your virtual memory and paging file can cause low disk space, slow performance, or the blue screen of death.

Does virtual RAM make a phone slower? ›

More memory means you can run more apps in the background and launch them faster. Still, virtual RAM is slower than physical RAM and may make your Galaxy device run slower. This feature is usually activated by default. If your new Samsung Galaxy phone runs slower than expected, here's how to turn off Samsung RAM Plus.

What happens if RAM is full and no virtual memory? ›

When the system running out of memory and no virtual memory available, the operating system may stop a program from running with error not enough memory or no memory available, but it can also just shutdown some processes to free up memory space for the program.

Does virtual RAM consume more battery? ›

Virtual RAM is very very slow compared to RAM so it's used to store memory from programs running in the background. You're opening yourself up to having a ton of open apps on your phone that may drastically hurt your battery life.

Is virtual RAM usable? ›

Virtual RAM is a temporary storage space used by Windows to store files from your RAM that are not required for the task at hand in case your RAM gets filled up to free up space in your memory. This is an ongoing process in the background. But it will definitely slow down your system considerably.

What happens if virtual memory is too high? ›

Virtual Memory - High Usage

This could be slowing down some operations. Some actions that might help performance are: Exit and restart Revit. Specify fewer worksets when opening/saving a file.

How to free up virtual memory? ›

You can increase your virtual memory by using the Task Manager to find and quit all memory-intensive programs. You can also delete unnecessary files using Disk Cleanup. Or you can manually set the paging file size from Control Panel.

What is the best virtual memory setting for 8GB RAM? ›

As a rule of thumb, the paging file should be a minimum of 1.5 times the size of your installed RAM, and a maximum of 3 times your RAM size. For example, if you have 8 GB RAM, your minumum would be 1024 x 8 x 1.5 = 12,288 MB, and your maximum would be 1024 x 8 x 3 = 24,576 MB.

Does RAM expansion really work on Android? ›

RAM expansion does more harm than good. Phones with 8+ GB of actual RAM will still have more than half the RAM used by Android/Oxygen OS to make switching between apps smoother and cache apps so they don't restart. This in itself works better with actual RAM instead of RAM expansion.

Is virtual memory as good as RAM? ›

Increasing virtual memory can help when the system runs out of physical RAM, but it's slower since the hard drive is slower than RAM. Upgrading Physical RAM: Adding more physical RAM directly increases the amount of data the computer can process at once.

Does virtual RAM increase gaming performance in mobile? ›

Gaming – Virtual RAM may not directly boost the gaming performance of the device as the majority of the processing power is handled by the chipset. However, extending the RAM will allow you to keep more apps running in the background which might not reload once you open them after long gaming sessions.

Top Articles
Would you say An FAQ or A FAQ? Not to be mean, just not sure---cause pronounced ...
Scalping Trading Guide for Beginners 2022 I CAPEX Academy
Bild Poster Ikea
Skycurve Replacement Mat
Devon Lannigan Obituary
Noaa Charleston Wv
Danatar Gym
Acts 16 Nkjv
Roblox Developers’ Journal
How to Type German letters ä, ö, ü and the ß on your Keyboard
Mikayla Campino Video Twitter: Unveiling the Viral Sensation and Its Impact on Social Media
What Does Dwb Mean In Instagram
How to watch free movies online
Binghamton Ny Cars Craigslist
Evil Dead Rise Showtimes Near Regal Columbiana Grande
Gon Deer Forum
Craigslist Blackshear Ga
111 Cubic Inch To Cc
Locate At&T Store Near Me
Trac Cbna
Is The Yankees Game Postponed Tonight
Caledonia - a simple love song to Scotland
Is Windbound Multiplayer
Providence Medical Group-West Hills Primary Care
Employee Health Upmc
Wkow Weather Radar
Craigslist Apartments In Philly
Speedstepper
Catchvideo Chrome Extension
Table To Formula Calculator
Nikki Catsouras: The Tragic Story Behind The Face And Body Images
Pipa Mountain Hot Pot渝味晓宇重庆老火锅 Menu
134 Paige St. Owego Ny
Sun-Tattler from Hollywood, Florida
Ket2 Schedule
Cookie Clicker The Advanced Method
San Bernardino Pick A Part Inventory
Riverton Wyoming Craigslist
Craigslist Central Il
Alpha Labs Male Enhancement – Complete Reviews And Guide
Kenner And Stevens Funeral Home
Wilson Tire And Auto Service Gambrills Photos
60 Days From May 31
Leland Westerlund
Bank Of America Appointments Near Me
Enjoy Piggie Pie Crossword Clue
Used Sawmill For Sale - Craigslist Near Tennessee
Gelato 47 Allbud
Wrentham Outlets Hours Sunday
Skybird_06
Anthony Weary Obituary Erie Pa
Latest Posts
Article information

Author: Lakeisha Bayer VM

Last Updated:

Views: 6372

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Lakeisha Bayer VM

Birthday: 1997-10-17

Address: Suite 835 34136 Adrian Mountains, Floydton, UT 81036

Phone: +3571527672278

Job: Manufacturing Agent

Hobby: Skimboarding, Photography, Roller skating, Knife making, Paintball, Embroidery, Gunsmithing

Introduction: My name is Lakeisha Bayer VM, I am a brainy, kind, enchanting, healthy, lovely, clean, witty person who loves writing and wants to share my knowledge and understanding with you.