What's going on with my Pagefile? (2024)

First published on TECHNET on May 15, 2007

This is a follow-up toour Processes consuming high amounts of virtual memory post from January.

Pagefile issues are something we deal withfrequently on the Performance Team. We have had several cases in the past few months of customers reporting pagefile.sys files exceeding their custom size Maximum Size value. The most likely cause of the Pagefile growing beyond the configured setting is if the system's paging file requirements exceed the current setting and the virtual memory of the system is depleted. In that case an application pop-up will occur (Event ID 26) and you will be notified that the virtual memory is depleted and Windows is increasing the size of the Paging file:

“Windows - Virtual Memory Minimum Too Low : Your system is low on virtual memory. Windows is increasing the size of your virtual memory paging file. During this process, memory requests for some applications may be denied. For more information, see Help.”

Reasons for the depletion may vary, but can usually be attributed to a process or group of processes that are allocating large amounts of virtual memory. If you recall from our previous post on the /3GB switch each process gets up to 2gb of user-mode virtual memory by default (unless you’re using the /3GB switch). So, if each process is consuming all of its virtual memory and the combination of physical and Pagefile size isinsufficient to handle both virtual memory and kernel memory allocations, the system will need to increase the size of the Pagefile to compensate.

Ironically, the reports of pagefile growth reported recently are not caused by a process or processes consuming virtual memory. The symptoms we have seen come from servers that have large amounts of physical memory (more than 4GB, typically 16GB or more). Immediately following a reboot the paging file grows beyond the Maximum Size value specified in the Custom Size option for Virtual memory paging file settings. In some cases the pagefile.sys would grow to 10-15GBand consume all of the remaining free space of the system drive. In onecase, the server had 20GB of RAMinstalled, and despite the Pagefile size being statically set to 4,096MB the file grew to over 13GB. I suspect it might have kept growing - except that it ran out of free space on the drive!

When this occurs there are no event IDs written nor errors displayed complaining about Virtual Memory depletion. When looking at Task Manager – Virtual Memory for processes or the Virtual Memory values in Perfmon we would not see any processes consuming virtual memory or any other indications as to what would cause the pagefile growth.

So how do you resolve this issue? In the majority of cases we have seen lately, the culprit is actually outdated anti-virus software. Updating the anti-virus softwareincluding itsassociated filter drivers resolved the issue. To verify that anti-virus software is causing the problem you would need to disable the services and drivers associated with the anti-virus. If the problem no longer occurred following a reboot, then you would need to contact your anti-virus manufacturer to get the latest supported updates.

We will be posting in the future regarding more general concepts surrounding pagefile sizing and tuning ...

- Aurthur Anderson

What's going on with my Pagefile? (2024)

FAQs

What's going on with my Pagefile? ›

In Windows operating systems, pagefile. sys is what's known as a “page file” or “paging file.” It serves as an extension of your computer's physical memory or RAM (Random Access Memory). If you have too many programs open or you're running a particularly hefty software application, Windows can run out of physical RAM.

How do I resolve a pagefile issue? ›

Here's how to do it.
  1. Adjust the Size of Pagefile. sys. Go to “Adjust Appearance and Performance of Windows” by typing the same in your start menu. Click on Advanced to find the virtual memory options. ...
  2. Move Pagefile. sys to an alternate location. If the system drive is getting filed up by the pagefile.

What is using my page file? ›

Windows uses pagefiles to make more RAM available to applications that are used actively, rather than sitting idle. For example, a user might open a browser, conduct several searches, and then minimize the browser for an extended period.

Why does my Pagefile keep growing? ›

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.

Is it OK to clear Pagefile at shutdown? ›

sys. Because you never know what was stored there, it's a good idea to clear the page file at shutdown in Windows 10, 8, and 7. We don't recommend you do this with a computer that is shut down every day, but it's perfect for those who occasionally reboot or shut down.

How do you clean up Pagefile? ›

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.

Is it safe to delete Hiberfil sys? ›

Although hiberfil. sys is a hidden and protected system file, you can safely delete it if you don't want to use the power-saving options in Windows. That's because the hibernation file has no effect on the general functions of the operating system.

Is PageFile still being used? ›

The pagefile is used even when free RAM is available by design. Processes with less activity are paged away to make room for other memory claims. Consider Windows always first using all RAM.

What happens if you delete PageFile? ›

The PageFile is the space on your drive used for Virtual Memory, you cannot and should not try to delete that, if you do, you will corrupt Windows and Windows may not start again.

What PageFile size for 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.

Should I change my Pagefile? ›

We recommend that you either allow the system to manage the page file size or to set it at 150% of the size of the physical RAM. Click OK, and then restart the computer to apply the changes.

Should I turn off Pagefile with SSD? ›

In general, it is not harmful if you store page file in SSD. However, there are some exceptions – under the condition of extreme condition, page file even become SSD killer. We can't deny a fact that there is writing limitation on SSD.

Can Windows run without Pagefile? ›

People have tested this theory and found that, while Windows can run without a page file if you have a large amount of RAM, there's no performance benefit to disabling the page file.

How do I manually set Pagefile? ›

Click Settings under Performance. In the Performance Options dialog, click the Advanced tab, and under Virtual memory, click Change. In the Virtual Memory dialog box, select a drive to store the paging file. Set Initial size (MB) and Maximum size.

How do I fix memory allocation failure? ›

A memory allocation failure message means that the active controller is low on memory after allocating these resources and does not have enough remaining memory to control a stack member. You can correct this by reducing the number of VLANs or STP instances.

Top Articles
Latest Posts
Article information

Author: Delena Feil

Last Updated:

Views: 5684

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Delena Feil

Birthday: 1998-08-29

Address: 747 Lubowitz Run, Sidmouth, HI 90646-5543

Phone: +99513241752844

Job: Design Supervisor

Hobby: Digital arts, Lacemaking, Air sports, Running, Scouting, Shooting, Puzzles

Introduction: My name is Delena Feil, I am a clean, splendid, calm, fancy, jolly, bright, faithful person who loves writing and wants to share my knowledge and understanding with you.