DEV Community

Izanagi
Izanagi

Posted on

Pagefile configuration for gaming: size, location, fixed vs dynamic

The pagefile is Windows' overflow space on disk — when RAM fills up, data gets written here. For gaming, pagefile configuration affects both performance and stability.

Dynamic vs fixed size

By default Windows manages the pagefile size dynamically. It expands and shrinks as needed. The problem: expanding the pagefile causes disk I/O at the worst time — when RAM is under pressure, which is when your game is most demanding.

Fixed size eliminates the expansion overhead:

  1. System Properties → Advanced → Performance → Advanced → Virtual Memory
  2. Uncheck "Automatically manage"
  3. Select "Custom size"
  4. Set Initial and Maximum to the same value

What size

16GB RAM: set pagefile to 8-16GB on a fast SSD
32GB RAM: 4-8GB is usually sufficient
64GB+: 2-4GB, mainly for crash dump support

Location

Pagefile on your fastest drive. If you have an NVMe and an HDD, pagefile goes on NVMe. Access latency matters when games start hitting it.

Games that need pagefile

Some games (especially open world titles like GTA V, RDR2, large modded Skyrim) allocate more virtual memory than physical RAM. Without a pagefile they crash. Even with 32GB RAM, keeping a pagefile prevents these crashes.

IzanagiOP's Aggressive Optimizations configures a fixed 8-16GB pagefile on your system drive. https://terweb.lt/

Top comments (0)