Why is my pagefile.sys so huge? | PDQ (2024)

The size of your page file is determined by several contributing factors, including the total physical memory available, peak usage, crash dump requirements, and more. If you’ve got questions about your page file, we’ve got answers. So what is it? Why is it so big (queue the Michael Scott reference)? And can you delete it? Let's find out.

What is a page file?

The pagefile.sys file, also known as a page or paging file, is a default system file found on Windows operating systems, including Windows 10, Windows 11, and Windows Server. A page file is a way for Windows to virtually extend the available memory on a system.

What does a page file do?

Page files perform several different functions. First, they allow systems to move infrequently accessed modified pages from physical memory to the page file, increasing memory efficiency. Second, they're designed to support system crash dumps, allowing the OS to save information that helps you diagnose why your PC blue screened. Lastly, several applications require page files. For example, domain controllers, DFS replication servers, certificate servers, and ADAM/LDS servers all require page files.

Why is my pagefile.sys so big?

While some page files are relatively small, others can occupy a significant portion of your disk drive. My current page file is sitting at a whopping 15 GBs. So why are some page files so substantial? The answer is — it's complicated.

With so many different contributing factors, it's difficult to precisely calculate page file sizing. In fact, Microsoft even states that page file sizing is unique to each system and can't be generalized:

"Page file sizing depends on the system crash dump setting requirements and the peak usage or expected peak usage of the system commit charge. Both considerations are unique to each system, even for systems that are identical. This means that page file sizing is also unique to each system and cannot be generalized."

As a general rule, the page file grows depending on the amount of memory committed to the system and the frequency between system crash dumps. It can also mirror how much physical RAM your device has installed. If you have 32 GB of RAM, you could have a 32 GB page file.

Where is pagefile.sys located in Windows 10?

By default, page files are located on the root of your system drive. For most people, this is the C: drive. However, pagefile.sys is a hidden and protected system file, so you'll need to modify your File Explorer folder options to view your page file.

Here's how to display hidden files and protected operating systems files in File Explorer on Windows 10.

  1. Right-click on the Windows Start button, then click File Explorer.

    Why is my pagefile.sys so huge? | PDQ (1)
  2. Click This PC in the left navigation bar, then double-click Local Disk (C:). If your system drive is assigned to something other than C, click on the drive letter assigned to your system drive.

    Why is my pagefile.sys so huge? | PDQ (2)
  3. Click File > Change folder and search options.

    Why is my pagefile.sys so huge? | PDQ (3)
  4. Click the View tab.

  5. Select Show hidden files, folders, and drives, and uncheck Hide protected operating system files (Recommended). Click Yes when prompted by a warning about displaying protected system files.

    Why is my pagefile.sys so huge? | PDQ (4)
  6. Click OK to save and close the options window.

You should now see your pagefile.sys file in File Explorer. You can right-click on the page file and click Properties to view information about the file, including its file size.

Where is the pagefile.sys located in Windows 11?

The page file in Windows 11 is located on the root of your system drive, which for most people is their C: drive. As with Windows 10, you'll need to modify some File Explorer settings in Windows 11 to view the file, though the process has changed slightly in Windows 11.

Here's how to find your page file in Windows 11.

  1. Right-click on the Start button, then click File Explorer.

    Why is my pagefile.sys so huge? | PDQ (5)
  2. Click This PC, then double-click your Local Disk (C:) drive (or whatever your system drive letter is).

    Why is my pagefile.sys so huge? | PDQ (6)
  3. In the top toolbar, click the ellipsis button, then click Options.

    Why is my pagefile.sys so huge? | PDQ (7)
  4. Click the View tab.

  5. Select Show hidden files, folders, and drives, and uncheck Hide protected operating system files (Recommended). Click Yes when prompted by a warning about displaying protected system files.

    Why is my pagefile.sys so huge? | PDQ (8)
  6. Click OK to save and close the options window.

The page file at the root of your system drive should now be visible. Just be careful not to accidentally delete any critical system files while you have them visible. Definitely not speaking from experience.

Should you modify your page file size?

While it can be tempting to delete or modify your obnoxiously large page file, the current recommendation is to let Windows continue to manage this setting automatically. If your page file has ballooned in size, there is generally a reason for this behavior. Instead of limiting this behavior, try to understand why it's happening. Monitor your resource usage during your heavy workflows. Does your committed memory approach your committed limit?

Why is my pagefile.sys so huge? | PDQ (9)

It's important to remember that any application can be a resource hog. Even something as simple as opening way too many Chrome tabs can quickly drain your available system resources.

