MemTest86

{{Split|MemTest86|Memtest86+|date=February 2025}}

{{Short description|Computer memory diagnostics software}}

{{Use dmy dates|date=September 2024}}

{{Infobox software

| name = MemTest86

| screenshot = Memtest86 v83p.png

| screenshot alt = A text-mode screen displaying many statistics

| caption = A screenshot of MemTest86 (ver. 8.3 Pro)

| author = {{wikidata|properties|Q1849262|P170}}

| developer = {{wikidata|properties|Q1849262|P178}}

| released = {{Start date and age|{{wikidata|properties|Q1849262|P577}}}}

| latest release version = {{wikidata|property|preferred|references|edit|Q1849262|P348|P548=Q2804309}}

| latest release date = {{wikidata|qualifier|preferred|single|Q1849262|P348|P548=Q2804309|P577}}

| programming language = {{wikidata|properties|Q1849262|P277}}

| language = {{wikidata|properties|Q1849262|P407}}

| language count = 12

| language footnote = {{cite web |url=https://www.memtest86.com/compare.html |title=MemTest86 Feature Comparison |website=MemTest86.com |access-date=22 August 2024 }}

| genre = Utility

| license = {{wikidata|properties|Q1849262|P275}}

| website =

}}

{{Infobox software

| name = Memtest86+

| screenshot = Memtest86+-6.00b2.png

| screenshot alt = A blue text-mode screen displaying many statistics

| caption = A screenshot of Memtest86+ (ver. 6.00b2)

| developer = {{wikidata|properties|Q64996107|P178}}

| released = {{Start date and age|{{wikidata|properties|Q64996107|P577}}}}

| latest release version = {{wikidata|property|preferred|references|edit|Q64996107|P348|P548=Q2804309}}

| latest release date = {{wikidata|qualifier|preferred|single|Q64996107|P348|P548=Q2804309|P577}}

| repo =

| qid = Q64996107

| programming language = {{wikidata|properties|Q64996107|P277}}

| language = {{wikidata|properties|Q64996107|P407}}

| genre = Utility

| license = {{wikidata|properties|Q64996107|P275}}

| website =

}}

MemTest86 and Memtest86+ are memory test software programs designed to test and stress test an x86 architecture computer's random-access memory (RAM) for errors, by writing test patterns to most memory addresses, reading back the data, and comparing for errors.{{cite web |url=https://www.memtest86.com/technical.htm |title=MemTest86 Technical Information |publisher=PassMark Software |website=MemTest86.com |access-date=22 October 2015 }} Each tries to verify that the RAM will accept and correctly retain arbitrary patterns of data written to it, that there are no errors where different bits of memory interact, and that there are no conflicts between memory addresses.

MemTest86

=History=

MemTest86 was developed by Chris Brady in 1994.{{cite web |url=https://www.memtest86.com/history.htm |title=MemTest86 History |website=MemTest86.com |archive-url=https://web.archive.org/web/20190511082509/https://www.memtest86.com/history.htm |archive-date=11 May 2019 }} It was written in C and x86 assembly, and for all BIOS versions, was released under the GNU General Public License (GPL). The bootloading code was originally derived from Linux 1.2.1.{{cite web |title=bootsect.S - chromiumos/third_party/memtest - Git at Google |url=https://chromium.googlesource.com/chromiumos/third_party/memtest/+/master/bootsect.S |website=ChromiumOS Source |quote=Copyright (C) 1991, 1992 Linus Torvalds 1-Jan-96 Modified by Chris Brady }} The program is compiled as position-independent code so as to be able to move itself around and test all the memory regions.{{cite web |title=README.build-process - chromiumos/third_party/memtest - Git at Google |url=https://chromium.googlesource.com/chromiumos/third_party/memtest/+/master/README.build-process |website=chromium.googlesource.com }} The proprietary PassMark version does not have this ability.{{Cite web |title=MemTest86 – Known Issues |url=https://www.memtest86.com/tech_blacklist-file.html |website=MemTest86.com |access-date=31 October 2023 |quote=MemTest86 cannot remap itself to different portions of memory in order to run tests in the section of memory it was occupying. }}

==BadRAM patch==

Starting from MemTest86 2.3, the program can output a list of bad RAM regions in the format expected by the BadRAM patch for the Linux kernel.{{Cite web |url=https://www.memtest86.com/whats-new.html |title=What's New? |website=MemTest86 |access-date=6 September 2024 }} GRUB2 is able to supply this same information to an unpatched kernel, making the BadRAM patch unnecessary.{{cite web |url=https://www.gnu.org/software/grub/manual/grub.html#badram |title=GNU GRUB Manual 1.99 § Badram }} Microsoft Windows has a similar feature (badmemorylist/badmemoryaccess), but manual conversion is required for setting it up.{{Citation needed|date=September 2024}}

==PassMark purchase==

In February 2013, the original MemTest86 was sold to PassMark. The BIOS version was updated under GPL until version 4.3.7.

MemTest86 Version 5.0 (3 December 2013) was rewritten for UEFI booting (initially with fallback to BIOS booting on non-UEFI systems), allowing for secure boot approval and mouse support. All UEFI versions are released under a proprietary freeware license. Version 6.0 (13 Feb 2015) adds support for DDR4 RAM, and a row-hammer test based on research from Yoongu Kim, et al..{{cite web |last1=Kim |first1=Yoongu |last2=Daly |first2=Ross |last3=Kim |first3=Jeremie |last4=Fallin |first4=Chris |last5=Lee |first5=Ji Hye |last6=Lee |first6=Donghyuk |last7=Wilkerson |first7=Chris |last8=Lai |first8=Konrad |last9=Mutlu |first9=Onur |date=8 July 2014 |url=https://www.ece.cmu.edu/~safari/pubs/kim-isca14.pdf |title=Flipping Bits in Memory Without Accessing Them: An Experimental Study of DRAM Disturbance Errors |publisher=Carnegie Mellon University |access-date=7 April 2015 }} Version 8.0 removed backward compatibility with non-UEFI systems, requiring a separate download of the older version 4.3.7.

Memtest86+

=History=

After MemTest86 remained at version 3.0 (2002 release) for two years, Samuel Demeulemeester created the Memtest86+ fork to add support for newer CPUs and chipsets.

From version 1.60, the program can output a list of bad RAM regions in the format expected by the BadRAM patch for the Linux kernel{{Cite web |url=https://www.memtest.org/#change |title=Memtest86+ - Advanced Memory Diagnostic Tool |website=MemTest.org }} (similar to MemTest86 2.3).

The BIOS-based line of Memtest86+ entered a stall after the release of version 5.01 (September 2013). In April 2020, the final BIOS-based version, 5.31 beta, was released with a short changelog claiming "many fixes".{{cite web |title=Memtest86+ Archives |url=https://www.memtest.org/archives |website=Memtest86+ }}{{cite web |title=728766 – sys-apps/memtest86+-5.31b version bump |url=https://bugs.gentoo.org/728766 |website=Bugs.Gentoo.org }}

In May 2020, Martin Whitaker forked Memtest86+ 5.31 into PCMemTest, rewriting it for UEFI support, DDR4 and DDR5 RAM, and supporting all current AMD and Intel chipsets and CPUs. In October 2022, this branch merged back, becoming Memtest86+ 6.0.{{Cite web |last=Klotz |first=Aaron |date=24 October 2022 |title=Memtest86+ Is Back! New Version Released After 9 Years |url=https://www.tomshardware.com/news/memtest86-plus-is-back-after-9-years |website=Tom's Hardware |access-date=25 October 2022 }}{{Cite web |title=memtest86+ v6.0 Released As Rewritten Open-Source RAM Tester |url=https://www.phoronix.com/news/memtest86-6.0-Released |website=Phoronix.com |access-date=25 October 2022 }}

=Adoption=

Memtest86+ is included, optionally or by default, in many Linux distributions, including Debian,{{cite web |url=https://packages.debian.org/stable/memtest86+ |title=Package: memtest86+ |website=Debian Packages |access-date=15 January 2024 }} the derived Ubuntu, and Arch Linux.{{cite web |title=Arch Linux - memtest86+ 5.01-3 (any) |url=https://www.archlinux.org/packages/extra/any/memtest86+/ |access-date=7 April 2019 }} Ubuntu includes it as part of the default installation if the machine is booting in BIOS mode, showing it in the GRUB OS-select menu;{{cite web |title=MemoryTest |url=https://help.ubuntu.com/community/MemoryTest |website=Ubuntu Help Wiki |access-date=7 April 2019 |quote=Hold down Shift to bring up the GRUB menu. Use the arrow keys to move to the entry labeled Ubuntu, memtest86+ }} the version 6.0, UEFI-capable, is available from Ubuntu 23.04 Lunar Lobster.{{cite web |url=https://packages.debian.org/stable/memtest86+ |title=Memtest86+ 6.10-4 (amd64 binary) in Ubuntu Lunar |website=Ubuntu Launchpad |access-date=16 January 2024 }} Whilst Memtest86+ version 5.01 required significant patching by distributions to keep the 2013 code base functional,{{cite web |title=Patch tracker: memtest86+ |url=https://sources.debian.org/patches/memtest86%2B/5.01-3.1/ |website=Debian Sources |access-date=20 September 2023 }} the 6.0 release did not require such extensive patching.{{cite web |title=Patch tracker: memtest86+ |url=https://sources.debian.org/patches/memtest86%2B/6.10-4/ |website=Debian Sources |access-date=20 September 2023 }}

Common features

File:Memtest86+ memory errors.png

There are two development streams of MemTest86(+). The original is simply known as MemTest86. The other, known as Memtest86+, is a development fork of the original MemTest86. Their on-screen appearance and functionality were almost identical until MemTest86 4.3 and Memtest86+ 5.0.

Version 5.0 of MemTest86 added a mouse-driven graphical user interface (GUI) and UEFI support; the latter was added by Memtest86+ from version 6.0.{{Citation needed|date=September 2024}}

These programs work with nearly all PC-compatible computers from 80386- and 80486-based systems to the latest systems with 64-bit processors. Each new release adds support for newer processors and chipsets.

MemTest86(+) is designed to run as a stand-alone, self-contained program from a bootable USB flash drive, CD-ROM, floppy disk, or from a suitable boot manager without an operating system present.{{cite web |last=Fisher |first=Tim |date=6 February 2018 |title=MemTest86 v7.5 Free Memory Testing Tool Review |url=https://www.lifewire.com/memtest86-review-2626145 |website=Lifewire|publisher=Dotdash |access-date=24 February 2018 }} This is because the program must directly control the hardware being tested and leave as much of the RAM space as possible for examination.

MemTest86(+)'s testing is very comprehensive, so it can find otherwise hidden problems on machines that appear to work normally.{{cite web |url=https://www.memtest86.com/technical.htm#algo |title=MemTest86 Technical Information: Algorithms |publisher=PassMark Software |website=MemTest86.com |access-date=1 November 2014 }} With many chipsets, MemTest86 allows counting of failures even in error-correcting ECC DRAM (without special handling, error correcting memory circuits can mask problems with the underlying memory chips).

Some errors manifest intermittently or depend on the precise bits being stored, and do not occur on each pass; such errors may be revealed by running many passes over an extended period. Some tests use different data each pass to reveal data-dependent errors.{{cite web|url=https://www.memtest86.com/technical.htm#detailed|title=MemTest86 Technical Information: Detailed Descriptions|publisher=PassMark Software|website=MemTest86.com |access-date=22 October 2015 }}

Both versions now support current multi-core processors, the corresponding chipsets, and UEFI.{{cite web |url=https://www.memtest.org/#history |title=Memtest86+ History |website=Memtest.org }}{{cite web |url=https://www.memtest86.com/support.html |title=MemTest86 Support |website=MemTest86.com }}

References

{{Reflist}}