C++/VB - Can the kernel reserve memory at boot time ?
Asked By Ryu
31-Jan-10 12:40 PM
Hello,
I have a bad memory (from 589MB to 605MB according to memtest86+)
I'd like to know if the kernel can reserve this portion of memory; then it
will not be used anymore ?
Is it possible under Windows 7 ?
I Found that the Linux kernel have the parameter 'memmap' for this !
Unfortunately I cannot find the same thing for Windows :(
Any ideas to solve my memory corruption problem ?
Windows XP
(1)
MmMarkPhysicalMemoryAsGood
(1)
MmMarkPhysicalMemoryAsBad
(1)
Windows 7
(1)
Linux
(1)
Database
(1)
Report
(1)
WinDrvr
(1)
Alexander Grigoriev replied to Ryu
If some of the memory went sour, there is danger that more of it will. Just
replace the module, it is only
$50 or so.
Ryu replied to Alexander Grigoriev
Yes, but I'd like to find a software solution. The memory bank is a 1GB
DDR1; old and expansive now !
I am a bit surprised that the windows kernel has no solution to protect the
system from such problem (I have tryed the memory checking program from
Windows, but it just report problem and bring no solution)
With msconfig, it is possible to set the maximum use of memory, but not a
specific zone :(
I am wondering if the kernel has an advanced malloc function ?
The Sun, 31 Jan 2010 10:24:57 -0800, Alexander Grigoriev wrote??:
Alexander Grigoriev replied to Ryu
Windows kernel has no such option because there is no value in the option.
it is palliative treatment; your memory may fail on you in other places. Just
bite the bullet and replace the memory. Or just set maxmem.
See if your BIOS can exclude some memory. Windows gets memory map from BIOS.
Oh, and I just checked on eBay that you can get DDR1 1GB for $25 or about
that.
Don Burn replied to Alexander Grigoriev
Actually, it does have the option. Unfortunately, it is not documented.
There are calls MmMarkPhysicalMemoryAsBad and MmMarkPhysicalMemoryAsGood to
do this, which have been used for fault tolerant environments. I have never
seen any doc's that tell you how to use them, but they are in there, they
were even in the Windows XP DDK includes.
I agree with Alexander in this case the right thing to do is replace the
memory.
--
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4822 (20100131) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
Alexander Grigoriev replied to Don Burn
I suppose the OS could call them after getting ECC error notifications. In
any case, the time that OP would spend to make a driver that would call that
costs and takes more than just buying a replacement module.
Ryu replied to Alexander Grigoriev
Thanks for all the remarks !
Seems I have no choice to replace it !
Too bad, I solved the problem for the Linux OS (memmap=17M$589M), but not
for Windows...
The Sun, 31 Jan 2010 15:28:32 -0800, Alexander Grigoriev wrote??:
script for windows 7 doesn't work C++ / VB Hi, In a Windows 2003 AD, we use a script to map network drives and printers, and also to disable windows firewall in our windows XP clients. Now we had started to use windows 7 in our clients, and problems came with that script. I tryed to find out which
Slow text IO on 32 bit Windows 7 C++ / VB We have a customer reporting that our product draws text slowly on Windows 7. Upon further investigation, it appears as if 32 bit Windows 7 itself draws text slowly. I wrote a test program that uses printf to write a 5000 times and it seems to run 2 to 9 times slower on 32 bit Windows 7 than on 64 bit Windows XP. (I am testing those systems using Vmware running on
C++ / VB Hello, I have a text file called OS.txt that looks like this: Windows 2000 Professional 5.0 (2195) Windows 2000 Server 5.0 (2195) Windows 7 Professional 6.1 (7600) Windows 7 Professional 6.1 (7600) Windows 7 Professional 6.1 (7600) Windows 7 Professional 6.1 (7600) Windows 7 Ultimate 6.1
it was design purely for WIN32 and never had to worry about the version of windows users had. That seem to change now. So I guess, the deeper questions and answers WPF over MFC? - - HLS VC MFC Discussions SQL Server (1) Visual Studio (1) Silverlight (1) Windows 7 (1) Office (1) Linux (1) Adobe (1) Perl (1) I am using the RC, and at the moment, what in VS2010. VS2010 has the VC6-style ClassWizard, a welcome-back addition. It also has Windows 7-oriented enhancements to MFC. And an MFC ribbon designer (for the ribbon that debuted in machine to run it. Build times are pretty quick. MFC is a GUI framework, requiring Windows. WPF is a GUI framework requiring .NET. WinForms is another GUI framework requiring .NET. WPF addition, WPF is a superset of Silverlight, which is how you program the recently announced Windows Phone (which replaces Windows Mobile). So for career longevity, learning WPF / Silverlight is inevitable. Now
bottleneck is memory bandwidth rather than CPU cycles. Is this analysis correct? VC MFC Discussions Windows XP (1) PowerPoint (1) Windows 7 (1) Vista (1) XP (1) CMemoryMapFile (1) MapViewOfFile (1) GlobalMemoryStatus (1) Geez, and here I was hoping you would for him. I have a version where I am exploring NUMA that will leverage 2003+ Windows technology. I am going to pencil in getting a test computer with a Intel XEON at least understand this his old memory usage paradigm for processes does not apply under Windows. The only reason I can suspect for his ignorance is that he is not a programmer or at the very least, very primitive nature of programming knowledge. A real Windows programmer would under this this basic principles or at least explore what experts are saying