Question: Even though I only have 4GB of RAM, I have a 12GB pagefile.sys. From what I’ve read about the topic, this is bigger than the x1.5 rule-of-thumb and it’s also taking a huge chunk of space on my hard drive. I tend to run a lot of applications and tabs withing web browsers, so the last time this happened, I closed everything down and restarted my computer. When I ran WinDirStat again later the pagefile was down to 3-4GB. Now my pagefile is up to 12GB again and closing programs/restarting is not working.

My first question is what actions cause pagefile.sys to grow so large in relation to the installed RAM (computer on for long amounts of time, too many programs running, too many browser tabs open)? Second, how can I get my pagefile.sys down to 6-7GB?

I’m running Windows 7 Home Premium SP1 with 4GB of RAM

Answer: You can manually limit the pagefile size by performing the following steps:

  • Click on the Start button.
  • Right click on Computer.
  • Select Properties
  • Click on Advanced system settings on the left.
  • Click on the Settings button under the Performance group.
  • Select the Advanced tab of the Performance Options window.
  • Click on the Change button.
  • Uncheck Automatically manage paging file size for all drives.
  • Select the C: drive in the list.
  • Check the Custom size radio button.
  • Enter the Initial and Maximum sizes you want to use. I would recommend 4096 MB for the Initial and 6144 MB for the Maximum.
  • Click OK on the Virtual Memory dialog.
  • Click OK on the Performance Options dialog.
  • Click OK on the System Properties dialog.