At EasyTechJunkie, we're committed to delivering accurate, trustworthy information. Our expert-authored content is rigorously fact-checked and sourced from credible authorities. Discover how we uphold the highest standards in providing you with reliable knowledge.

Learn more...

What is a Pagefile?

R. Kayne
R. Kayne

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.

Pagefile refers to a portion of a hard drive used to augment Random Access Memory.
Pagefile refers to a portion of a hard drive used to augment Random Access Memory.

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.

Discussion Comments


What is another term for Page file?


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.


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.

Post your comments
Forgot password?
    • Pagefile refers to a portion of a hard drive used to augment Random Access Memory.
      By: merydolla
      Pagefile refers to a portion of a hard drive used to augment Random Access Memory.