×

注意!页面内容来自https://tecnobits.com/en/pagefile-sys-in-Windows/,本站不储存任何内容,为了更好的阅读体验进行在线解析,若有广告出现,请及时反馈。若您觉得侵犯了您的利益,请通知我们进行删除,然后访问 原网页

What is the pagefile.sys file and should you disable it in Windows 11?

Last update: 13/11/2025

  • Pagefile.sys is Windows virtual memory and provides stability when RAM is full.
  • With plenty of RAM you can reduce or disable pagingbut keep an eye on performance and app closures.
  • Adjusting size or cleaning on shutdown offers a balance between space and fluidity.
pagefile.sys

If you use Windows dailysooner or later you'll come across a file called pagefile.sys occupying a good portion of the C: drive. Although you can't see it at first glanceit's there for a reason: It serves as a backup when RAM runs out.In this article I explain in detail what it iswhen it's advisable to keep ithow to reduce its sizemove it or disable itand what happens to other files like hiberfil.sys.

Don't worry if you've never touched this setting before. Windows manages the paging file automatically And in most casesit's the safest option. Howeverif you're running low on disk space or notice that the system is sluggish when you open many programsadjusting pagefile.sys can make a differenceand along with other optimizations to make Windows run faster.

What is pagefile.sys and why does it exist?

Pagefile.sys is the Windows page filea block of virtual memory that the system uses as an "escape valve" when RAM becomes full. It functions as a complement to physical memoryWhen there is little free RAMWindows dumps data and parts of applications that do not need to be active at that moment into pagefile.sys.

Imagine you minimize a resource-intensive app and then immediately launch another that demands a lot of memory. In that caseWindows might move part of the minimized application to pagefile.sys to... Free up RAM quickly without closing anythingWhen you return to that appits data will be read from the page file and returned to RAM.

By defaultthe file is saved in the root of the drive where the system is located (usually C:\). Reading and writing to pagefile.sys is slower than doing so in RAM.And even more so if your drive is a traditional HDD. With an SSDthe penalty is less noticeablebut it still existsso ideally you shouldn't rely too heavily on paging.

pagefile.sys

How does it affect performance and what role do HDDs and SSDs play?

When Windows pulls from pagefile.sysdata access becomes slower for technical reasons: The disk (even an SSD) never achieves the latency of RAMWith an HDDthe difference is very noticeable; with an SSDthe performance drop is lessbut it's still there. Even soloading from pagefile.sys is faster than closing and reopening an entire app.

Some guides claim that with SSDs the page file "is no longer useful". That statement isat the very leastincomplete.Windows continues to benefit from paging for stability and compatibilityespecially with applications that rely on the system to have virtual memory available. Howeveryou can reduce paging if you have plenty of RAM.

