mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Calvin Walton <calvin.walton@gmail.com>
To: santosh <santosh.iitg@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [Question] How to test (DRAM) memory location.
Date: Mon, 30 Aug 2010 20:57:49 -0400	[thread overview]
Message-ID: <1283216269.3738.6.camel@ayu> (raw)
In-Reply-To: <AANLkTinYuck4yEGpFDKZp-R3N2dtoQ68cLHQY6EW6sr-@mail.gmail.com>

On Sat, 2010-08-28 at 16:57 +0530, santosh wrote:
> Hi,
> 
> I need to write a memory diagnosis  program which will test each and
> every location of SDRAM
> to know whether its working properly or a bad location
> 
> What would be the best approach ??

If you can, it's best to just use code other people have already
written :)

If you can reboot the computer to test the memory, Memtest86+ is a
well-known and very reliable tool which does just what you ask. You can
obtain it from http://www.memtest.org/

There's some work done on an in-kernel memory tester, but testing memory
while Linux is running is somewhat limited as there are sections of
memory that you can't overwrite during testing. Take a look at
CONFIG_MEMTEST and arch/x86/mm/memtest.c (which is currently only
capable of testing memory in early boot).

-- 
Calvin Walton <calvin.walton@gmail.com>


  reply	other threads:[~2010-08-31  0:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-28 11:27 santosh
2010-08-31  0:57 ` Calvin Walton [this message]
     [not found]   ` <AANLkTinqOiSu2kW=P4GTQowDYVHrF+zcY9N4YY+c-xeJ@mail.gmail.com>
2010-08-31 10:36     ` Fwd: " santosh
     [not found]   ` <AANLkTim03ofVGh-5ifAfook=nv35tY0RDKMjHsEW8U1N@mail.gmail.com>
2010-09-01  0:59     ` Calvin Walton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1283216269.3738.6.camel@ayu \
    --to=calvin.walton@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=santosh.iitg@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®