Do it have a software to wipe o fill the unused ram in windows?
Not sure about a software solution, but there is a very effective hardware solution.
It is the Power button.
Also Windows automatically zeros free memory pages in the background. This is done for security reasons, so that one process doesn't get given data from another process when additional RAM is requested.
Goggle "zero-page thread" and "Demand Zero faults" for details.
I tryed to load a file in notepad.exe, then close it.
When i inspect hiberfil.sys i see the text again into.
The "zero-page thread" not works when hibernate?
Do it is possible to launch "zero-page thread" via c++ code?
ty.
It is the Power button.
AND wait 35/40 seconds attending the machine after having switched it off , to prevent a ninja 😯 hacker to quickly disassemble the machine and freeze your RAM sticks wink .
http//
I tryed to load a file in notepad.exe, then close it.
When i inspect hiberfil.sys i see the text again into.
Yep, but that would be part of "Windows used memory" and not part of "unused" one.
A similar recent thread
http//
jaclaz
> When i inspect hiberfil.sys
You asked about RAM. The hiberfil.sys file is a file on the disk & not RAM. Although like many files on the hard disk it contains content that was in RAM at some point.
If your real question is how to avoid data in the hiberfil.sys, then you can turn off hibernation.
You might also want to zero the page file via the registry change.
[HKEY_LOCAL_MACHINESystemCurrentControlSetControl Session ManagerMemory Management] "ClearPageFileAtShutdown"=dword00000001
Disable hyberation, clear page file, power off pc… I Know!
But i would use hyberation and reset to zero unused memory on the fly when I want.
Do it is not possible?
Disable hyberation, clear page file, power off pc… I Know!
But i would use hyberation and reset to zero unused memory on the fly when I want.
Do it is not possible?
Please define "unused memory" (whilst a Windows NT based OS is running).
jaclaz
memory that is no longer used by any process, which is available to be allocated to other processes, but that still has not been resetted and contains the old values.
> When i inspect hiberfil.sys
You asked about RAM. The hiberfil.sys file is a file on the disk & not RAM. Although like many files on the hard disk it contains content that was in RAM at some point.
If your real question is how to avoid data in the hiberfil.sys, then you can turn off hibernation.
You might also want to zero the page file via the registry change.
[HKEY_LOCAL_MACHINESystemCurrentControlSetControl Session ManagerMemory Management] "ClearPageFileAtShutdown"=dword00000001
Passmark, just to open up the discussion, have you found (and I am of course referring to your expertise), in your experience any system problems that occur following setting of "dword00000001"?
Thnaks Greg
I am not aware of any problems.
Note that this isn't a undocumented hack.
It is a Microsoft documented setting.
http//
That article however makes me wonder if it only applies to Windows Server OS. I haven't tested this. It does slow down shut down times however if you have a large paging file.