Knowledge Base →5 min readUpdated: 2026-09-21

How to Move or Resize the pagefile.sys File in Windows 11

pagefile.sys is the hidden virtual memory file on drive C:, and Windows sizes it on its own — often several gigabytes. To shrink it or move it to another drive, open Virtual Memory settings through Win+R → sysdm.cpl → Advanced, turn off automatic management, pick a drive and a size, then reboot. The whole operation takes five minutes and, on machines with small SSDs, frees gigabytes on the system drive.

What pagefile.sys is and why it takes so much space

pagefile.sys is the paging file: an area on disk where the memory manager puts the least-used pages when the memory your apps request no longer fits into RAM. Without it, Windows cannot “promise” programs more memory than is physically installed, and heavy sessions end in an out-of-memory error. The file sits in the root of C:, hidden as a protected operating system file, so most people only meet it through a disk-space analyzer.

With automatic management Windows keeps the file small at boot and lets it grow under load — in theory up to about three times your RAM, which is why a 16 GB machine can suddenly show a 20-plus GB pagefile after a heavy session. It never shrinks back visibly until reboot, and the size is remembered per drive. That growth is what eats the space on small system drives.

  • One pagefile per drive is used — you can keep one on C: and one on D: at the same time
  • The file is locked by the system while Windows runs, so direct deletion is impossible
  • A crash dump after a blue screen needs a pagefile on C: — keep at least a small one there if you troubleshoot
  • The real demand for virtual memory shows in Task Manager → Performance → Memory, line “Committed”
  • Some games and programs refuse to start without a pagefile at all, or complain about memory

Resizing or moving the paging file, step by step

Press Win+R, type sysdm.cpl and hit Enter — System Properties opens directly, no clicking through Settings. Go to the Advanced tab → Performance → Settings → Advanced → Virtual memory → Change. First, uncheck the box at the top — “Automatically manage paging file size for all drives” — otherwise the fields below stay greyed out.

To resize in place: select C:, choose Custom size, type the initial and maximum size in MB and click Set. With 16 GB of RAM, 2048–4096 MB covers everyday use; if you would rather not do the math, pick System managed size instead. To move the file: select C: → No paging file → Set, then the other drive → System managed size → Set. Click OK three times, reboot, and the old pagefile.sys on C: is deleted at startup.

When it is worth changing — and when it is not

Three situations justify touching the paging file: a system SSD too small for a RAM-sized file, a fixed-size file you want on a second and faster drive, and freeing the last gigabytes before an upgrade install. Outside of those cases the system-managed default is well chosen, and fine-tuning brings no measurable speed gain. The pagefile only matters for speed when the disk is already thrashing — a symptom of not enough RAM, not of a wrongly sized file.

Never choose “No paging file” on every drive just to save space. Windows and a number of programs — older games, Adobe suites, anything that requests a large commit — expect virtual memory to exist, and without it you get random “out of memory” errors that look like bugs in the program. After changing the amount of RAM, check the settings once more: numbers you set a year ago rarely fit the machine you have now.

Questions and Answers

Is it safe to delete pagefile.sys in Windows 11?

No — the file is locked while Windows runs. The only supported way to remove it is Virtual Memory settings, set the drive to “No paging file” and reboot.

What size should the pagefile be on a PC with 16 GB of RAM?

For everyday use, 2–4 GB is enough, and “System managed size” is fine too. The old 1.5× RAM rule comes from an era when 2 GB of RAM counted as a lot.

Can I move pagefile.sys to another drive?

Yes, any internal drive works. Keep a small pagefile on C: as well if you want crash dumps after a blue screen — otherwise they will not be written.

Know what is included before you buy.

The one-time 30-minute trial covers core tools. PRO-labelled features stay locked until a paid license is activated.

Read next

All articles · FAQ

Write to us: [email protected]