TMR is short for Test Memory R, the R for Rust. It aims to be a modern, high-performance memory tester, and was inspired by TM5 (TestMem5 by Serj). I used TM5's original assembly source to model a similar test structure, then used Claude AI (with a little bit of Astra/Codex) to reimplement it in Rust for modern 64-bit Windows (11 or Server 2022+) and today's hardware (AVX2, DDR4 or DDR5).
Status: 0.1.2, an early release. TMR works, but it is young: its settings and files may change between versions until 1.0. An unstable overclock can freeze, crash or restart your PC while TMR runs, as any memory test can: save your work and close other programs first.
- Screenshots
- Install and run · User guide · Test reference
- Key changes from TM5
- Design tradeoffs
- Supported Windows OSes
- Supported hardware
- Requirements
- Building from source
- Privacy
- License · Credits
The window, during a stability run: the throughput chart, each finished step, and a step's report.
The window is WinUI 3, through Reactor
(windows-reactor, from Microsoft's windows-rs). It was chosen because it proved very light in
testing, even in a VM with no GPU, so it leaves the machine to the test. The trade-off is that
Reactor is young: some things the window would like, such as monospaced text in its controls and a
log that follows its end, aren't there yet. The window will gain that polish as Reactor does.
The console, with its progress ticker at the bottom.
The console looks best in a modern terminal, which shows its emoji and table lines in a font such as Cascadia Mono: Windows Terminal (it ships the Cascadia fonts) with PowerShell 7.6 or later. In the classic Windows console, which draws the emoji as boxes, TMR says so at a run's start and end. Both install with winget:
winget install --id Microsoft.WindowsTerminal --exact --source winget
winget install --id Microsoft.PowerShell --exact --source winget
That PowerShell is 7.7 or later, which winget installs as an MSIX package, for your account only: other accounts, scheduled tasks and services don't see it, among other gaps (PowerShell/PowerShell#27565). For PowerShell for all users, install the 7.6 LTS line's MSI instead:
winget install --id Microsoft.PowerShell --exact --version 7.6.10.0 --source winget --installer-type wix
- The installer,
tmr-<version>-setup.exefrom GitHub Releases: for all users (in Program Files, after a UAC prompt), or for you only. It adds TMR to the Start menu andtmrto the PATH. - winget, once TMR's package is accepted there:
winget install Petz.TMR. - The bare
tmr.exefrom the same releases, in a folder of its own that you can write to.
Then grant the large-page privilege once, from a console run as administrator:
tmr --setup-large-pages grants it to you (Group:Administrators, or another Group: or User:
name, to a group or another account), and sign out and back in. From then on TMR has it in every
run, run as administrator or not. Double-click TMR for its window, or type tmr plan=stability in a console for the stability
plan, 3 cycles: any setting starts a run, tmr alone lists every setting, and config=file.cfg runs a TM5 config. The
user guide, which the installer puts in TMR's docs\ folder, has the rest.
TMR keeps its files beside tmr.exe: configs\, results\ (one JSON file a run, saved as it
goes), logs\ and settings\ (tmr-cfg.json, its calibrations, and window.json, the window's
settings, each with a .bak copy of its last save). TMR_HOME puts them in another folder. Run as
administrator, which only the large-page setup needs, TMR keeps a separate set in
%ProgramFiles%\TMR Admin (or a TMR_HOME only administrators can change) and asks before it
tests; --allow-admin skips the question, as a run with no console to answer from needs. The
user guide has the details. A
results file describes the system it came from; see Privacy below for what that includes
and how to leave identifiers out before you post one.
- Fixed allocations instead of a sliding window. TM5 slides an AWE window over the memory it tests; TMR gives each thread its own fixed allocation, with native 64-bit addressing.
- Huge (1 GB) and large (2 MB) pages, locked in memory (non-pageable). Both are faster than
regular 4 KB pages. No driver: TMR runs in user mode, and
tmr.exe --setup-large-pages(elevated) grants the privilege they need once, to you, or withGroup:Administratorsto a group. - Wider SIMD: most tests come in 128-bit, 256-bit (AVX2) and 512-bit (AVX-512) widths,
the widest the CPU has by default (
width=picks one). An experimental tile test runs on AMX (Intel Xeon); ACE is next to look at. - TM5 configs still work: TMR loads TM5
.cfgfiles and runs the equivalent tests. - Configurable access spacing and grouping: SimpleTest and Mem-Sequence can visit single lines or groups of neighbouring lines before each jump. The access geometry guide explains the settings and includes a comparison config; existing plans keep their current walks.
- TM5's test 0 becomes the seal: all memory is sealed at the start of a cycle and checked at its end, and each block a checking test works on is checked before and resealed after it, so an error in memory no test is touching is still caught.
- Errors say more: a failed check is rescanned to tell a misread from a wrong stored value, failures are counted by bit position (one bit failing everywhere points at one data line), and Windows' hardware error log (WHEA) is watched for errors the tests can't see themselves.
- Built for today's CPUs: threads are pinned to physical cores and take their memory from their own NUMA node while it has room, CPUs beyond 64 (processor groups) are used, and checks can bypass the caches (non-temporal stores, CLFLUSHOPT) so they read DRAM.
- Patterns aimed at the memory bus, alongside TM5's. A switching family inverts each beat of a
burst at the bus's own width, so every data line toggles on every transfer, the most switching
noise the data can make: 64-bit for DDR4, 32-bit for DDR5's subchannels, 16-bit for
LPDDR4/5/5X, picked from the memory type SMBIOS reports, and models of LPDDR6's 12-bit and DDR6's
24-bit, chosen with
beat=. A random family feeds every line every short bit sequence, which DDR5's receive equalisers react to. Both aim to make a marginal overclock fail sooner. - Built-in test plans (
plan=;stabilityby default), results as JSON saved during the run and comparable between runs, and a console (CLI) and a window (GUI) in onetmr.exe.
TMR focuses on testing overclock stability:
- User mode, no driver. Easy to install, but no direct access to privileged memory-controller or on-die ECC counters. TMR monitors the hardware errors Windows exposes through WHEA.
- No physical address mapping. Tests work across controllers without decoding their address maps, but cannot guarantee access to a particular channel, bank or row. TMR has no targeted Rowhammer tests.
- Allocated memory only. A run tests the memory Windows grants it; memory used by Windows and other programs is outside that allocation.
tmr.exe opens its window when double-clicked, and runs in the console when started from a shell,
a script or a remote session; --gui and --cli choose explicitly. Where the window can't open,
--gui says why and runs nothing.
| Windows | Build | Console (CLI) | Window (GUI) |
|---|---|---|---|
| Server 2022 | 20348 | Yes | No: a double-click leaves you at a prompt in TMR's folder, after its help, in a Windows Terminal window when it's installed, with the newest PowerShell; --gui says why and stops |
| Windows 11 21H2, 22H2, 23H2 | 22000–26099 | Yes | Yes, but a double-click flashes a console window briefly before the window opens |
| Windows 11 24H2 and later, Server 2025 | 26100 and later | Yes | Yes, fully supported |
Windows 10 and Server 2019 aren't supported: TMR isn't tested on them, and the window needs Windows 11.
CPU. TMR is compiled for x86-64-v3 (AVX, AVX2, BMI1, BMI2, F16C, FMA, LZCNT, MOVBE) and also needs CLFLUSHOPT, which pushes a cache line out to DRAM so that a check reads the memory, not a cached copy. It checks for both at startup, and stops on a CPU without them.
| Intel | AMD | |
|---|---|---|
| Required: x86-64-v3 and CLFLUSHOPT | 6th gen Core (Skylake, 2015, e.g. i5-6600K) and later | Ryzen 1000 and EPYC 7001 (Zen, 2017) and later |
| Optional: AVX-512, for the 512-bit tests | Core X (Skylake-X), Xeon Scalable and Xeon W, 10th gen mobile (Ice Lake), 11th gen (Tiger Lake, Rocket Lake); no consumer chip since 12th gen | Ryzen 7000 and EPYC 9004 (Zen 4) and later |
| Optional: AMX, for the experimental tile test | 4th gen Xeon Scalable (Sapphire Rapids, 2023) and later | None |
Haswell and Broadwell (4th and 5th gen Core, e.g. i5-4670K) have AVX2 but not CLFLUSHOPT, so TMR doesn't run on them, nor on Pentium, Celeron and Atom models without AVX2. A test the CPU can't run (a 512-bit test without AVX-512, the tile test without AMX) is left out of the run, never stepped down to a narrower width.
Memory. TMR reads the memory type from SMBIOS and aims its switching patterns at that type's bus width (see Key changes):
| Memory type | Bus width the switching patterns flip at |
|---|---|
| DDR4 (and DDR3L, on some 6th and 7th gen Core boards) | 64-bit per channel; multiple DIMMs can share a channel |
| DDR5 | 32-bit: two subchannels per DIMM |
| LPDDR3 | 32-bit |
| LPDDR4, LPDDR5, LPDDR5X | 16-bit (SMBIOS reports LPDDR5X as LPDDR5, so TMR names it "LPDDR5/5X") |
| DDR6, LPDDR6 | 24-bit and 12-bit, models of the drafts: not detected, chosen with beat=ddr6 or beat=lpddr6 |
When SMBIOS reports no type TMR knows (a VM often reports none), TMR says so and the switching
patterns alternate their 64- and 32-bit forms; beat= sets the type.
width= selects the CPU's SIMD instruction width; beat= selects the switching pattern's
transfer profile. Neither setting selects how many memory channels the system uses.
Caches. TMR reads the size of each cache tier (L1, L2, L3) from the CPU. The cache bandwidth and latency tests are sized to fit their tier, and tests aimed at DRAM size their blocks past the L3, so they reach it.
On a new PC, these install both runtimes below: the console needs the first, the window both.
winget install --id Microsoft.VCRedist.2015+.x64 --exact --source winget
winget install --id Microsoft.WindowsAppRuntime.2 --exact --source winget
- Windows and a CPU from the lists above.
- The Microsoft Visual C++ runtime (
VCRUNTIME140.dll), for the console and the window alike.tmr.exeis built with Microsoft's C++ toolchain, which keeps part of its C runtime in that DLL rather than in each program, so without it Windows won't starttmr.exe("VCRUNTIME140.dll was not found").tmr.exetakes it, as it takes Windows' own DLLs, from Windows'System32folder only, where the runtime installs it: a copy besidetmr.exeis never used, so no other program can put its own there for an elevatedtmr.exeto run. Most PCs have it already: games and many apps install it. Get it from https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist, or with the first command above. - The Windows App Runtime 2 (2.4 or later), for the window only: the window's controls (WinUI 3)
are in that runtime, which Microsoft ships apart from Windows. The console runs without it. When
the window can't find it, TMR offers to open the download page,
https://learn.microsoft.com/windows/apps/windows-app-sdk/downloads, or use the second command
above (
Microsoft.WindowsAppRuntime.2, notMicrosoft.WindowsAppRuntime.2.0, an older 2.0 release). - Neither runtime is bundled with TMR, on purpose: both are shared by many programs, so each PC
should keep its one copy up to date (
winget upgrade --all, or each package by its name above), and it keepstmr.exeand this repository small. - Optional: the "Lock pages in memory" privilege, for huge and large pages: run
tmr.exe --setup-large-pagesonce from an elevated prompt (Group:Administrators, or anotherGroup:orUser:name, grants it to a group or another account), then sign out of Windows and back in (a privilege reaches your programs at your next sign-in). From then on TMR has it in every run, run as administrator or not.tmr.exe --remove-large-pagestakes it away again. Without it TMR warns, and asks before running on regular 4 KB pages, which are slower: it runs on them only when you say so, or withminpage=reg-page maxpage=reg-page, and no answer quits. Where the large pages run short (they fragment as Windows runs), each thread finishes on 4 KB pages locked in RAM, up to 5% of its share (minpage=reg-lock, the default); short by more, the run stops before testing and says what to change.
See the development setup guide for prerequisites, the setup script, local builds, CI checks and the published crates.
TMR runs entirely offline: it makes no network connections and has no telemetry, update check, or self-update of any kind. Nothing it does ever leaves the machine it runs on.
What TMR records. Every run's console output, log and results file include the system it ran on:
the CPU, the BIOS, the motherboard, and each memory module's manufacturer, part number, speed and
capacity. They leave out, by default, each DIMM's serial number, the motherboard's system UUID, and
two short hashes TMR computes to recognise the machine later: machine_id (from the CPU and BIOS) and
memory_id (from the memory modules, including their serial numbers). --serials (the window's
Settings has the same toggle, off by default) keeps all four of those in the console, the log and the
results file. The module manufacturer and part number are always recorded. Neither hash is a strong
cryptographic hash, so don't treat a file that has them, from a run with --serials or from the 0.1.2
release or earlier, which kept them by default, as anonymous; a file that left them out has
(left out: --serials keeps it) for its machine_id and memory_id. Without the hashes,
--compare-results tells two runs' machines apart by the CPU and its cache sizes, the BIOS, and each
memory module's part number and speed.
No results, no log. record=off keeps a run from writing a results file or a log file at all; the
console still shows the run. It doesn't reach the local calibration cache (below); add calibrate=off
too if you want a run to touch no files whatsoever.
The calibration cache. TMR keeps a small local file, settings\tmr-cfg.json (beside the exe, or
under TMR_HOME; run as administrator, in its own home, %ProgramFiles%\TMR Admin by default), with the real system UUID and the real per-DIMM serial and part numbers, so it can
tell when the hardware has changed and a fresh calibration is needed; tmr-cfg.json.bak beside it is
a copy of its last save. Leaving the serials out doesn't reach them; that only affects what a run
displays or writes out. These files stay on your machine and are never sent anywhere.
Sharing a log or results file. Both describe your system as above. A run's files have no DIMM
serial numbers, system UUID or fingerprint hashes unless it was given --serials, but the log names
the Windows account TMR ran as (PC\name) and, when that account lacks the right large pages need,
every account and group the security policy gives it to, with their SIDs (other people's accounts on
the PC among them). A hardware error's Windows event, which the log records when Windows has no
message for it (and always at RUST_LOG=debug), names the PC by its full name, DNS domain included.
Paths in either file can have your user folder in them (C:\Users\<name>\...).
tmr --sanitize <results file or log> (the window's ••• menu has it as Sanitize a results file and
its log) writes copies of the pair beside them, <name>.sanitized.json and <name>.sanitized.log,
with each of those replaced by <removed>: the DIMM serials, the system UUID, both hashes, the user
folders, the accounts, the PC's and the users' names, and the machine's SIDs. Either file names the
pair; the other must be beside it (in TMR's results\ and logs\, or in the same folder) and carry
the same run ID, or nothing is written. The originals stay as they were. It can't know a name TMR
didn't write, such as a config's name or a folder outside C:\Users\, so read the copies before you
post them.
Use --sanitize when you have both files. When you have only one, or its partner is from another run
(a log from before TMR recorded run IDs has none), tmr --sanitize-single <results file or log>
(Sanitize one file, in the same menu) copies that file alone, to <name>.sanitized.json or
<name>.sanitized.log, without looking for its partner or checking a run ID. It removes the same
things, as far as that one file shows them, and its last lines say what it couldn't:
- A results file alone doesn't know the PC and user names only its log gives (the account TMR ran as,
a hardware error event's PC), so one of those stays where the results file has it outside a
C:\Users\path, such as a config on\\PC\share. - A log alone has no results file to name the serials, the UUID and the hashes, so it finds them by TMR's own lines for them (each DIMM's line, the system's, a calibration's identity check) and then wherever else the log has them. One that only a line of another kind has, as an older build's log might, stays.
This project is licensed under either of:
- MIT License (LICENSE-MIT)
- Apache 2.0 License (LICENSE-APACHE)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in TMR by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
TMR was inspired by TM5, and wouldn't exist without it; it's highly regarded among memory overclockers. Many thanks to Serj for his kind donation of TM5 to the community, and for what I imagine was many days of work crafting its test kernels in assembly. I contacted Serj, who was kind enough to fix a broken link on his website that gave me TM5's original assembly source.
- Serj's work: https://testmem.tz.ru
- TM5 page: https://testmem.tz.ru/testmem5.htm
