Chinese translated version of Documentation/bad_memory
If you have any comment or update to the content, please contact the
original document maintainer directly. However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help. Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.
Chinese maintainer: 819153113@qq.com
---------------------------------------------------------------------
Documentation/bad_memory 的中文翻译
如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。
中文版维护者: 金丽丽 819153113@qq.com
中文版翻译者: 金丽丽 819153113@qq.com
中文版校译者: 黄佳露 799942107@qq.com
以下为正文
---------------------------------------------------------------------
March 2008 Jan-Simon Moeller, dl9pf@gmx.de
时间:2008年3月 作者:Jan-Simon Moeller 电子邮箱:l9pf@gmx.de
How to deal with bad memory e.g. reported by memtest86+ ?
如何处理受损的内存呢?比如是否可以根据memtest86+(一款内存检测工具)提供的检测报告进行处理?
There are three possibilities I know of:
据我所知道的,有三种可行的处理受损的内存的方法:
1) Reinsert/swap the memory modules;
重新插入或者更换内存模块;
2) Buy new modules (best!) or try to exchange the memory if you have spare-parts;
购买新的模块(这是最好的处理方法),或者在有多余分区的前提下尝试更改内存;
3) Use BadRAM or memmap;
利用伪随机存取存储器或者存储器映射控制寄存器
This Howto is about number 3) .
以下为方法3)的注解.
BadRAM
伪随机存取存储器
######
BadRAM is the actively developed and available as kernel-patch
伪随机存取存储器是开发人员积极开发的并可作为内核补丁的一种寄存器。
here: http://rick.vanrein.org/linux/badram/ For more details see the BadRAM documentation.
在如下地址http://rick.vanrein.org/linux/badram/ 中可以了解到更多详细的关于伪随机存取存储器的资料。
memmap
存储器映射控制寄存器
######
memmap is already in the kernel and usable as kernel-parameter at boot-time. Its syntax is slightly strange and you may need to
calculate the values by yourself!
存储器映射控制寄存器位于内核中并在启动时作为内核参数可供使用。它的语法比较特别,所以你可能需要自己计算数值。
Syntax to exclude a memory area (see kernel-parameters.txt for details): memmap=<size>$<address>
用于排除受损的内存区域的语法为(详解请见kernel-parameters.txt一文):MEMMAP=<SIZE>$<ADDRESS>
Example: memtest86+ reported here errors at address 0x18691458, 0x18698424 and some others. All had 0x1869xxxx in common, so I chose a pattern of 0x18690000,0xffff0000.
示例:memtest86+的检测报告指出错误的地址为:0x18691458, 0x18698424以及其他。这些地址有一个共同点,即都含有0x1869xxxx,因此我选择了一个模式:0x18690000,0xffff0000。
With the numbers of the example above: memmap=64K$0x18690000 or memmap=0x10000$0x18690000
参照上述的语法例子,memmap=64K$0x18690000 或者memmap=0x10000$0x18690000。