Virtual memory allows multiple programs to load in memory at the same time. Each application addresses memory starting at zero, but virtual memory takes control of the memory addressing and lets each application function as if it had unlimited memory.
Note that virtual "memory" and virtual "machine" are not the same. Virtual memory is used all the time, whereas a virtual machine is an optional approach for running applications (see virtual machine).
Virtual Memory Pages
The computer's real memory is broken up into smaller segments, called "pages," typically 4KB in size. When real memory fills up, pages not currently in use by open applications are written to a virtual memory "swap file" on the disk for temporary storage. When any swapped out page is required again, once again a page in real memory is written to the disk to make room, and the disk page is retrieved. Memory is the computer's workspace, and since there is often a hundred times more disk space than memory space, virtual memory dramatically increases the computer's capacity to do work. However, there is a penalty. When a user has too many open programs, there can be excessive amounts of page swapping, causing applications to slow down. In addition, switching between applications is no longer immediate (see thrashing).
Hardware Is Required
Virtual memory can be implemented in software only, but efficient operation requires specialized hardware circuits. All modern, general purpose CPUs have memory management units (MMUs) that support virtual memory. They provide "page tables" that are used to translate between the program's "virtual" addresses and the "real" addresses in memory and disk, which may change at any time. Although a program may initially load as a contiguous block of code, it can wind up in pages randomly scattered around real memory.
Virtual memory claims are sometimes made for specific applications that bring additional parts of the program in as needed; however, true virtual memory is built into the operating system and hardware and works with all applications. See Windows swap file.
Memory Is Extended to Disk
Virtual memory allows more programs to be opened simultaneously by using the hard disk as temporary storage of memory pages.
Page Out, Page In
When memory is full and the current program needs instructions that are not in memory, pages are swapped. In this example, program A needs a page from the disk, and a page from program C is swapped out to make room.
![]() | Reproduced with permission from Computer Desktop Encyclopedia. Copyright (c) 1981-2009 The Computer Language Company Inc. All rights reserved. |
Additional Resources
- Does virtualization equal cloud computing?
- I would say yesThere is no need to buy 'stand alone' servers any longer in functionality when you can put it in a Blade 'name your flavor' chassis.Virtualization with VMware/RHEL or some vendor is the best way to get it off bare-metal...Doing baremetal rebuilds is time consuming and it takes...
- Discussion threads 2009-11-25
- ImageJ 1.43l (Mac)
- ImageJ is a public domain Java image processing program inspired by NIH Image for the Macintosh. It runs, either as an online applet or as a downloadable application, on any computer with a Java 1.1 or later virtual machine. It can display, edit, analyze, process, save and print 8-bit, 16-bit...
- Software downloads 2009-11-24
- Is it time to go quad-core?
- Quad core, Chris?You have told us over and over that all you need is Google. You don't need a real OS, real apps, or any processing power to speak of. All you need is a browser, preferably Chrome. Why on Earth would you need a quad core...
- Discussion threads 2009-11-23
- MemoryInfo Lite for iPhone 1.0 (Mobile)
- MemoryInfo Lite for iPhone app shows how much memory is available and the types of memory on your iPhone or iPod Touch. It also shows your current battery level in percent. The iPhone and iPod Touch comes with 128MB of runtime memory while the iPhone 3GS comes with 256MB of...
- Software downloads 2009-11-19
- IceClean 3.3.2 (Mac)
- IceClean is a powerful Finder and System optimization tool using ONLY built-in Unix system tasks to help your System stay healthy and to keep it running smoothly. IceClean lets you execute the following tasks: System Maintenance Process & Infos Periodic Routine Scripts Verify Preferences .plist files Repair Permissions Update Prebindings...
- Software downloads 2009-11-19
- Process Hacker 1.7 (Windows)
- Process Hacker provides a customizable tree view with highlighting showing you the processes running on your computer. You can see detailed performance graphs. A complete list of services and full control over them (start, stop, pause, resume, and delete). A list of network connections. Provides a comprehensive information for all...
- Software downloads 2009-11-17
- HTC Droid Eris (Verizon Wireless)
- Editors' note: Portions of this review were taken from our review of the HTC Hero. The two devices share similar features. The HTC Droid Eris is the second Verizon Wireless' Google Android phone after the Motorola Droid. Where the Droid was flashy and high-end, the Droid Eris offers a simpler,...
- Product reviews 2009-11-06
- Is Nvidia planning to add X86 compatibility to its chipsets?
- I hope soNVIDIA with x86-64 technology would be Next Big ThingTM, although I'd rather see a new architecture replace the aging x86. 64-bit is just a tack-on feature set of x86. I'd rather see something in line with IA64 from NVIDIA to shake up Intel. I'm sure...
- Discussion threads 2009-11-05
- The iPhone is one of the best phones in the world, carriers with it are the problem
- far from perfect indeedIt's a great gadget...until it freezes and you have to wait several minutes while you reboot it. That is if you know how to reboot it, the first time is always accompanied with panic because you think the thing went dead. Don't blame the carriers,...
- Discussion threads 2009-11-04
- Internet performance management makes data center consolidation possible
- There are many more advantages to consolidation... Virtual switch technology... Virtual switch technology, is far faster than anything Ciscoor other hardware router vendors can push through your INTRAnet.... In the era of mashups... and multi database applications, you want internet connections that are at memory transfer speeds, not...
- Discussion threads 2009-11-02
- VirtualBox update fixes Windows 7 bugs
- Sun has updated its VirtualBox virtualization software, fixing bugs related to Windows 7 and Snow Leopard. Sun has updated its VirtualBox virtualization software, fixing bugs related to Windows 7 and Snow Leopard. Virtual Box 3.0.10, released on Thursday, includes a change in the way the software...
- News items 2009-11-02
- Xupport 3.6.0 (Mac)
- Xupport is a multipurpose system utility for Mac OS X. It provides many features to configure hidden Mac OS X and Unix options, to increase system security and performance, to maintain and backup Mac OS X, and to dig deeper into the world of Unix. Xupport 3 is fully compatible...
- Software downloads 2009-10-30
- Microsoft's Windows 7 challenge: Selling Live services (without being sued)
- What competitors?Other than iLife, who is competing with Live Essentials?These seem like little trivial programs to be fighting over. Besides the people complaining about bloat (Even though these programs don't take up much space), I don't think anyone would complain even if they were included in Windows to begin with.The...
- Discussion threads 2009-10-28
- Amazon launches relational database service: Think MySQL in the cloud
- Amazon on Tuesday launched a public beta of a service dubbed the Amazon Relational Database Service RDS. The main appeal: Allow customers to operate and scale database clusters while leaving pesky tasks like patching and administration to Amazon Web Services. Adam Selipsky, vice president of Amazon Web...
- Blog posts 2009-10-27
- VMware Workstation 7.0 (Windows)
- VMware Workstation is powerful virtualization software for software developers/testers and enterprise IT professionals that runs multiple operating systems simultaneously on a single PC. Users can run Windows, Linux, NetWare, or Solaris x86 in fully networked, portable virtual machines - no rebooting or hard drive partitioning required. VMware Workstation delivers excellent...
- Software downloads 2009-10-27
- Syntheway Virtual Sitar VSTi 1.0 (Windows)
- Syntheway Virtual Sitar is a VST instrument designed to emulate the Indian sitar. Available for Windows and Linux based VST/FST hosts. Features include: mastered sitar samples recorded with special equipment in a low noise environment. Full length sustain, no loops natural decay. Includes 18 predefined sounds. Optimized CPU and memory...
- Software downloads 2009-10-22
- B&N's Nook e-reader: Weirdly unrevolutionary
- In addition to this posting, please visit this clarifications posting to get the whole picture. It would be nice to say, as Matt Miller has, that the e-book and e-reader market was revolutionized today. It simply got more interesting. A careful reading of the $259 Nook's...
- Blog posts 2009-10-20
- Memory Management System 14.2 (Windows)
- Do I need MMS if I have a computer? If you have a computer running any amount of applications the answer is definitely. There is a misconception out there that usually sounds like this, if I have a lot of free memory then my computer will run faster. Memory Management...
- Software downloads 2009-10-20
- Tune Windows 7 for maximum speed and efficiency
- This sample chapter from Microsoft Windows 7 Unleashed explains how to monitor Windows 7 system performance and optimize startup, applications, the hard disk, and virtual memory. Title: Windows 7 Unleashed Author: Paul McFedries Chapter 6 "Tuning Windows 7's Performance" ...
- Book chapters 2009-10-20
- Clients: fat vs. thin, net vs. note
- Can I suggestNetbooks with Win 7. Just installed it on a useless Linux netbook and it works fine and only cost me A$399 (which now is almost the same as US ;-))For once try and rein in your hobby horse and let the students join the new millenium.On and...
- Discussion threads 2009-10-19
Neighboring Terms
Premier Vendor Content Whitepapers, webcasts & resources from our Power Center Sponsors
- New Online Dashboard for IT Leaders
-
Read about top issues IT decision-makers face every day, plus get cost-effective solutions to real-life IT problems.
- Learn more >>
- Save time with automated shipping solutions
-
The Business Essentials Guide provides you useful tools and templates to help grow your business and save you time with automated shipping solutions.
- Visit the UPS Business Essentials Guide
- Microsoft Dynamics CRM Online - Free Six-Month Trial for Eligible Organizations
-
Microsoft Dynamics CRM Online provides fast online access, simple contact management and better sales performance for a low monthly cost - the best value on the market today.

- Learn more about the free, six-month trial offer>>
SmartPlanet
- Thought-provoking progressive ideas on diverse topics that intersect with technology, business, and life, and matter to the world at large. Visit SmartPlanet
- More from IBM
- How to Drive Better Business Outcomes with Exceptional Web Experiences Download the eBook
- Driving Business Agility through SOA Connectivity & Integration Read the White Paper from IBM
- Linking Decisions and Information for Organizational Performance Read the Tom Davenport study








