r/MacStudio
•
u/JasonHofmann
•
10h ago
PSA: stress test your M5 Mac Studio before the return window closes. One of mine passed Apple Diagnostics and still has bad memory.
I bought four M5 Ultra Mac Studios with 512 GB. Three are fine. The fourth has a memory fault, and I only found it because I happened to be running something (very cool!) that used almost all of its RAM.
Less than a week after it arrived, it kernel panicked in the middle of a big local model run. Then it did it again. It's now at 12 panics in four days, all the same kind: an uncorrectable memory (ECC) error. Most of the panic logs say "poison consumed by a non-capable IP", if you want something to search for. Every one of them points at the same small region of memory.
I ran a memory test on the bad Mac and on an identical one next to it at the same time. The good one re-read about 11 petabytes with zero errors. The bad one flipped a bit 17 times in under an hour of testing, and none of those flips raised an error. The data was just wrong. If I hadn't been checking, I would never have known.
The frustrating part is how many things didn't catch it. Apple Diagnostics passed. A CPU-only memory test checked 1.6 petabytes, twice, and found nothing. It has only ever failed under heavy load, with most of the memory in use and the GPU reading it hard, and even then it takes anywhere from one minute to almost an hour. One night it ran for nearly five hours clean and then panicked again the next afternoon. A big file copy over Thunderbolt set it off once too.
So if you have a new Studio, especially a high-memory one, load it up while you can still send it back. Fill most of the RAM with something that keeps reading it, get the GPU involved, and leave it running for hours, on more than one day. A big local model does the job. Then look in /Library/Logs/DiagnosticReports for .panic files.
p.s. Apple's normal window is 14 days from delivery. But for the 2026 holiday season in the US, eligible online purchases received between November 6 and December 25, 2026, can be returned through January 8, 2027.
Mine is going back next week. I ordered a replacement, which won't arrive until February.
Claude Fable 5.2 analysis of the panic files in image and below.
What the corruptions have in common
Same position in the 64-byte block, every time. All 17 corrupted words are word 6 of their 64-byte block (bytes 24 to 27), across 12 different buffers intwo runs.
Same bits. 15 were bit 5 of that word and 2 were bit 16.
Same direction. In every case a 1 read back as 0.
Not corrected. Each corrupted word stayed wrong every time it was read again, so the wrong value reached software rather than being corrected on the way.
–
Edit: here's a prompt you can paste into Claude, ChatGPT or Gemini to have it build a test for your own Mac. It works best in a coding agent that can run commands on the Mac.
I have a new M5 Mac Studio and I want to stress test its memory while
I can still return it. Please design the test, write it, and help me
run it and read the results. If you can run commands on this Mac, do
the work yourself, and ask me before anything that needs sudo or
installs software. If you can't, give me complete scripts and exact
commands, one step at a time.
Background: another owner found a memory fault in a 512 GB M5 Ultra
Studio that had passed Apple Diagnostics. What they saw:
- Kernel panics from uncorrectable memory (ECC) errors. Every panic
log contains "ECC on ppnum" and "vm_ecc.c". Most also say "poison
consumed".
- Silent corruption before the panics. Single bits in stored data
read back as 0 when a 1 was written, and nothing reported an error.
- A CPU-only pattern test that covered most of the RAM checked 1.6
petabytes, twice, and found nothing.
- The test that caught it held 400 GiB in GPU buffers and had the GPU
re-read them in a loop with some CPU cores busy. The first flipped
bit showed up within about 4 minutes, both times it was run.
- Under load, the time to a panic ranged from 1 minute to almost an
hour, and one night it ran clean for nearly 5 hours.
What I need:
1. Look at this Mac first: model, RAM, macOS version, free memory,
any .panic files in /Library/Logs/DiagnosticReports, and the
output of: sysctl vm | grep -i -E 'ecc|retired'
2. Fill as much RAM as this Mac can hold without swapping (the
original used 78 percent) with data that can be recomputed from a
seed, so no second copy is needed. Write it once. Then have the
GPU re-read all of it in a loop and check it, for example with a
checksum per MiB, while a few CPU cores stay busy. Check whether
the GPU memory limit (sysctl iogpu.wired_limit_mb) allows that
much. If it doesn't, tell me how to raise it and how to put it
back.
3. On a mismatch, re-read that region and report the exact offset,
the expected and actual values, which bits differ, and whether
the value stays wrong or reads correctly the second time. Count
those two kinds separately. Rule out a bug in the test before you
blame the hardware.
4. Assume the Mac may panic in the middle of a run. Append every
result to a log and force each line to disk (F_FULLFSYNC on
macOS) so the log survives. If I have a second computer, offer to
copy the log to it while the test runs.
5. Before the real run, prove the checker works. Run it small, plant
one wrong bit, and show me that it reports the right position.
6. Plan runs of several hours on at least two different days. A
CPU-only phase and a large file copy are optional extras. The GPU
phase is the one that found the fault.
How to read the results:
- An uncorrectable ECC panic, or a stored value that stays wrong
when re-read, points to a hardware fault. Tell me which files to
keep as evidence for Apple.
- A nonzero corrected-ECC count is normal. That owner's three good
units log thousands of corrected errors a day under heavy load,
and on those Macs macOS updated the counter only about once a day.
Don't treat it as a fault and don't use it to time anything.
- The retired-page and panic-page counters went back to 0 after a
normal restart, so go by the panic files and the test log.
- If the Mac stops responding, it has probably panicked and
restarted. With FileVault on it waits at the unlock screen.
- A clean run doesn't prove the memory is good. Tell me how much
data was checked and for how long.
The original was Python with MLX and numpy. Use what you think is
best, keep the dependencies few, and tell me what you plan to install
before you install it. I will save my work and quit my other apps
before each run.