Understanding Virtual Memory

by Barry Dysert
(last updated October 19, 2015)

3

Virtual memory is the name given to the contiguous address range used by a computer program. For a program to run, its instructions must reside in physical memory. However, when there are several programs running simultaneously or when there's not enough physical memory to encompass the amount of memory needed by a program, the computer uses virtual memory to fulfill the program's needs.

For example, if two programs are running at the same time, each program treats memory as if it's one large contiguous block beginning at address zero and extending as far as necessary. Since each program can't access the memory at physical address zero simultaneously, the computer creates blocks (address ranges) of virtual memory that make it seem to each program that it has all of the computer's memory to itself.

Virtual memory is also used when programs need more memory than physically exists in the computer. The computer uses a process called paging to allow programs to access more memory than physically exists. Through paging, the computer keeps track of what blocks of physical memory are currently available, writes the contents of those blocks to disk, and then reads in from disk the previously written data that the currently executing program needs. By using the disk as a temporary storage medium, many different programs can be running at the same time and accessing large portions of memory without ever having to be concerned with whether the data is physically in memory at the time or needs to be paged in from disk.

 This tip (12623) applies to Windows 7 and 8.

Author Bio

Barry Dysert

Barry has been a computer professional for over 35 years, working in different positions such as technical team leader, project manager, and software developer. He is currently a software engineer with an emphasis on developing custom applications under Microsoft Windows. When not working with Windows or writing Tips, Barry is an amateur writer. His first non-fiction book is titled "A Chronological Commentary of Revelation." ...

MORE FROM BARRY

Understanding Remote Assistance

Sometimes you may need some computer help, or a friend may need help from you. By using Remote Assistance your computers ...

Discover More

Understanding the Start Menu Search Box

The Start Menu Search Box is a great addition to Windows. It can save you a great deal of time by putting frequently used ...

Discover More

Pin Items to File Explorer's Quick Access View

You can improve your efficiency at navigating the file system by using the Quick Access view. This tip shows you how to ...

Discover More
More WindowsTips

What is Bluetooth?

Bluetooth is a popular technology that frees you from dealing with wires and cables, and it makes you a bit more mobile. ...

Discover More

Using Flip 3D

Flip 3D is an Aero feature that allows you to cycle through your active windows in three dimensions. Because they are ...

Discover More

Restoring Your System from a Restore Point

Restore Points let you go "back in time" to a point before you made system changes that could prove harmful to your ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 2 + 2?

2015-10-19 09:58:18

Henry Noble

Concur with Barry regarding the move to Win10.

From Win8.1, the leap to Win10 is small, and Win10 brings many desirable enhancements. The primary concern is with drivers and old programs. Do some online research on your system's peripherals to confirm that Win10 drivers are available. Also search online for the name of any old programs you are using to see if there is discussion about moving them to Win10.

For those with stable Win7 systems, sit tight until next summer.

Memory is not as much as an issue as you might expect with such a complex program because Win10 adapts to the environment in which it is installed. For example, Win10 works well on my dinky 8" tablet with 2 Gb of RAM.


2015-10-19 06:41:24

Barry

I can see moving to 10 if you're on 8.1 now. From what I understand, 10 still retains the ridiculous start *screen* that 8.* has. I'm on 7 at home and plan to stay on it until it becomes unsupported. Imo, 7 is the best OS that Microsoft has ever sold.

Since this tip is on virtual memory, has anyone moved to 10 and realized that you need more memory than you did for the previous version you were using?


2015-10-19 06:33:15

Ashley

I'm advising my friends and relatives to hold off any move to Windows 10 until at least the significant update, expected in early November. I'm also saying that if they are really happy with their current operating system (especially Windows 7 users), consider delaying even further until the signs are that the majority of known bugs/problems have been sorted out, afterall, they could wait until late July 2016 to upgrade and still obtain Windows 10 free.


Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.