Notifications
Clear all

Wipe Ram

13 Posts
5 Users
0 Reactions
2,227 Views
(@avocadus)
New Member
Joined: 13 years ago
Posts: 4
Topic starter  

Do it have a software to wipe o fill the unused ram in windows?


   
Quote
Passmark
(@passmark)
Reputable Member
Joined: 14 years ago
Posts: 376
 

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.


   
ReplyQuote
(@avocadus)
New Member
Joined: 13 years ago
Posts: 4
Topic starter  

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.


   
ReplyQuote
jaclaz
(@jaclaz)
Illustrious Member
Joined: 18 years ago
Posts: 5133
 

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//icanhascheezburger.files.wordpress.com/2011/05/funny-pictures-cat-is-a-ninja.jpg

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//reboot.pro/topic/17935-wipe-ram/

jaclaz


   
ReplyQuote
Passmark
(@passmark)
Reputable Member
Joined: 14 years ago
Posts: 376
 

> 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


   
ReplyQuote
(@avocadus)
New Member
Joined: 13 years ago
Posts: 4
Topic starter  

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?


   
ReplyQuote
jaclaz
(@jaclaz)
Illustrious Member
Joined: 18 years ago
Posts: 5133
 

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


   
ReplyQuote
(@avocadus)
New Member
Joined: 13 years ago
Posts: 4
Topic starter  

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.


   
ReplyQuote
(@trewmte)
Noble Member
Joined: 19 years ago
Posts: 1877
 

> 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


   
ReplyQuote
Passmark
(@passmark)
Reputable Member
Joined: 14 years ago
Posts: 376
 

I am not aware of any problems.

Note that this isn't a undocumented hack.

It is a Microsoft documented setting.
http//technet.microsoft.com/en-us/library/cc757862(v=ws.10).aspx

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.


   
ReplyQuote
Page 1 / 2
Share: