A Rough Weekend for the MS-A2
Last week I got a new box for doing heavy data pipeline development at $DAYJOB:
a MinisForum MS-A2 with the Ryzen 9955HX.
This was a bit overdue given that my MacBook is now over 5 years old
and has approximately half the space I really need to work on some projects.
After a bit of deliberation and number crunching, it was clear that buying was significantly more attractive than renting.
Even in this crazy market where DDR5 accounted for more than half the total cost,
buying would break even vs a similarly spec'd rented server (which didn't even have DDR5) in just 12.5 months!
Given that I fully expect a work machine to last 5 years or so, it was a no brainer.
And then I remembered everything I disliked about working with x86 consumer hardware from by brief stint in IT π«

Tremors
On Friday afternoon, I started noticing some... odd behaviors. I admit I'm currently working on fairly taxing data pipelines built using Apache DataFusion, but I was noticing an odd escalation of strange behaviors, which accumulated over a period of several days.
- ZFS warning logs where the system detected a corrupted write via checksumming.
- An unusual error resulting in a segfault of some Rust code.
- A surprisingly invalid result from a processing job, which would nondeterministically fail. Codex curiously identified as differing from the expected value by a single bit flip. Spidey sense activated!
- Increasing general system instability... like
pkgchecksum failures π±
Maybe it's RAM?
Given the bit flip in particular, and everything I'd heard about DDR5 being a bit more fragile and the on-die "ECC" being worthless, I assumed I was unlucky and got a bad batch of RAM.
So I got copies of MemTest86+ and Memtest86 Pro loaded up on USB drives. The commercial variant didn't find any issues, but the open-source one lit up when it hit the AVX2 tests. Online reports seemed to suggest that the open-source Memtest86+ was not well designed for modern systems, but it's hard to tell how much of this is motivated by... other things...
So I reseated the RAM and shuffled sticks around a few times. Same results. I just so happened to have a workload that could knock it over, which was lucky since most testing tools I found either didn't repro it or were so degenerate that they caused system instability in other ways, which I was not super interested in.
Maybe it's a FreeBSD Kernel Bug??
At this point, in a vain attempt to rationalize how this could be a software failure, I wondered if I had hit a FreeBSD kernel bug, incompatibility issue with the Zen 5 CPUs (Ryzen support had been flaky in the early days), or something along those lines. AMD and Intel are famously terrible at providing documentation with the right details, so a lot is reverse engineered by the community.
In retrospect, this was obviously not the issue,
since one of the live USB based tools was able to reproduce some flavor of aberrant behavior,
and that was not based on FreeBSD.
But that didn't stop me from trying to disable powerd (no change), make sure the microcode was up to date (it already was),
etc...
Wait, What is Even Knowable?!
Along the way I also had some serious doubts about whether my repro setup was even exposing a consistent hardware but, or if userland software was a confounding factor somehow. Did I hit a compiler bug in my data pipeline?! I found this Rust miscompilation bug which mentions a similar CPU. While the issue was only a few days old, it hhas been around for a LONG time... So probably not it.
I also hit a weird error in some application runs which I think might have been due to a bug in a library I used which seemed to be related to what I was observing. This was also surprisingly reported VERY recently and fixed upstream, but my dependency chain didn't have it yet. I have to say, coding agents have an uncanny ability to uncover recently reported bugs in large projects which I would have never found! But that also just threw be off the track of debugging the real issue.
The increasing realization that it was probably something hardware related
made me think deeper about how I could even know if my kernel code is what it should be π
And how do I know that the compiler binary isn't corrupt?
Fortunately my system design with verifiable packages (pkg check -s -a)
and ZFS made that fairly straightforward, but it isn't a question I normalyl have to ask.
SIMD? Power? Firmware?
I kept coming back to hardware though... Memtest86 showed the RAM was fine. But Memtest86+ didn't... One of the things that stood out to me was that Memtest86 didn't spend very much time on several sorts of tests which had a lot of potential to indirectly test the CPU.
By coincidence (maybe), the first test that exposed issues under Memtest86+
was an AVX2 test.
I don't know why neither project supports the higher vector extensions like AVX512,
but whatever...
I even tried recompiling my program without any of these optimizations,
but no dice.
In fact, at this point, I started hitting even weirder issues,
like a SIGBUS in the middle of a compilation.
By new a few facts had begun swirling around in my head...
- These Ryzen 9 chips run quite hot (seriously, 60 degrees idle is considered acceptable) and have a bit of a history of stability issues.
- Undervolting and bespoke cooling seem to be fairly commonplace, the MinisForum BIOS has no controls to speak of, and the case is too small and proprietary for an aftermarket cooler.
- The vendor-provided firmware has a history of bugs. The most recent fuss being related to the 1.03 update breaking PCIe passthrough for virtualized setups (e.g. Proxmox) and widespread reports of bricked devices if you downgrade. Unfortunately, one of the first things I did after getting the box was to upgrade the firmware. This is still apparently broken at the time of this writing. Fortunately I haven't needed that feature yet.
- This post about thermal settings, which would pop up in basically every third search.
Unstable at any... nevermind π€£
I had read that post about a "temperature fix" several times, but initially wrote it off because of the way it was framed.
- I don't care how quiet or loud the machine is; I just want it to perform well.
- Increasing your CPU life by "800%" with this one weird trick comes off as obviously misguided.
But it did seem like the MinisForum BIOS might be overdoing things in the defaults. Given that there are no voltage controls (at least not without overclock settings, which I have absolutely no interest in touching), it was worth a shot trying to make the system less aggressive to see if it would be more stable.
Switching the power mode back to "balanced" (from performance) AND adding the 78 degree temperature limit seem to have returned the system to stability. I have not observed any performance drop as a result of the change. In fact, it seems like it's actually faster for real workloads (e.g. a 20 minute long killer process of mine now runs in 15 minutes).
I'm pretty annoyed at MinisForum and AMD, but I guess I shouldn't be too surprised. It's like a trope now that most x86 hardware is plagued by terribly written, proprietary firmware. That the MinisForum BIOS can, in a default configuration, result in system instability is unacceptable.
Given that the temperatures in the failing test were not at all unreasonable,
I can only assume that the "performance" power profile is responsible for the instability.
I'll still keep the TjMax capped at 78 anyways,
since it keeps fans quieter and actually kept a real workload moving faster.
Hopefully by the time I need a new desktop, we'll have more options for serious ARM hardware. And maybe in the interim we'll get a BIOS / firmware fix from MinisForum.
While I am pretty annoyed by this, I have to say that the physical construction of the box is EXCELLENT, and it's super easy to pop the guts out of the enclosure which is nice coming from the NUC. And having multiple NICs is fantastic! But shipping a system where one of the default BIOS profiles is unstable is really inexcusable. (And increasingly, I think shipping closed source firmware is an own goal, but I digress...)