So when should you modify your page file settings? First, consider your other options. Clean up your files, transferring what you can to storage drives. Maybe delete your collection of Matlock episodes you downloaded from that P2P network. Also, consider upgrading your hard disk or SSD and converting those GBs to TBs. If you've exhausted your available options and are still set on shrinking your page file, go for it. Most users shouldn't run into an issue by just limiting their page file to a manageable size.

Ready to put that smaller page file to work?

Deploy it across your remote or on-prem environment in minutes.

Start a free trial

Modifying page file settings using advanced system settings

Okay, once you've committed to putting pagefile.sys on a diet, the actual process of modifying the page file settings is pretty simple. Here's how to modify your page file settings using advanced system settings in Windows 10 and Windows 11.

  1. In the Windows search field, enter view advanced system settings, then click on the View advanced system settings control panel item.

    Why is my pagefile.sys so huge? | PDQ (10)
  2. In the Performance section, click Settings.

    Why is my pagefile.sys so huge? | PDQ (11)
  3. Click the Advanced tab.

  4. In the Virtual memory section, click Change.

    Why is my pagefile.sys so huge? | PDQ (12)
  5. Uncheck Automatically manage paging file size for all drives.

  6. Select Custom size:

  7. Set your initial size and your maximum size. This setting varies depending on the needs of your system. Potentially set your initial size to 2048 MB and your maximum size to 4096 MB and see how your system runs. Try increasing these values if you encounter any errors about running out of memory or sluggish performance.

  8. Click OK when you are finished.

    Why is my pagefile.sys so huge? | PDQ (13)
  9. You'll receive a warning message informing you that changes won't take effect until you restart your computer.

After restarting your computer, your page file should reflect the settings you configured.

Modifying page file settings with PowerShell

If PowerShell is more your style, here's a script that will stop Windows from automatically managing the page file size. Remember to modify the $pagefile.InitialSize and $pagefile.MaximumSize to your specifications.

# Disable Automatically manage paging file size for all drives$computersys = Get-WmiObject Win32_ComputerSystem -EnableAllPrivileges;$computersys.AutomaticManagedPagefile = $False;$computersys.Put() | Out-Null# Set Initial size and Maximum size in MB's$pagefile = Get-WmiObject -Query "Select * From Win32_PageFileSetting Where Name like '%pagefile.sys'";$pagefile.InitialSize = 1024;$pagefile.MaximumSize = 2048;$pagefile.Put() | Out-Null

This PowerShell script can quickly modify your page file settings, which is especially helpful if you need to modify settings on multiple computers.

Looking for other PowerShell pro tips?

Here are three of our favorite PowerShell modules.

Deploying the page file script to multiple devices using PDQ Deploy

If you have PDQ Deploy, you can create a custom package in PDQ Deploy to push the page file PowerShell script to as many machines in your environment as needed. If you don't have PDQ Deploy, what are you waiting for? Head over to our free trial and test it out for yourself for 14 days.

Here's how to create a custom PowerShell package in PDQ Deploy to distribute the page file script.

  1. In PDQ Deploy, click New Package.

  2. Give the package a descriptive name.

  3. Click New Step > PowerShell.

    Why is my pagefile.sys so huge? | PDQ (14)
  4. Insert the PowerShell script. You can also save the script as a file and point to the file if you prefer.

  5. Click Save to save and close the package.

    Why is my pagefile.sys so huge? | PDQ (15)

To deploy your new package, follow these steps.

  1. Click on your page file PowerShell package.

  2. Click Deploy > Deploy Once.

    Why is my pagefile.sys so huge? | PDQ (16)
  3. Enter the computer(s) you'd like to deploy the package to, then click Add Computer.

  4. Click Deploy Now.

    Why is my pagefile.sys so huge? | PDQ (17)

Within minutes, you can deploy this script to hundreds of devices. Just make sure you thoroughly test your script before a mass deployment.

Deploying a PowerShell script using PDQ Connect

If most of your devices are remote, then you can use an agent-based solution, like PDQ Connect, to deploy your PowerShell scripts. If you haven't tried PDQ Connect yet, head over to our Connect sign-up page and try it out free for 14 days. Tell them Brock sent you. You won't get anything extra, but it's the thought that counts.