<> .u61f525eba1a053358e9b1a4c0fffa8b0 { padding:0px; margin: 0; padding-top:1em!important; padding-bottom:1em!important; width:100%; display: block; font-weight:bold; background-color:#eaeaea; border:0!important; border-left:4px solid #34495E!important; text-decoration:none; } .u61f525eba1a053358e9b1a4c0fffa8b0:active.u61f525eba1a053358e9b1a4c0fffa8b0:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; text-decoration:none; } .u61f525eba1a053358e9b1a4c0fffa8b0 { transition: background-color 250ms; webkit-transition: background-color 250ms; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; } .u61f525eba1a053358e9b1a4c0fffa8b0 .ctaText { font-weight:bold; color:#464646; text-decoration:none; font-size: 16px; } .u61f525eba1a053358e9b1a4c0fffa8b0 .postTitle { color:#1ABC9C; text-decoration: underline!important; font-size: 16px; } .u61f525eba1a053358e9b1a4c0fffa8b0:hover .postTitle { text-decoration: underline!important; }
Exclusive content - Click Here  How can I search for a specific place in Google Earth?

Should I delete pagefile.sys?

It depends on your computer and how you use it. If you have plenty of RAM (16 GB or more for average useor 32 GB if you work with heavy loads)you can disable the page file and not notice anything in most scenarios. On devices with 8 GB or lessdisabling it may cause slowdowns or application closures if you reach the RAM limit.

Some sources recommend never removing itwhile others indicate that with sufficient memory you can do without it. The practical reality is that Modifying or even deactivating it is possible and reversibleBut be sensible: if your computer starts to run slowly or become unstablereactivate it or increase its size.

unit C:

How to view the size of pagefile.sys on drive C:

In order to inspect ityou must first make the protected system files visible. Follow these steps carefully and hide them again when finished:

  1. Open Explorer with Win + E and go to "This PC" > Drive C:. Access Folder Options.
  2. In Windows 11click on the three dots at the top and choose "Options"; in Windows 10go to "View" > "Options". It's the same panel in both versions.
  3. On the "View" tabcheck "Show hidden filesfoldersand drives" and uncheck "Hide protected operating system files." Accept the warning.
  4. Apply the changes and return to C:\: you will see pagefile.sys with its size. Remember to restore the concealment afterwards.

Disable or remove it from the advanced settings

If you decide to do without the fileyou can do so from the classic settings. Windows will remove it after restarting. and it will stop using it until you reactivate it:

  1. Press Win + Stype "sysdm.cpl" and press Enter to open System Properties. You can also go to Settings (Win + I) > System > About > Advanced system settings.
  2. On the "Advanced Options" tabwithin "Performance"click "Settings". Then go to the "Advanced Options" tab.
  3. In "Virtual memory"click "Change…"uncheck "Automatically manage paging file size for all drives". Select "No paging file" and press "Set".
  4. Accept the warningsapply themand restart your PC. Upon startupWindows will stop using pagefile.sys and will eliminate it if it existed.

Keep in mind that if you disable paging completely and reach the RAM limitThe system may stutter or even close applicationsIf that happensturn pagination back on or adjust its size.

Change the size of pagefile.sys (manual adjustment recommended)

A more balanced alternative is to set a custom size. This way you control the space it occupies and prevent it from growing without limit.:

  1. Repeat the access to "Virtual Memory" and uncheck the automatic management box. Choose "Custom Size".
  2. Indicate "Initial size (MB)" and "Maximum size (MB)". For example4096 and 4096 for a fixed 4 GB or 4096/8192 for 4-8 GB.
  3. Tap "Set"accept and restart to apply. Use values ​​appropriate to your RAM and your usage (with 8 GB of RAM4–8 GB of paging usually works well).
<> .u7a0eb13a29f7cc2db9281883a8f7e2c3 { padding:0px; margin: 0; padding-top:1em!important; padding-bottom:1em!important; width:100%; display: block; font-weight:bold; background-color:#eaeaea; border:0!important; border-left:4px solid #34495E!important; text-decoration:none; } .u7a0eb13a29f7cc2db9281883a8f7e2c3:active.u7a0eb13a29f7cc2db9281883a8f7e2c3:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; text-decoration:none; } .u7a0eb13a29f7cc2db9281883a8f7e2c3 { transition: background-color 250ms; webkit-transition: background-color 250ms; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; } .u7a0eb13a29f7cc2db9281883a8f7e2c3 .ctaText { font-weight:bold; color:#464646; text-decoration:none; font-size: 16px; } .u7a0eb13a29f7cc2db9281883a8f7e2c3 .postTitle { color:#1ABC9C; text-decoration: underline!important; font-size: 16px; } .u7a0eb13a29f7cc2db9281883a8f7e2c3:hover .postTitle { text-decoration: underline!important; }
Exclusive content - Click Here  Who invented the Java programming language?

Another guideline mentioned is to check the "Currently allocated" and decide from there. If Windows allocatesfor example10 GByou can try leaving it at a fixed 5 GB (5000 MB) and see how it goes. There is no magic number.The important thing is to test and verify stability.

Moving pagefile.sys to another drive: pros and cons

It is possible to move the paging file to another drive to free up space on C:. Do this only if the other unit is at least as fast (ideally another SSD):

  • In "Virtual memory"select C:check "No paging file" and press "Set". Nextchoose the new drive..
  • Select "System managed size" or define a "Custom size". Press "Set" and acceptRestart when finished.

If you move paging from an SSD to an HDDThe drop in performance can be considerable when using virtual memory. If you notice instability or slowness after moving itput it back on the system drive.

Delete it on every shutdown: Group Policy and Registry

Another option is not to disable pagingbut to ask Windows to clean the file on every shutdownThis frees up space before shutting down (or keeps it "clean" for safety)at the cost of the shutdown taking a little longer:

  • Group Policy (Windows Pro/Education/Enterprise): Open "gpedit.msc" (Win + R). Go to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options. Enable "Shutdown: delete virtual memory paging file".
  • Registry (all editions): Open "regedit" and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management. Edit "ClearPageFileAtShutDown" and set it to 1Restart to apply.

Remember that the Home edition does not include the Group Policy Editor. The Registry method works in all editions.But it's advisable to export a backup copy before touching anything.

privazer

Third-party apps: Remove pagefile.sys with PrivaZer

If you prefer an external toolPrivate It allows you to delete pagefile.sys using different criteria: after each cleaningonly on the next shutdown or on every shutdownIt is a free utility with a portable version.

It usually includes more system and program trace cleaning functionswhich can help you recover gigabytes and Protect your PC from advanced spying. The downside is that it's additional software. (not integrated into Windows) and requires you to run and configure it.

Frequently asked questions about pagefile.sys

  • What happens if I delete pagefile.sys on a computer with low RAM? If you disable paging on a PC with 4–8 GB of RAMyou'll likely experience stuttering when you fill up the memory. Apps may become slow or crash. With 16–32 GBthe impact is usually less significant unless you reach your RAM limit.
  • Can I move pagefile.sys to a USB drive or external hard drive? It's not recommended. External drives are usually much slower and can disconnectcausing errors and terrible performance if the system tries to use virtual memory there.
  • Is it a good idea to delete pagefile.sys and hiberfil.sys at the same time? It's possiblebut you need to understand the consequences: without pagefile.sys you'll be 100% dependent on RAMand without hiberfil.sys there will be no hibernation and Fast Startup may be disabled. Consider first whether you really need that space.
  • How do I know how much space pagefile.sys takes up? Enable "Hidden items" and show "Protected System Files" in File Explorer to see C:\pagefile.sys and its size. Right-click > Properties to see the exact size. Remember to hide it again afterward.
  • If I delete itwill Windows automatically recreate it? If you leave automatic management enabled or define a size in "Virtual memory"Windows will create and use pagefile.sys. If you choose "No paging file"it will not be recreated until you re-enable it.
<> .uc84d2a2dc79660c90a3efb93cf7c2bc6 { padding:0px; margin: 0; padding-top:1em!important; padding-bottom:1em!important; width:100%; display: block; font-weight:bold; background-color:#eaeaea; border:0!important; border-left:4px solid #34495E!important; text-decoration:none; } .uc84d2a2dc79660c90a3efb93cf7c2bc6:active.uc84d2a2dc79660c90a3efb93cf7c2bc6:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; text-decoration:none; } .uc84d2a2dc79660c90a3efb93cf7c2bc6 { transition: background-color 250ms; webkit-transition: background-color 250ms; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; } .uc84d2a2dc79660c90a3efb93cf7c2bc6 .ctaText { font-weight:bold; color:#464646; text-decoration:none; font-size: 16px; } .uc84d2a2dc79660c90a3efb93cf7c2bc6 .postTitle { color:#1ABC9C; text-decoration: underline!important; font-size: 16px; } .uc84d2a2dc79660c90a3efb93cf7c2bc6:hover .postTitle { text-decoration: underline!important; }
Exclusive content - Click Here  How to download the Play Store on PC

Quick method: Disableadjustor clean pagefile.sys (Windows 10/11)

In case you want to have it handyhere's the summarized diagram without missing any details: All paths are valid in both Windows 10 and Windows 11even if the interface changes.

  1. Open System Properties: Win + S > "sysdm.cpl" > Enteror Settings (Win + I) > System > About > Advanced system settings. Performance > Settings > Advanced options > Virtual memory.
  2. To disable completely: uncheck "Automatically manage…"check "No paging file" > "Set" > OK > Restart. Only recommended with plenty of RAM.
  3. Manual adjustment: "Custom size" with values ​​in MB (e.g.4096 initial and 8192 maximum). Balance between stability and space.
  4. Clean up on shutdown: Group Policy "Shutdown: Clear the virtual memory page file" or Registry "ClearPageFileAtShutDown=1". Shutdown is a bit slower.

The key is to adapt the configuration to your reality: how much RAM you havehow you use your PCand how much you value disk space versus stability. With a couple of controlled tests and restartsyou'll know your sweet spot..

Properly managing pagefile.sys and hiberfil.sys allows you to free up space when needed and keep the system running smoothly when memory is tight. If you're unsurelet Windows manage it and find space using built-in tools. (Cleaning up updatestemporary filesappsand games you don't use). This wayyou avoid touching system components thatwhile adjustableare there to keep everything running smoothly.

Reliable websites for downloading free virtual machines (and how to import them into VirtualBox/VMware)
Related article:
Reliable websites for downloading free virtual machines (and how to import them into VirtualBox/VMware)