Cannot deactivate page file

NHTG

Reputable
Apr 21, 2014
4
0
4,510
I have deactivated my page files in the virtual memory settings and restarted.
I run DXDiag/Task manager and it tells my that I have a 2GB page file.
How can I turn it off?
 
Solution
when you disable a page file you may still need to remove it from your system. They are a hidden system only file so you might have to remove the file attributes.

start cmd.exe as a admin (windows key +x then type A)
cd c:\
attrib *.sys will show the names of the hidden system files in the root of your drive c:
then you would use the command
attirb -H -S pagefile.sys
then
del pagefile.sys


it has been a while but I think it should still work if the file ins not in use (ie you have rebooted after you disabled that drivers pagefile)
Note: windows will always require a pagefile but if you to put one on disk it will set aside some of your RAM and make one inside your memory to page with. Without a pagefile on disk you will not...

Andrew Buck

Honorable


I don't think you really can/should disable the pagefile. What size RAM?
 

wavetrex

Distinguished
Jul 6, 2006
254
0
18,810
First you need to set "no paging file" on all drives that you have.
Second, you need to have at least 8GB of ram for Windows 7/8 x64 or windows will allocate something anyway...
Why would you disable the page file in the first place?
 
when you disable a page file you may still need to remove it from your system. They are a hidden system only file so you might have to remove the file attributes.

start cmd.exe as a admin (windows key +x then type A)
cd c:\
attrib *.sys will show the names of the hidden system files in the root of your drive c:
then you would use the command
attirb -H -S pagefile.sys
then
del pagefile.sys


it has been a while but I think it should still work if the file ins not in use (ie you have rebooted after you disabled that drivers pagefile)
Note: windows will always require a pagefile but if you to put one on disk it will set aside some of your RAM and make one inside your memory to page with. Without a pagefile on disk you will not get memory dump file and portions of log files might be lost if your system crashes. not a big deal if you never actually use them to figure out various problems


 
Solution