On 2 February 2022, Raspberry Pi released the 64-bit version of Raspberry Pi OS as a normal release. It had been in beta since 2020. The 32-bit version is still the default, but the 64-bit image is now an official choice in Raspberry Pi Imager. (Tom’s Hardware report)
I tried the beta in 2020 and stayed on 32-bit for my main server Pi. Now I am looking at it again.
The 64-bit OS needs a 64-bit CPU: Pi 3, Pi 3B+, Pi 4, Pi 400, Compute Module 3 and 4, and Pi Zero 2 W. The Pi 1, early Pi 2 boards, Pi Zero and Zero W are 32-bit only.
Why I want it
Docker images, mostly. Many tools now publish arm64 builds first, and more and more images on Docker Hub have linux/arm64 but no linux/arm/v7. On the 8 GB Pi 4 it also means a single process can use more than 3 GB of RAM. Some code is faster on 64-bit, but for normal tasks I do not expect a big difference. I have not measured it.
Why you might stay on 32-bit
64-bit programs use a bit more memory, which matters on a Pi with 1 GB or less. A closed-source binary that only exists for armhf keeps you on 32-bit. On the desktop, the 64-bit Chromium does not include Widevine at release, so some streaming video sites do not work. And if the Pi works and you need nothing new, there is no reason to touch it.
Check what you run now
uname -m # aarch64 = 64-bit kernel, armv7l = 32-bit kernel
dpkg --print-architecture # arm64 or armhf (the userland)
getconf LONG_BIT
On a Pi 4, the 32-bit OS may already run a 64-bit kernel with a 32-bit userland. uname -m then shows aarch64 but dpkg shows armhf. For software, the userland is what matters.
My plan for the server Pi
There is no supported in-place upgrade from 32-bit to 64-bit, so it is a fresh install.
- Write down what runs:
systemctl list-units --type=service --state=running,crontab -l,docker ps. - Back up
/etc, home directories and data volumes. Dump the databases. - Flash the 64-bit image to a new SSD. The old disk stays untouched as a fallback.
- Install packages and restore config files one by one. Copying all of
/etcover is a bad idea, because some files differ between the two systems. - Check that every Docker image has an arm64 variant, then pull:
docker manifest inspect eclipse-mosquitto:2 | grep architecture
docker compose pull
Then run both for a day if possible, and switch. New installs on a Pi 3, 4 or Zero 2 W get 64-bit from now on.