What is pagefile.sys used for in windows?

In storage, a pagefile is a reserved portion of a hard disk that is used as an extension of random access memory (RAM) for data in RAM that hasn't been used recently. A pagefile can be read from the hard disk as one contiguous chunk of data and thus faster than re-reading data from many different original locations. Windows NT administrators or users can reset the system-provided default size value of the pagefile to meet their particular needs.

In other operating systems, the pagefile is called a swap file or a swap partition.

This was last updated in April 2005

Continue Reading About pagefile

  • Microsoft Network's Computing Central explains Pagefile Essentials , including how to size your pagefile.

Related Terms

barcode (or bar code)A barcode (sometimes seen as two words, bar code) is the small image of lines (bars) and spaces that is affixed to retail store ... See complete definitioncursorA cursor is the position indicator on a computer display screen where a user can enter text. See complete definitionthroughputThroughput is a measure of how many units of information a system can process in a given amount of time. See complete definition

Word of the Day

operational intelligence

Operational intelligence (OI) is an approach to data analysis that enables decisions and actions in business operations to be based on real-time data as it's generated or collected by companies.

Information is often cached so that visited website can be loaded quickly and videos and gifs can be viewed offline. However, if the cache contains a large, or very large amount of data, it can cause problems and adversely affect computer performance. Therefore, it makes sense to delete the cache from time to time.

How to clear the browser’s cache
While having a massive page file can be frustrating, what's more frustrating is running out of resources and dealing with poor system performance.  Back when disk space came at a premium, this was more of an issue.  With HDD's, SSD's, and NVME drives all coming down in price, this is less of a concern today than it once was.  If, however, you still find the need to set your page file settings manually, it may take a few tries before you find the best settings to fit your needs.

You may notice that there are a lot of files that ended with .sys, such as Hiberfil.sys. So if you want to get some information about other files ended with .sys or .exe, then you can visit the MiniTool website. And this post focuses on pagefile.sys.

Introduction to Pagefile.sys

To begin with, what is pagefile.sys? It is a file created and used by Windows to manage memory usage and it is located in the C:\ drive by default. You can only see the file unless you set show hidden items in Windows Explorer.

Tip: You may be interested in this post - Windows 10 Explorer Keeps Crashing? Here Are 10 Solutions.

What is pagefile.sys used for in windows?

The pagefile.sys file is a Windows page file, and it is also famous as the virtual memory or swap file. Normally, Windows stores files, programs, and other data in your RAM because it is quicker to read from RAM than it is to read from a hard drive.

More specifically, when you open Google Chrome, Google Chrome’s program files are read from your hard drive and placed into your RAM. Then your computer uses the copies in RAM instead of repeatedly reading the same files from your hard drive.

However, when your system runs out of physical memory or random access memory, then Windows moves some data from the RAM back to the hard drive and places it in a page file. This file is a form of virtual memory.

Although writing this data to the hard disk and reading it back later is much slower than using RAM, it is backup memory – the data is not stored on your hard disk so that your important data won’t lose and your programs won’t crash.

So what is pagefile.sys used for in Windows? It is the file where Windows keeps track of how your computer juggles a lot of demands for memory. If there are some data that you are not using, then Windows will try to move them to the page file.

Can You Delete Pagefile.sys?

You may ask yourself: “can I delete pagefile.sys?” The answer is yes, but it is better to have a page file than have no one. And you should know that deleting the page file may result in some bad things.

If programs start running out of all available memory, they will begin to crash instead of being swapped out of the RAM into the paging file. This can also trigger issues when running a program that needs a lot of memory, such as virtual machines. Some programs may even refuse to run.

What’s more, you can’t just delete the pagefile.sys file because it is being used by Windows. When you try to right-click the pagefile.sys file to choose Delete, then you will get a message saying that “permission denied”, “file in use” or something similar. So how to delete the pagefile.sys file? The answer is to set your Virtual memory to zero.

Follow the instructions below to do that, and you need to run Windows File Explorer as an administrator at first.

Step 1: Open Windows File Explorer and then right-click This PC to choose Properties.

Step 2: Click Advanced system settings and then go to the Advanced tab.

Step 3: Click Settings… under the Performance section and then go to the Advanced tab.

What is pagefile.sys used for in windows?

Step 4: Click Change… under the Virtual memory section. Then uncheck the box next to Automatically manage paging file size for all drives. Select Custom size: and then input 0 both into the box next to Initial size (MB) and Maximum size (MB).

What is pagefile.sys used for in windows?

Step 5: Click Set and OK to save changes, then reboot your computer to take effect.

After you set your Virtual memory to zero, Windows will not use the pagefile.sys file anymore, and then you can delete the file.

Bottom Line

All in all, this post gives you a brief introduction to the pagefile.sys file. So after reading this post, you should know that windows will use the file when your RAM is run out. In addition, it is not recommended to delete the file. And you should leave the Virtual memory settings, and pagefile.sys the way they are.

Is it safe to delete pagefile sys?

Pagefile. sys is an extremely important file when it comes to keeping your Windows computer running smoothly. It helps give your PC's RAM more breathing room when physical memory can no longer hold more data. You can delete it, but only do so when you know your computer's RAM has enough capacity to stand on its own.

Is paging file necessary?

A page file is required to ensure that the database cache can release memory if other services or applications request memory.

Should I disable pagefile?

This can also cause problems when running software that requires a large amount of memory, such as virtual machines. Some programs may even refuse to run. In summary, there's no good reason to disable the page file — you'll get some hard drive space back, but the potential system instability won't be worth it.