Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Recently I bought 8 GB of RAM and it has bad bits. Is it possible to lock the bad bits to make Linux avoid them?

share|improve this question
If you just bought it, why don't you return it and demand non-defective goods? – derobert Feb 27 '13 at 21:34

There's a suggestion here. There's also a kernel patch called badRAM but not, I think, for anything after 2.6.28.

The blog suggestion regarding memmap looks to be derived from a note included in the kernel source documentation, src/Documentation/bad_memory.txt; this note is still in the (currently most recent) 3.7.10 source as are references to the memmap boot time parameter (src/Documentation/kernel-parameters.txt). There are various possible reasons for incorporating such a feature into the kernel, and although this particular use-value may be unintentional, it seems like a sound idea IMHO and is worth a try (it's also very simple to do). I did not find any reports of it not working, at least, and the fact that the bad_memory.txt note has been left in the kernel source docs for 4+ years is a good sign.

share|improve this answer
Will you add some detail from that block post here? If so +1. – Kazark Feb 27 '13 at 21:55
@Kazark: I won't repeat what is stated elsewhere, especially since I have not done this myself, but I did add a bit of context and explanation not in the blog post. If czesuaf wants any specific clarifications, s/he's welcome to ask :) – goldilocks Feb 27 '13 at 23:29
It might just be that (as the recent removal of the documentation of the deprecation schedule shows) nobody went around to remove something that is moot since 8MiB was a large memory, costing serious money... – vonbrand Feb 28 '13 at 13:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.