Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home » Windows

What is Pagefile.sys? Do You Need It?

Deep ShresthaBy Deep ShresthaJune 1, 2023
pagefile.sys

When your system runs out of physical memory, or total available RAM, it cannot perform new tasks unless you free up the memory. This is where the concept of paging and virtual memory comes into play.

Virtual memory acts as an extension of RAM if it runs out of memory. The system uses storage space from the storage device, which acts as a temporary storage for pages of memory from RAM. This process is called paging, and the pages of the virtual address are stored in a file called a Pagefile.

Now let’s further discuss pagefile.sys file and how it works.

Table of Contents

  • Understanding Pagefile.sys
  • Do I Need pagefile.sys?
  • Ideal Pagefile Size
  • Set Custom Pagefile Size
  • Can I Delete Pagefile?

Understanding Pagefile.sys

pagefile.sys file in c drive

Pagefile.sys is a hidden file located on your C drive that reserves a certain amount of storage.

When the system runs out of physical memory, it transfers the least used pages of memory from RAM to pagefile.sys file on your local storage. By doing so, the system frees up physical memory and performs extra tasks without running out of memory.

If the CPU requires data saved in pagefile.sys, the system loads this data back to RAM for processing. However, this takes longer compared to fetching data directly from RAM. So, the performance will decrease when the system uses virtual memory compared to the actual physical memory.

Furthermore, if the system is constantly accessing the page file, you will see the disk usage spike up, and the disk LED will start to flicker. If you are not performing anything on the disk but the disk usage is constantly high, it’s an indication that you might need to upgrade your RAM

Do I Need pagefile.sys?

pagefile on windows do i need it

A system with 8GB or lower RAM may be enough for casual usage but might not be enough for photo/video editing or light gaming sessions. If your system constantly freezes due to the high RAM usage, you might require a page file to increase your system performance.

On the other hand, systems with 16 GB or higher RAM may not face low memory problems compared to systems with lower RAM. So disabling pagefile.sys (or virtual memory) will not be much of an issue as long as the system does not reach the memory limit.

However, if you want to be on the safe side, you can let the OS manage the paging file size for all drives. The size of the pagefile.sys entirely depends on the virtual memory settings.

Furthermore, pagefile.sys also contains Memory.dmp or crash dump file, which you can use to diagnose the error if the system crashes. The system cannot create the dump file if you disable pagefile.sys.

Ideal Pagefile Size

ideal pagefile size

Depending on your system’s storage and physical memory, the minimum value should be 1.5 times the memory of installed RAM, and the maximum value should be 4 times the RAM memory. We recommend that you try different values within this limit.

Here are a few things that you need to consider when setting a pagefile size.

  • Commit Limit: Commit limit is the total memory (physical and virtual) available. If the system has low RAM capacity, we recommend increasing the commit limit by increasing the page file size.
  • Memory Dumps: Crash dump requires a page file of the size that’s equal to physical memory + 1MB. Similarly, kernel dumps require about one-third size of installed physical memory.

Set Custom Pagefile Size

The size of your pagefile.sys completely depends on the virtual memory settings and total physical memory available in your system.

If your pagefile.sys is taking up a lot of storage, you can change virtual memory properties to decrease the amount of virtual memory.

  1. Press Windows + R key.
  2. Type sysdm.cpl to open System Properties.
  3. Go to the Advanced tab.
  4. Click on Settings under Performance.
    system properties advance settings
  5. Click on the Advanced tab. Here, you can see the total pagefile size or allocated virtual memory.
    pagefile size
  6. Click on Change to set a custom page file size.
  7. Select a drive in which you want to manage the page file.
  8. Check the Custom size option. Here, you can set the maximum and minimum size for pagefile.sys.
    set page file custom size

Can I Delete Pagefile?

You cannot delete pagefile.sys file as it is a system file, and when attempting to delete it, you will get a dialog box that says File in Use.

However, you can disable virtual memory. By doing this, the OS automatically releases the reserved storage and removes the pagefile.sys file from the C drive.

  1. Open System Properties.
  2. Go to the Advanced Tab.
  3. Under Performance, click on Settings.
    system properties advance settings
  4. Again in the Advanced tab click on Change under Virtual memory.
  5. Uncheck Automatically manage paging file size for all drives.
  6. Check the No paging file and click on Set.
    disable page file size system properties
  7. Click on Yes if it asks for confirmation.
  8. Click on OK.
  9. Restart your PC to apply changes.
  10. Now, open the C drive to check if the pagefile.sys file exists.

We do not recommend removing pagefile.sys on a system with low physical memory. It may result in system instability and performance issues.

If you do not want to delete it, you can move it to another drive to free up space from the root drive. To move pagefile.sys to another drive.

  1. Open System Properties and go to the Advanced tab.
  2. Click on Setting under Performance.
  3. Click on Advanced tab and select Change.
    check page file size pagefile sys
  4. Uncheck Automatically manage paging file size for all drives.
  5. Click on C drive.
  6. Check No Paging file and click on Set.
    disable page file size system properties
  7. Now, click on the volume in which you want to set pagefile.sys.
  8. Check System managed size and click on Set.
    change page file drive pagefile sys
  9. Click OK and then Apply.
  10. Restart your PC.
Question
Deep Shrestha
  • Twitter
  • LinkedIn

Deep Shrestha works as a computer hardware writer at TechNewsToday with several hardware and programming certifications. Although he has been writing technical content for more than a year, his interest in hardware components started at a very young age ever since he heard about PC building. Pursuing his passion, he has assembled several desktop computers. Besides building desktop PCs, Deep also has hands-on experience fixing software and hardware issues on laptops and desktop computers. Using all this knowledge and skills about computer hardware, he's on a quest to make content that's easy to read and understand for everyone. You can contact him at deep@technewstoday.com

Related Posts

how to download and use rufus

How to Download and Use Rufus

September 28, 2023
how to turn off hardware acceleration

How to Turn Off Hardware Acceleration

September 27, 2023
what happens if you turn off your computer during an update

What Happens if You Turn Off Your Computer During an Update?

September 18, 2023
How to Disable Integrated Graphics

How to Disable Integrated Graphics?

September 16, 2023
System Restore Stuck

How To Fix Windows Stuck on System Restore

September 16, 2023
startup-repair-couldn't-repair-your-pc

How To Fix “Startup Repair Couldn’t Repair Your PC”

September 13, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
motherboard form factors

Motherboard Types: ATX, Micro ATX, and Mini ITX Explained

September 28, 2023
how to download and use rufus

How to Download and Use Rufus

September 28, 2023
how to turn off hardware acceleration

How to Turn Off Hardware Acceleration

September 27, 2023
You may also like
printer-not-printing

How to Fix a Printer That’s Not Printing

September 26, 2023
Share Location With Friends and Family

Share Location With Friends and Family (iPhone and Android)

September 18, 2023
how-to-print-without-a-printer

How to Print Without a Printer

September 18, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.