Here's how to deploy the page file PowerShell script using PDQ Connect.

  1. In PDQ Connect, click Packages, then click Create package.

    Why is my pagefile.sys so huge? | PDQ (18)
  2. Name the package, click the Add install step drop-down menu, then click Add PowerShell step.

    Why is my pagefile.sys so huge? | PDQ (19)
  3. Import the PowerShell file, or paste the PowerShell script into the scripting field, then click Save.

    Why is my pagefile.sys so huge? | PDQ (20)
  4. Locate and select the package you just created, and then click Deploy.

    Why is my pagefile.sys so huge? | PDQ (21)
  5. Enter the name of the devices or groups you want to deploy the package to, then click Deploy.

    Why is my pagefile.sys so huge? | PDQ (22)

Since PDQ Connect is an agent-based solution, you'll be able to deploy this script to all your devices, no matter where they're located. The only requirement is a stable internet connection.

Find a page file size that works for you

Excessively large page files can be frustrating, but running out of system resources and dealing with poor system performance can be even more irritating. While there's no one-size-fits-all solution for everyone, testing different page file settings can ensure you find what works best for your situation. If all else fails, large HDDs, SSDs, and even NVME drives are cheaper than ever. It might be time to consider expanding your storage.

Why is my pagefile.sys so huge? | PDQ (2024)

FAQs

How do I fix large pagefile sys? ›

In the Performance Options window, go to the Advanced tab and click on “Change…” under Virtual Memory. Uncheck “Automatically manage paging file size for all drives”. Select the system drive with the large pagefile. sys, choose “No paging file,” and then press Set.

Why is my pagefile 20 GB? ›

As a general rule, the page file grows depending on the amount of memory committed to the system and the frequency between system crash dumps. It can also mirror how much physical RAM your device has installed. If you have 32 GB of RAM, you could have a 32 GB page file.

How big should Pagefile sys be 16gb RAM? ›

The paging file is typically 1.25 GB on 8 GB systems, 2.5 GB on 16 GB systems and 5 GB on 32 GB systems. For systems with more RAM, you can make the paging file somewhat smaller.

How do I fix high page file usage? ›

If memory is paging, then you are using more RAM than is physically present. The options are to increase the physical memory available to above the amount being used, or reduce the applications running on the machine. Otherwise, your memory paging to the drives will slow down the machine enormously.

How do I clean up Pagefile sys? ›

Right click on pagefile. sys and choose 'Delete'. If your pagefile is particularly large, the system may have to delete it immediately without sending it to the Recycle Bin. Once the file has been removed, restart your PC.

How big is Pagefile sys supposed to be? ›

The Page File should be approximately 1.5 - 2 times the size of your total system memory (RAM). A computer with 4GB of RAM will need a Page File a minimum of 6GB (6144 MB) and a maximum of 8GB (8192MB).

Is disabling Pagefile bad? ›

Your options. The big problem with disabling your pagefile is that once you've exhausted the available RAM, your apps are going to start crashing, since there's no virtual memory for Windows to allocate—and worst case, your actual system will crash or become very unstable.

Do I need pagefile with 8GB RAM? ›

As a rule of thumb, the paging file should be a minimum of 1.5 times the size of your installed RAM, and a maximum of 3 times your RAM size. For example, if you have 8 GB RAM, your minumum would be 1024 x 8 x 1.5 = 12,288 MB, and your maximum would be 1024 x 8 x 3 = 24,576 MB.

Is Pagefile needed with 32GB RAM? ›

Anything over 32GB of ram doesn't need a page file at all. I ran 64GB without and used an 8GB ram drive for all the various temp files created during Software Installs and such but never had need for the page file.

How to reduce paging file size? ›

