<?xml version="1.0" encoding="UTF-8"?>
<trick>
  <category-id type="integer">4</category-id>
  <comments type="integer">#&lt;Comment:0x2ac500fdd2f8&gt;#&lt;Comment:0x2ac500fdc650&gt;#&lt;Comment:0x2ac500fdc4e8&gt;</comments>
  <content>&lt;p&gt;This trick is based upon the work of Rick van Rein (&lt;a href=&quot;http://rick.vanrein.org/linux/badram/index.html&quot;&gt;Rick&amp;#8217;s Homepage&lt;/a&gt; )an many others. They developed a patch which allows you to mark bad ram pages. As I am curious I did&amp;#8217;nt want to wait for a new version of the patch, fitting the 2.6.25 kernel. So I modified the patch to work with the current kernel.&lt;/p&gt;


&lt;h1&gt;Prerequisites&lt;/h1&gt;




	&lt;p&gt;Memtest86+ (to find out which pages are bad)&lt;/p&gt;


	&lt;p&gt;Kernel sources for the 2.6.25 kernel (i.e. at kernel.org or your distri)&lt;/p&gt;


	&lt;p&gt;The patch attached to that trick&lt;/p&gt;


&lt;h1&gt;What to do&lt;/h1&gt;




Start your machine and run memtest with the BadRam error reporting option.
This may result in an output like  
&lt;pre&gt;
&lt;code&gt;
  badram=0x09ada0b8, 0xfffffffc
&lt;/code&gt;
&lt;/pre&gt;
This option can directly appended to your boot entry in /boot/grub/menu.lst

Get the patch an install it via
&lt;pre&gt;
&lt;code&gt;
  patch -p1 &amp;lt; BadRam-2.6.25.1.patch 
&lt;/code&gt;
&lt;/pre&gt;
in your kernel source directory. Compile your patched kernel an reboot it with the badram option appended. Voila no more crashes caused by allocation of faulty ram&amp;#8230;
You may want to look up 
&lt;pre&gt;
&lt;code&gt;
dmesg|grep Memory
&lt;/code&gt;
&lt;/pre&gt;
to see which pages are marked bad.</content>
  <content-bbcode nil="true"></content-bbcode>
  <content-format>Textile</content-format>
  <content-html nil="true"></content-html>
  <content-textile>This trick is based upon the work of Rick van Rein (&quot;Rick's Homepage&quot;:http://rick.vanrein.org/linux/badram/index.html )an many others. They developed a patch which allows you to mark bad ram pages. As I am curious I did'nt want to wait for a new version of the patch, fitting the 2.6.25 kernel. So I modified the patch to work with the current kernel.

#Prerequisites

Memtest86+ (to find out which pages are bad)

Kernel sources for the 2.6.25 kernel (i.e. at kernel.org or your distri)

The patch attached to that trick

#What to do

Start your machine and run memtest with the BadRam error reporting option.
This may result in an output like  
&lt;pre&gt;
&lt;code&gt;
  badram=0x09ada0b8, 0xfffffffc
&lt;/code&gt;
&lt;/pre&gt;
This option can directly appended to your boot entry in /boot/grub/menu.lst

Get the patch an install it via
&lt;pre&gt;
&lt;code&gt;
  patch -p1 &lt; BadRam-2.6.25.1.patch 
&lt;/code&gt;
&lt;/pre&gt;
in your kernel source directory. Compile your patched kernel an reboot it with the badram option appended. Voila no more crashes caused by allocation of faulty ram...
You may want to look up 
&lt;pre&gt;
&lt;code&gt;
dmesg|grep Memory
&lt;/code&gt;
&lt;/pre&gt;
to see which pages are marked bad.</content-textile>
  <created-at type="datetime">2008-04-29T10:12:12+02:00</created-at>
  <creator-id type="integer">22</creator-id>
  <deleted-at type="datetime" nil="true"></deleted-at>
  <file>/var/rails/howflow/public/trick/file/106/BadRAM-2.6.25.1.patch.txt</file>
  <id type="integer">106</id>
  <lang-id type="integer" nil="true"></lang-id>
  <locale>en</locale>
  <nreports type="integer">0</nreports>
  <nvotes type="integer">7</nvotes>
  <permalink>avoid_allocation_of_bad_ram_blocks</permalink>
  <published-at type="datetime">2008-04-29T08:28:32+02:00</published-at>
  <state>published</state>
  <summary>Recently I had problems with a bad ram module. This trick allows you to mark blocks as bad, so they are never used and you dont't have to deposit your memory in the trash, just because a few kb are faulty.</summary>
  <title>Avoid allocation of bad ram blocks</title>
  <updated-at type="datetime">2008-05-23T18:05:26+02:00</updated-at>
  <updater-id type="integer">37</updater-id>
  <url nil="true"></url>
  <url-code nil="true"></url-code>
</trick>
