Arm has moved into servers: AWS Graviton, Ampere, Azure Cobalt, a Raspberry Pi on the shelf. The software that was built for x86-64 has not gone anywhere, and some of it never will be rebuilt: a vendor’s binary, an old image nobody dares touch, a tool whose source is lost.
On an Arm Linux machine, docker run --platform linux/amd64 already works. Underneath, the kernel hands every x86-64 program to QEMU’s user mode. It runs. It is slow. On a Mac there is Rosetta; on Graviton or a Pi there is nothing like it.
r64m is my attempt at that gap: an x86-64 emulator with a JIT for arm64 Linux, written in Rust, that takes QEMU’s place under Docker. It is an alpha (0.1.0). This post says what it does, how fast it is, what it cannot do, and what I would like to hear from you.
Repository: github.com/y6ui3i/r64m
What it does
You register r64m with the kernel once (binfmt_misc, the same place QEMU sits). From then on, x86-64 images run with nothing in the docker command that names it:
cargo xtask install
docker run --rm --platform linux/amd64 python:3.13 python3 -c 'print("hello from x86-64")'
Inside, r64m does one thing: on Arm, it behaves as x86-64.
- x86-64 instructions are translated to arm64 in blocks, the blocks are joined to one another, and translations can be kept from one process to the next.
- System calls go to the host’s kernel. The program’s memory is the host’s memory. Its threads are host threads.
- There is no machine: no kernel is booted, no device is emulated. The image’s files, processes and network are the container’s own.
Every result is checked against a real x86-64 CPU before it is timed.
How fast
Measured on AWS Graviton3 (c7g.large) on 2026-11-29, against QEMU 9.2.2 as Docker installs it, and against the same work built natively for arm64.

| work | native arm64 | r64m | QEMU 9.2.2 | r64m vs QEMU |
|---|---|---|---|---|
NetHack 3.6.7 built by make |
110 s | 380 s | 881 s | 2.3× as fast |
One compilation (cc1 -O2) |
2.06 s | 5.73 s | 14.40 s | 2.5× |
gcc compiling and linking a small program |
0.031 s | 0.236 s | 0.671 s | 2.8× |
python3 started and ended |
0.012 s | 0.111 s | 0.348 s | 3.1× |
| nginx + TLS + FastAPI: container start to first answer | 0.61 s | 1.68 s | 8.00 s | 4.8× |
| the same: a request on a new connection | 3.8 ms | 10.8 ms | 32.8 ms | 3.0× |
| the same: a request on a kept connection | 1.09 ms | 4.52 ms | 9.01 ms | 2.0× |
The aim is twice QEMU. Six of the seven are past it; the kept connection sits on the line.
Against native code the honest reading is: about three times as long on long-running work, and seven to nine times on very short processes, because each new process translates its program again from nothing. A translation cache (R64M_CACHE) is there for that case, and makes a repeated start about 1.5 times faster; these figures are without it.
QEMU is a great piece of software. It is not a wall you cannot get over, if you only have to do one thing.
What runs today
Official images, unchanged: Python 3.13, Node.js, a JVM (Temurin 21), Go, GCC on Alpine and on Debian, nginx, PostgreSQL, Redis, memcached, BusyBox, and nginx over TLS in front of FastAPI. About a hundred test cases from those images are compared with what a real x86-64 machine printed for the same commands, three ways (the interpreter, the JIT, and the JIT with every block checked against the interpreter), in CI on arm64 runners.
Being added this week: Perl, Apache httpd and HAProxy. MariaDB runs and answers as the real machine does, but one test run in fifteen did not end, so it is not on the list yet.
What it is not
- User mode only. Not a whole-machine emulator.
- Not a security boundary. The guest and r64m are one process. Isolation is the container’s job, as it is under QEMU’s user mode.
- x86-64-v1 only, for now: the integer instructions, the x87, SSE and SSE2. CPUID says so honestly, so a program that insists on AVX will refuse to start rather than crash.
- Arm64 Linux with 4 KB pages is the host it is made for.
- An alpha. Trying more images this week turned up a bug in where memory mappings are placed, which would have broken any long-running process; it was fixed the same day. One known bug with the JVM under a non-default option is still open. Expect more of these. Each one becomes a test.
How it differs from the others
- QEMU user mode runs everything, on everything. r64m runs one pair of architectures and can cut corners QEMU cannot.
- FEX-Emu and box64 are fast and well made, and lean toward games and desktop programs; box64 swaps in native libraries where it can. r64m swaps nothing: the image runs as it is, and is held to the real CPU’s results.
- Rosetta 2 is faster than all of us, where Apple’s hardware is.
The seat r64m is after is narrow on purpose: x86-64 containers on Arm Linux servers.
Where it is going
The roadmap has three stages.
- Trust: the first generation of x86-64 software should need no x86 machine kept for it. More images, long runs, a list of what is known to work.
- Speed: closer to native. The measurements say where the time goes.
- Breadth: x86-64-v2 (SSE3 to SSE4.2, POPCNT), then AES-NI and PCLMULQDQ, which Arm has nearly one for one.
Every experiment is written down before it is run, with its result after, whether it worked or not: docs/experiments.md.
What I would like from you
- What would you run? If you are on Arm and something of yours is x86-64 only, tell me what it is. One line is enough.
- Try your image. Did it run? Did it not? The image’s name and the command are all I need.
- What do you wish it did?
All three go here: github.com/y6ui3i/r64m/discussions.
Keep your software. Change the CPU underneath it.


コメント