The Short Answer
| x86 (32-bit) | x64 (64-bit) | |
|---|---|---|
| Register width | 32 bits | 64 bits |
| Memory per process | Under 4 GB | Far beyond any server's RAM |
| Linux names | i386, i686 | x86_64, amd64 |
| Runs the other | No | Runs 32-bit code too |
Where the Names Come From
Intel's 8086 processor gave the family its name, and later chips such as the 80386 and 80486 kept the "86" ending. That is why 32-bit Linux packages are labeled i386 or i686. AMD designed the 64-bit extension and called it AMD64; Intel adopted it as Intel 64. Linux kernels and RPM packages call it x86_64, Debian and Ubuntu call it amd64, and many software vendors write x64. All three names mean the same architecture, and an amd64 package runs on Intel processors as well.
The 32-bit Memory Limit
A 32-bit address can count to 2 to the power of 32, which is 4 GiB. A 32-bit process can never address more than that, and on Linux part of the range is reserved for the kernel, so a process gets about 3 GB. An extension called PAE lets a 32-bit kernel use more physical RAM in total, but each process stays under the limit. A 64-bit system removes this ceiling for practical purposes, which is why databases, Java applications, and containers need it.
Check Your Server
uname -m
lscpu
getconf LONG_BIT
uname -m: prints the architecture of the running kernel, for examplex86_64oraarch64.lscpu: theArchitectureline names the CPU type, andCPU op-mode(s)shows whether it can run 32-bit and 64-bit code.getconf LONG_BIT: prints 64 on a 64-bit system.
To see the name your package manager uses:
dpkg --print-architecture # Debian and Ubuntu: amd64 or arm64
rpm --eval '%{_arch}' # AlmaLinux and Rocky Linux: x86_64 or aarch64
Names You Will See When Choosing a Package or Image
| Name | Meaning |
|---|---|
x86_64 | 64-bit Intel or AMD; kernel and RPM name |
amd64 | The same; Debian, Ubuntu, and Docker name |
i386, i686 | 32-bit x86 |
aarch64 | 64-bit ARM; kernel and RPM name |
arm64 | 64-bit ARM; Debian, Ubuntu, and Docker name |
Download the build that matches uname -m. Most current server distributions no longer publish 32-bit installation images, so on a server the choice is normally between x86_64 and ARM.
ARM Servers and aarch64
aarch64 is the 64-bit ARM architecture. It is not related to x86 and cannot run x86 binaries directly. Ubuntu, Debian, AlmaLinux, and Rocky Linux all publish ARM builds, and most open-source server software is available for it, but check vendor packages and container images before moving an application.
32-bit Software on a 64-bit Server
A 64-bit kernel runs 32-bit programs if their 32-bit libraries are installed. On Debian and Ubuntu, multiarch adds them:
sudo dpkg --add-architecture i386
sudo apt update
A 64-bit build of the program is the better choice when one exists.
Containers and Architecture
A container uses the host's kernel, so its image must match the host architecture. Many images on Docker Hub are published for both linux/amd64 and linux/arm64, and Docker picks the right one. The error exec format error usually means an image built for another architecture. Check an image with:
docker image inspect --format '{{.Architecture}}' nginx
Docker setup is covered in how to install Docker on Ubuntu. A virtual server shows the guest the architecture of the host processor; see what is KVM virtualization, and for the choice of system, Debian vs Ubuntu Server.