Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2016, 12:57
Kerlingen Kerlingen is offline
VIP
 
Join Date: Feb 2011
Posts: 324
Rept. Given: 0
Rept. Rcvd 276 Times in 98 Posts
Thanks Given: 0
Thanks Rcvd at 308 Times in 95 Posts
Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299
Mark memory page as invalid

Does anybody know a way to mark a physical page of memory as invalid or bad somehow on Windows x64?

One of my RAM modules sometimes has a single-bit error at the same fixed address (found by memtest86+). The memory page is located in higher RAM, so it will be unused right after a reboot, but eventually Windows will use it for programs (unexpected crashes) or caching (corrupted files). I want to make sure Windows never tries to store anything on that memory page.

I can't get a single RAM replacement module, I would need to buy 6 new modules. I would like to prevent that if there was an easier fix.
Reply With Quote
  #2  
Old 08-29-2016, 14:11
nulli nulli is offline
VIP
 
Join Date: Nov 2003
Posts: 172
Rept. Given: 41
Rept. Rcvd 22 Times in 12 Posts
Thanks Given: 53
Thanks Rcvd at 73 Times in 53 Posts
nulli Reputation: 22
You can mark memory as bad.

But first I would move the defected RAM module far away from Memory Bank 0 (first slot that's going to be used) and then tell Windows _not_ to use that part of the RAM module using bcdedit commands:
bcdedit /set badmemorylist xxx xx
bcdedit /set badmemoryaccess No

For more information see:
https://msdn.microsoft.com/en-us/library/windows/hardware/ff728891(v=vs.85).aspx
http://superuser.com/questions/420051/running-windows-with-defective-ram
http://www.passmark.com/forum/memtest86/5146-memtest86-results-assistance-required-please

Last edited by nulli; 08-29-2016 at 14:18.
Reply With Quote
The Following 4 Users Say Thank You to nulli For This Useful Post:
cachito (08-29-2016), chessgod101 (08-31-2016), niculaita (08-30-2016), tonyweb (08-31-2016)
  #3  
Old 08-29-2016, 15:46
Kerlingen Kerlingen is offline
VIP
 
Join Date: Feb 2011
Posts: 324
Rept. Given: 0
Rept. Rcvd 276 Times in 98 Posts
Thanks Given: 0
Thanks Rcvd at 308 Times in 95 Posts
Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299
I read the bcdedit documentation and hoped to find something there, but I only found truncating memory and burning memory settings. I hate it when something from Microsoft has useful features and they don't care about documenting them.

The corrupted RAM module is at bank 4. I could put it even further away, but I then I would need to run memtest again to find out the new location, so I'm sticking with this where I already know the bad memory address.

"bcdedit /set badmemorylist" will not work, the correct syntax would be "bcdedit /set {badmemory} badmemorylist".

So now I'm hoping to see no more corrupted files or random crashes in the future.
Reply With Quote
The Following 2 Users Say Thank You to Kerlingen For This Useful Post:
niculaita (08-30-2016), tonyweb (08-31-2016)
  #4  
Old 08-29-2016, 19:49
nulli nulli is offline
VIP
 
Join Date: Nov 2003
Posts: 172
Rept. Given: 41
Rept. Rcvd 22 Times in 12 Posts
Thanks Given: 53
Thanks Rcvd at 73 Times in 53 Posts
nulli Reputation: 22
Sorry, I haven't used that command before. I just did some quick googling.

Anyways, hopefully it works as expected.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access an invalid registry key? -=bb=- General Discussion 7 09-22-2009 07:11
How to?-How to mark a file at the OS level SOLAR General Discussion 7 05-30-2005 21:28
Softice: hwnd -> invalid window handle dreamershl General Discussion 2 04-19-2004 09:58
How to modify the mark of a compressor? eriC General Discussion 1 11-08-2002 05:21


All times are GMT +8. The time now is 22:11.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )