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.
Software

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 a Pagefile?

By R. Kayne
Updated: May 17, 2024
Views: 19,535
Share

On some Microsoft™ Windows™ operating systems, a pagefile is the name given to a portion of the hard disk reserved to augment Random Access Memory (RAM). It acts as virtual RAM, or virtual memory, to improve access time for frequently used programs and data. All else being equal, the less RAM a system has, the larger the reserved portion is likely to be. If enough RAM is present, there may be no pagefile.

RAM is a quick-storage area designed to improve access time to frequently used programs, processes, and files. Retrieving data from RAM is faster than retrieving it from standard platter-style hard disks. As a computer system boots, it stores many routines into RAM so that the system can perform better. As the user opens programs, even more RAM is consumed. Firewalls, antivirus programs and other software that runs in the background also consumes RAM.

When RAM becomes full, the system turns to the hard drive for help. Using contiguous, empty space, the system designates a pagefile of a certain size. The portion must consist of contiguous space, and not just any empty space. The system can access information in contiguous space faster than if it’s spread out over drive platters.

The least accessed data located in RAM is automatically moved to the pagefile. As the user switches to other programs or files, this seamless process continues, using the area as a holding cell. Going back to a previous program will cause the system to swap contents in the pagefile for contents in RAM. In earlier Windows versions, it was known as a swapfile.

If the user has so many processes and programs running that they cannot all be run from RAM, the overflow is run from the pagefile itself. While faster than running it from random locations on the drive, this is noticeably slower than RAM access. Ideally, a system has so much RAM that a pagefile isn’t required, though some programs designed to work with one will create it.

When a computer shuts down, all data in RAM is lost. This is not true of the hard disk of course, which maintains information. Pagefile contents, while deleted at shutdown, can be retrieved later using software recovery tools. For this reason, some people configure their computers to wipe the area clean when they turn off the computer. Wiping does slow the shutdown process considerably, but is a good security measure for anyone concerned. In either case, a new pagefile is created as needed at the next boot.

Share
WiseGeek 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.

Editors' Picks

Discussion Comments
By anon321945 — On Feb 25, 2013

What is another term for Page file?

By anon28517 — On Mar 17, 2009

The pagefile is used by Windows and cannot be accessed to do a disk copy as long as you are booted into Windows. The only way to copy the C drive (or any drive that contains the operating system) is by doing it outside of Windows. Some programs made for Windows will reboot the computer for you, then hook into the backup routine before Windows starts. One such program is Acronis True Image, but it's not free. Another alternative it to boot from a floppy or CD into DOS and execute a copy command from there. You might also check out XML Backup, a free cloning and imagine program that works outside Windows.

By mikes1 — On Mar 15, 2009

Hi and Help. I'm trying to copy my C drive and a separate drive. The message "pagefile.sys is being used by another program shut it down first" comes up. All other programs are closed. Any ideas anyone please.

Share
https://www.wisegeek.net/what-is-a-pagefile.htm
Copy this link
WiseGeek, in your inbox

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

WiseGeek, in your inbox

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