I already moved the "pagefile.sys" file from drive "C:" to drive "E:" a long time ago. But today, after a Windows 10 BSOD crash, the "pagefile.sys" file re-appeared on the "C:" drive with a huge size (16GB) - 2X the RAM.
I have tried many ways to delete it from the C: drive again or shrink its size down, but with no success.
Also, I did not find the HKLM\SYSTEM\CurrentControlSet\Control\CrashControl\LastCrashTime key in the registry to delete, as suggested elsewhere.
1 Answer
It is possible for programs to ask the OS for a large amount of memory. The OS will back up that request by using the page file (I assume only if it can: a request for 1 PB might be unfulfillable without your credit card details).
If some (possibly dodgy) program asks for 16 GB, the OS will have to add 16 GB to the size of the page file.
From your question, it looks like there is some program run at the startup of Windows that is requesting lots of memory, and your comment "I have found a startup program caused this problem." confirms that.
To solve the problem, do not run that program.
1