mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Question] How to test (DRAM) memory location.
@ 2010-08-28 11:27 santosh
  2010-08-31  0:57 ` Calvin Walton
  0 siblings, 1 reply; 4+ messages in thread
From: santosh @ 2010-08-28 11:27 UTC (permalink / raw)
  To: linux-kernel

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 I want to test each location sequentially then How can I do it ? If
Base address is required then how to find it in my system??

regards
Santosh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Question] How to test (DRAM) memory location.
  2010-08-28 11:27 [Question] How to test (DRAM) memory location santosh
@ 2010-08-31  0:57 ` Calvin Walton
       [not found]   ` <AANLkTinqOiSu2kW=P4GTQowDYVHrF+zcY9N4YY+c-xeJ@mail.gmail.com>
       [not found]   ` <AANLkTim03ofVGh-5ifAfook=nv35tY0RDKMjHsEW8U1N@mail.gmail.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Calvin Walton @ 2010-08-31  0:57 UTC (permalink / raw)
  To: santosh; +Cc: linux-kernel

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>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Fwd: [Question] How to test (DRAM) memory location.
       [not found]   ` <AANLkTinqOiSu2kW=P4GTQowDYVHrF+zcY9N4YY+c-xeJ@mail.gmail.com>
@ 2010-08-31 10:36     ` santosh
  0 siblings, 0 replies; 4+ messages in thread
From: santosh @ 2010-08-31 10:36 UTC (permalink / raw)
  To: linux-kernel

---------- Forwarded message ----------
From: santosh <santosh.iitg@gmail.com>
Date: Tue, Aug 31, 2010 at 4:05 PM
Subject: Re: [Question] How to test (DRAM) memory location.
To: Calvin Walton <calvin.walton@gmail.com>


Thanks Calvin for your response.

I will give a try and let you if I face any issue.


regards
Santosh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Question] How to test (DRAM) memory location.
       [not found]   ` <AANLkTim03ofVGh-5ifAfook=nv35tY0RDKMjHsEW8U1N@mail.gmail.com>
@ 2010-09-01  0:59     ` Calvin Walton
  0 siblings, 0 replies; 4+ messages in thread
From: Calvin Walton @ 2010-09-01  0:59 UTC (permalink / raw)
  To: santosh; +Cc: LKML

On Tue, 2010-08-31 at 18:07 +0530, santosh wrote:
> hi Calvin,
> 
> > 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).
> >
> 
> I was just looking at "linux-source-2.6.27.48" but could not find
> "memtest.c" at the location you mentioned above:
> 
> [root@localhost linux-2.6.27.48]# cd arch/x86/mm/

This code was moved fairly recently, although I don't remember exactly
when. In the kernel version you have, it should be present in
arch/x86/mm/init_64.c
(and is only available on the 64-bit x86 architecture).

Please check a newer kernel if you can, there's been some improvements
since.

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-01  0:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-28 11:27 [Question] How to test (DRAM) memory location santosh
2010-08-31  0:57 ` Calvin Walton
     [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

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®