Windows 10
  1. Press the Windows key.
  2. Type “SystemPropertiesAdvanced”. ( ...
  3. Click on “Run as administrator.” ...
  4. Click on “Settings..” You'll see the performance options tab.
  5. Select the “Advanced” tab. ...
  6. Select “Change…”. ...
  7. Make sure the checkbox “Automatically managing paging file size for all drives” is not checked, as shown above.

Should I change my paging size? ›

Cause: A Windows best practice is to set the paging file size to equal to or greater than the total amount of available physical memory. Garbage collection is typically more effective at automatic recovery of heap memory when managed heap size approximates paging size.

Is a paging file necessary? ›

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

Why is Pagefile SYS taking up so much space? ›

Otherwise known as 'virtual memory', a huge pagefile. sys can indicate that it might be time to upgrade the system's RAM and that virtual memory is being relied on too heavily. Virtual memory is only used when RAM reaches its limits and only the least-used data that are typically held in RAM is sent there, usually.

How to change pagefile sys size? ›

Procedure
  1. Click Start > Run and then type sysdm. ...
  2. Click the Advanced tab.
  3. In the Virtual Memory section, click Change.
  4. If necessary, clear the Automatically manage page file size for all drives check box.
  5. Find the list of drives and select the drive that contains your paging file.
  6. Select Custom Size.

How do I fix this page uses too much memory? ›

You can also clear your cache and cookies in Google Chrome to reduce RAM usage:
  1. Click the three dots in the upper-right corner of the Chrome browser.
  2. Select “Settings” from the dropdown menu.
  3. Scroll down and click on “Privacy and security.”
  4. Click on “Clear browsing data.” ...
  5. In the popup window, select the “Advanced” tab.
Jun 10, 2024

Why is pagefile.sys taking up so much space? ›

Otherwise known as 'virtual memory', a huge pagefile. sys can indicate that it might be time to upgrade the system's RAM and that virtual memory is being relied on too heavily. Virtual memory is only used when RAM reaches its limits and only the least-used data that are typically held in RAM is sent there, usually.

Should I remove 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.

How do I clear Pagefile shutdown? ›

Clear pagefile on shutdown
  1. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.
  2. Select ClearPageFileAtShutdown from the list on the right.
  3. Right on it and select Modify .
  4. Change the value to 1 to enable.
  5. Reboot your computer.

Top Articles
Here Are The 7 Golden Rules For Drinking Champagne Correctly
Sustainable Finance: Definition • Einfach Erklärt | klimavest.de
Whas Golf Card
Cars & Trucks - By Owner near Kissimmee, FL - craigslist
Summit County Juvenile Court
Computer Repair Tryon North Carolina
Bhad Bhabie Shares Footage Of Her Child's Father Beating Her Up, Wants Him To 'Get Help'
Ecers-3 Cheat Sheet Free
The Wicked Lady | Rotten Tomatoes
Does Pappadeaux Pay Weekly
Florida (FL) Powerball - Winning Numbers & Results
Find The Eagle Hunter High To The East
REVIEW - Empire of Sin
Belly Dump Trailers For Sale On Craigslist
Gon Deer Forum
Overton Funeral Home Waterloo Iowa
Rachel Griffin Bikini
Grandview Outlet Westwood Ky
Charter Spectrum Store
Red Devil 9664D Snowblower Manual
Royal Cuts Kentlands
ZURU - XSHOT - Insanity Mad Mega Barrel - Speelgoedblaster - Met 72 pijltjes | bol
Invitation Homes plans to spend $1 billion buying houses in an already overheated market. Here's its presentation to investors setting out its playbook.
Poe Str Stacking
Euro Style Scrub Caps
Xsensual Portland
Baja Boats For Sale On Craigslist
Certain Red Dye Nyt Crossword
SN100C, An Australia Trademark of Nihon Superior Co., Ltd.. Application Number: 2480607 :: Trademark Elite Trademarks
Ontdek Pearson support voor digitaal testen en scoren
Beaufort 72 Hour
Ardie From Something Was Wrong Podcast
Waters Funeral Home Vandalia Obituaries
Buhl Park Summer Concert Series 2023 Schedule
Maths Open Ref
+18886727547
Mg Char Grill
Gwen Stacy Rule 4
Tra.mypatients Folio
B.k. Miller Chitterlings
Tmka-19829
KITCHENAID Tilt-Head Stand Mixer Set 4.8L (Blue) + Balmuda The Pot (White) 5KSM175PSEIC | 31.33% Off | Central Online
Nobodyhome.tv Reddit
Mohave County Jobs Craigslist
Boone County Sheriff 700 Report
Cnp Tx Venmo
60 Days From May 31
All Weapon Perks and Status Effects - Conan Exiles | Game...
A rough Sunday for some of the NFL's best teams in 2023 led to the three biggest upsets: Analysis
Grand Park Baseball Tournaments
Julies Freebies Instant Win
Acellus Grading Scale
Latest Posts
Article information

Author: Kerri Lueilwitz

Last Updated:

Views: 6066

Rating: 4.7 / 5 (47 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Kerri Lueilwitz

Birthday: 1992-10-31

Address: Suite 878 3699 Chantelle Roads, Colebury, NC 68599

Phone: +6111989609516

Job: Chief Farming Manager

Hobby: Mycology, Stone skipping, Dowsing, Whittling, Taxidermy, Sand art, Roller skating

Introduction: My name is Kerri Lueilwitz, I am a courageous, gentle, quaint, thankful, outstanding, brave, vast person who loves writing and wants to share my knowledge and understanding with you.