Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Automatically memtest and then boot

Is there some way to reboot server, so it runs memtest (say, 1 or 2 passes) and then reboots back to Linux and writes report to some log?

Helped me to diagnose bad RAM on remote servers couple of times, but I was not able to google any way to do so for Linux server.
by

1 Answer

Kajalsi45d
Linux can do better than that - there's a kernel commandline option to test the entire memory as part of the boot sequence and lockout bad blocks - by necessity this will add several minutes to your bootup sequence where the box appears unresponsive. (memtest=n flag - see

Once you know where the bad blocks are you can tell linux to avoid them with the badram= flag.

There's also an online memory test tester (man memtester) and you have direct window into your IPMI too (which should be flagging any badram on any half-decent server - on my Intel servers any ipmi-discovered ECC errors have been written into syslog)

Login / Signup to Answer the Question.