We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Hardware

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What is Virtual Memory?

By Preetam Kaushik
Updated: May 16, 2024

Virtual memory is found among all computer operating systems and it provides some very practical benefits to PC users. All computer systems have their own RAM (Physical Random Access Memory) which commonly ranges from 64 to 256 megabytes. When virtual memory is being used, the system allows the users to carry on working without worrying about the availability of data storage or memory saturation. It is often addressed as logical memory and allows users to access a larger volume of memory, allowing them to use more applications simultaneously.

With virtual memory, the system is able to search for applications on the RAM that aren't being used and copies the same on to the hard disk. As a result, more space is freed up on RAM and new applications can be loaded that need to be immediately used. The entire process is done automatically and the user doesn't need to click on anything. It functions by dividing the address space of the application programs into many smaller pages. These smaller pages are 4K byte pages, each with various virtual memory addresses.

Paging is the process by which the dormant (not-in-current use) virtual pages are saved on to the hard disk and are then restored to real memory when the user needs to operate a particular application. Page tables are used by computer operating systems to temporarily save the mapping of this swap between the virtual addresses of various applications and physical addresses (RAM). That part of the hard disk on which the pages are temporarily saved is called a page file.

The ability to save these temporary addresses on the hard disk isn't dependent on the limitations of the RAM alone. There is an automated calculation of the available page file also. Thus, systems that have smaller RAMs would need to have bigger page files. As a result, it is necessary to ensure that size of the page file has been set at its maximum possible value.

Every operating system has its own Paging Supervisor to manage the page tables. Paging Supervisors are very effective in searching for files in the physical memory that are the least used and can be utilized for swapping with virtual memory files. However, there are some pages that cannot be swapped and are called non-pageable or resident pages.

A computer system using virtual memory has access to a more economic way of creating more storage space. Hard-disk space is much cheaper than the RAM chips that are installed in the PC. By using virtual memory, the need to upgrade/add the RAM is avoided.

EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Discussion Comments
By jessica500 — On May 12, 2011

@honeysuckle- No, you do not have to buy a new computer. That error message just means your virtual memory is too low, and that can be increased.

Go through all your programs and eliminate any of them that you do not use or want. Also run the clean-up disk feature and defragment your computer. By doing all of this, you should be able to gain some more memory, and stop that error message.

By honeysuckle — On May 09, 2011

I keep getting a virtual memory error on my computer. Does that mean it is time for me to get a new computer? I really cannot afford one at this time.

Share
https://www.easytechjunkie.com/what-is-virtual-memory.htm
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.