{"id":113,"date":"2008-11-28T22:48:46","date_gmt":"2008-11-28T21:48:46","guid":{"rendered":"http:\/\/www.lightsoft.se\/?p=113"},"modified":"2008-11-28T22:53:59","modified_gmt":"2008-11-28T21:53:59","slug":"linux-memory-test-to-find-hardware-issues","status":"publish","type":"post","link":"https:\/\/www.lightsoftai.com\/?p=113","title":{"rendered":"Linux memory test to find hardware issues"},"content":{"rendered":"<h3>Hardware issues is a pain in the ass<\/h3>\n<p>\nMemory faults can occur due hardware causes. And here is an example to find errors and avoid server crashes.<\/p>\n<p>There are a command memtest which stress test the memory in order to find faults. It is a effective at finding intermittent and non-deteministic faults under Linux.<\/p>\n<p>If you are using debian you can easily get it by typing<\/p>\n<h3>Example:<\/h3>\n<p><code lang=\"sys\"># apt-get install memtester<\/code><br \/>\n<br \/>\nIt is then possible to choose how the test should be performed here is an example that running memtest with <b>10MiB<\/b> memory to use and run it <b>1<\/b> iteration.<br \/>\n<code lang=\"sys\"># memtest 10M 1<\/code><br \/>\n<code><br \/>\nmemtest v. 2.93.1<br \/>\n(C) 2000 Charles Cazabon <memtest@discworld.dyndns.org><br \/>\nOriginal v.1 (C) 1999 Simon Kirby <sim@stormix.com> <sim@neato.org><\/p>\n<p>Current limits:<br \/>\n  RLIMIT_RSS  0xffffffff<br \/>\n  RLIMIT_VMEM 0xffffffff<br \/>\nRaising limits...<br \/>\nAllocated 10485760 bytes...trying mlock...success.  Starting tests...<\/p>\n<p>Testing 10481664 bytes at 0xb744c000 (4088 bytes lost to page alignment).<\/p>\n<p>Run    1:<br \/>\n  Test  1:         Stuck Address:  Testing...Passed.<br \/>\n  Test  2:          Random value:  Setting...Testing...Passed.<br \/>\n  Test  3:        XOR comparison:  Setting...Testing...Passed.<br \/>\n  Test  4:        SUB comparison:  Setting...Testing...Passed.<br \/>\n  Test  5:        MUL comparison:  Setting...Testing...Passed.<br \/>\n  Test  6:        DIV comparison:  Setting...Testing...Passed.<br \/>\n  Test  7:         OR comparison:  Setting...Testing...Passed.<br \/>\n  Test  8:        AND comparison:  Setting...Testing...Passed.<br \/>\n  Test  9:  Sequential Increment:  Setting...Testing...Passed.<br \/>\n  Test 10:            Solid Bits:  Testing...Passed.<br \/>\n  Test 11:      Block Sequential:  Testing...Passed.<br \/>\n  Test 12:          Checkerboard:  Testing...Passed.<br \/>\n  Test 13:            Bit Spread:  Testing...Passed.<br \/>\n  Test 14:              Bit Flip:  Testing...Passed.<br \/>\n  Test 15:          Walking Ones:  Testing...Passed.<br \/>\n  Test 16:        Walking Zeroes:  Testing...Passed.<br \/>\nRun    1 completed in 32 seconds (0 tests showed errors).<br \/>\nmunlock'ed memory.<br \/>\n1 runs completed.  0 errors detected.  Total runtime:  32 seconds.<br \/>\n<\/code><\/p>\n<p><!--adsense#Firefox_big--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hardware issues is a pain in the ass Memory faults can occur due hardware causes. And here is an example to find errors and avoid server crashes. There are a command memtest which stress test the memory in order to find faults. It is a effective at finding intermittent and non-deteministic faults under Linux. If [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-servers"],"_links":{"self":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=113"}],"version-history":[{"count":26,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/113\/revisions"}],"predecessor-version":[{"id":139,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/113\/revisions\/139"}],"wp:attachment":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}