Introducing architecture variants: amd64v3 now available in Ubuntu 25.10

Ubuntu prides itself on being among the most compatible Linux distributions. Compatibility is often a conscious trade-off against bleeding-edge performance. In Ubuntu 25.10, we have added support for packages that target specific silicon variants, meaning you can have your cake and eat it too!

Back in 2023 I wrote an article talking about the history of the amd64/x86-64 architecture and described the “levels” x86-64-v2, -v3, and -v4 (often referred to as amd64v3, amd64v4, etc.). Since then, we’ve been working on a means to better exploit modern processors without compromising support for older hardware.

To do this, we have added the concept of an “architecture variant.” By making changes to dpkg, apt and Launchpad, we are able to build multiple versions of a package, each for a different level of the x86-64 architecture, meaning we can have packages that specifically target x86-64-v3, for example.

As a result, we’re very excited to share that in Ubuntu 25.10, some packages are available, on an opt-in basis, in their optimized form for the more modern x86-64-v3 architecture level.

What’s been done?

For 25.10 we were mostly focused on building the required infrastructure and have not yet rebuilt every package for the x84-64-v3 / amd64v3 architecture. Most packages in the main component have been rebuilt (around 2000 source packages). It is worth noting that these packages have not yet received the usual level of testing that most packages in Ubuntu receive. So while we expect them to work, early adopters might find some bugs.

For the upcoming 26.04 LTS release, we will rebuild amd64v3-enabled versions of all packages and test them in the same rigorous way as we test every other Ubuntu package.

Previous benchmarks we have run (where we rebuilt the entire archive for x86-64-v3) show that most packages show a slight (around 1%) performance improvement and some packages, mostly those that are somewhat numerical in nature, improve more than that.

Try it out

The vast majority of cloud instance types and machines manufactured within the last ten years will support x86-64-v3, and you can check for support on a machine like so:

$ ld.so --help | grep '\-v[0-9]'
x86-64-v4 (supported, searched)
x86-64-v3 (supported, searched)
x86-64-v2 (supported, searched)

If your machine is supported, and you’d like to try out the new packages, you can opt-in to the x86-64-v3-enabled packages. First, install the latest version of dpkg:

$ sudo apt update
$ sudo apt install dpkg

Then enable amd64v3 and update the packages, like so:

echo 'APT::Architecture-Variants "amd64v3";' | sudo tee /etc/apt/apt.conf.d/99enable-amd64v3
sudo apt update
sudo apt upgrade

Note that apt may print that it is “downgrading” these packages – this is just a cosmetic thing and will be fixed in 26.04 as well.

If you do install the available amd64v3 versions of packages, you will not be able to transfer your hard-drive/SSD to an older machine that does not support x86-64-v3. Usually, we try to ensure that moving drives between systems like this would work. For 26.04 LTS, we’ll be working on making this experience cleaner, and hopefully provide a method of recovering a system that is in this state.

What’s next?

We are very excited about the future of architecture variants and will keep you posted along the way. We hope that early adopters see some benefits of making the most of their hardware. Let us know how you get on!

20 Likes
1129 packages can be upgraded. Run 'apt list --upgradable' to see them.

Updated :innocent:

1 Like

And now the question is, won’t I be able to install normal binaries but only v3?

liviu@bobdenaut:~$ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu questing-security InRelease
Hit:2 https://brave-browser-apt-release.s3.brave.com stable InRelease                            
Hit:3 https://repo.librewolf.net librewolf InRelease                                             
Hit:4 https://ppa.launchpadcontent.net/kubuntu-ppa/backports/ubuntu questing InRelease           
Hit:5 https://packages.mozilla.org/apt mozilla InRelease                                         
Hit:6 http://archive.ubuntu.com/ubuntu questing InRelease                        
Hit:7 http://archive.ubuntu.com/ubuntu questing-updates InRelease
Hit:8 http://archive.ubuntu.com/ubuntu questing-backports InRelease
All packages are up to date.    
Notice: Skipping acquire of configured file 'main/binary-amd64v3/Packages' as repository 'https://packages.mozilla.org/apt mozilla InRelease' doesn't support architecture 'amd64v3'

I keep getting that notice from mozilla.

Ah no that message is just saying that the repo did not supply a binary-amd64v3 Packages file (unsurprisingly). apt has downloaded the amd64 Packages and will install packages from this (the message should not be displayed at the default verbosity level, I think Julian is planning to fix this).

1 Like

great!

and another one, I think ubuntu-drivers stopped working:

liviu@bobdenaut:~$ ubuntu-drivers list
liviu@bobdenaut:~$ ubuntu-drivers devices
liviu@bobdenaut:~$ 

[ 2224.783528] software-proper[8707]: segfault at 10 ip 000000000053d201 sp 00007fff6519c6c0 error 4 in python3.13[13d201,420000+340000] likely on CPU 4 (core 8, socket 0)
[ 2224.783548] Code: 2d f5 50 00 48 3d a0 d4 53 00 0f 85 c8 01 00 00 48 85 ff 0f 84 be 01 00 00 55 48 89 e5 48 83 ec 10 64 48 8b 04 25 e8 ff ff ff <48> 8b 40 10 48 8b 88 30 2a 00 00 48 89 f8 48 c1 e8 31 48 8b 94 c1

(post deleted by author)

I am getting this error when trying to upgrade to amd64v3:

Se encontraron errores al procesar:
 /tmp/apt-dpkg-install-AFnNVu/0288-librsvg2-common_2.60.0+dfsg-1build1_amd64v3.deb
Error: Sub-process /usr/bin/dpkg returned an error code (1)

We tried to reproduce this and it worked for us – could you file a bug with more details?

Installing this package works for me. Can you pastebin or something the full output?

I upgraded my packages, but got 2 errors. Both were easily fixed, but point to a build error?
librsvg2-common and libgphoto2-6t64 both complained about difference in /usr/share/doc/PKG/changelog.Debian.gz. Removing that file/renaming it to something else made it succeed.

dpkg: fout bij verwerken van archief /tmp/apt-dpkg-install-cH6afL/102-libgphoto2-6t64_2.5.31-4build1_amd64v3.deb (--unpack):
 poging tot overschrijven van gedeelde '/usr/share/doc/libgphoto2-6t64/changelog.Debian.gz', dat verschilt van andere exemplaren van pakket libgphoto2-6t64:
amd64

Sure!
Please tel me where to, thanks.

I’ve updated and everything is going well, very well. I haven’t had any error messages so far. But just in case, is there any way to check if everything is okay? Thanks.

This seems to work fine on Resolute too. Just in case someone is already testing.

1 Like

Is there any way I can check if ubuntu-drivers isn’t working because amd64v3 or not?

liviu@bobdenaut:~$ sudo ubuntu-drivers devices
[sudo: authenticate] Password: 
liviu@bobdenaut:~$ sudo ubuntu-drivers list
liviu@bobdenaut:~$ sudo ubuntu-drivers debug
=== log messages from detection ===
DEBUG:root:package_get_nv_allowing_driver(): unable to read /etc/custom_supported_gpus.json
DEBUG:root:package_get_nv_allowing_driver(): unable to read /etc/custom_supported_gpus.json
DEBUG:root:Loading custom detection plugin /usr/share/ubuntu-drivers-common/detect/arm-gles.py
DEBUG:root:plugin /usr/share/ubuntu-drivers-common/detect/arm-gles.py return value: None
DEBUG:root:Loading custom detection plugin /usr/share/ubuntu-drivers-common/detect/sl-modem.py
DEBUG:root:plugin /usr/share/ubuntu-drivers-common/detect/sl-modem.py return value: None
=== modaliases in the system ===
platform:acpi-cpufreq
acpi:INT33A1:PNP0D80:
platform:intel_rapl_msr
acpi:INTC1085:
acpi:USBC000:PNP0CA0:
acpi:PNP0C14:
wmi:05901221-D566-11D1-B2F0-00A0C9062910
wmi:0B3CBB35-E3C2-45ED-91C2-4C5A6D195D1C
wmi:97845ED0-4E6D-11DE-8A39-0800200C9A66
acpi:PNP0C0C:
acpi:ACPI000C:
platform:rtc-efi
acpi:ASUS2018:
wmi:A6FEA33E-DABF-46F5-BFC8-460D961BEC9F
wmi:2BC49DEF-7B15-4F05-8BB7-EE37B9547C0B
acpi:ASUS9001:
platform:coretemp
acpi:INTC1041:
acpi:PNP0C0E:
acpi:MSFT0101:
acpi:ACPI000E:
platform:efivars
wmi:88765ADC-4FFE-4824-A48C-C68BBD71821B
wmi:FEF38251-8214-4D1F-A98A-71A010EBFF7B
serio:ty01pr00id00ex00
input:b0011v0001p0002eAB41-e0,1,4,11,14,k71,72,73,74,75,76,77,79,7A,7B,7C,7D,7E,7F,80,8C,8E,8F,9B,9C,9D,9E,9F,A3,A4,A5,A6,AC,AD,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,D9,E2,ram4,l0,1,2,sfw
platform:asus-nb-wmi
input:b0019v0000p0000e0000-e0,1,4,14,k71,72,73,8C,94,95,96,98,A3,A4,A5,A6,A9,B7,B8,B9,CA,CB,D4,D7,E0,E1,E2,E3,E5,E6,ED,EE,F0,F7,F8,1D6,1E2,212,213,230,27A,ram4,lsfw
acpi:NVDA0820:
wmi:1F13AB7F-6220-4210-8F8E-8BB5E71EE969
platform:pcspkr
pci:v00008086d00007A3Dsv00000000sd00000000bc06sc04i00
pci:v000010ECd00008168sv00001043sd0000205Fbc02sc00i00
wmi:603E9613-EF25-4338-A3D0-C46177516DB7
pci:v00008086d0000A74Fsv00000000sd00000000bc08sc80i00
pci:v00008086d00007A0Csv00001043sd000014D3bc06sc01i00
acpi:PNP0C0A:
acpi:PNP0C0D:
acpi:PNP0103:
acpi:INTC1046:
pci:v00008086d0000A70Dsv00001043sd000014D3bc06sc04i00
pci:v000010DEd00002860sv00001043sd000014D3bc03sc00i00
pci:v000010DEd000022BDsv00001043sd000014D3bc04sc03i00
hdaudio:v10DE00A6r00100100a01
input:b0000v0000p0000e0000-e0,5,kramlsfw6,8,
pci:v00008086d00007A79sv00000000sd00000000bc0Csc80i00
acpi:CSC3551:
platform:pxa2xx-spi
spi:cs35l41-hda
platform:idma64
pci:v00008086d0000A71Dsv00001043sd000014D3bc11sc80i00
pci:v00008086d00007A70sv00008086sd00000094bc02sc80i00
pci:v00008086d00007A68sv00001043sd000014D3bc07sc80i00
mei::6861ec7b-d07a-4673-856c-7f22b4d55769:02:
mei::3c4852d6-d47b-4f46-b05e-b5edc1aa440e:01:
mei::dba4d603-d7ed-4931-8823-17ad585705d5:01:
mei::dd17041c-09ea-4b17-a271-5b989867ec65:02:
mei::082ee5a7-7c25-470a-9643-0c06f0466ea1:00:
mei::42b3ce2f-bd9f-485a-96ae-26406230b1ff:01:
mei::309dcde8-ccb1-4062-8f78-600115a34327:01:
mei::55213584-9a29-4916-badf-0fb7ed682aeb:02:
mei::8e6a6715-9abc-4043-88ef-9e39c6f63e0f:02:
mei::8c2f4425-77d6-4755-aca3-891fdbc66a58:01:
mei::fbf6fcf1-96cf-4e2e-a6a6-1bab8cbe36b1:01:
mei::b638ab7e-94e2-4ea2-a552-d1c54b627f04:01:
mei::5565a099-7fe2-45c1-a22b-d7e9dfea9a2e:01:
pci:v00008086d00007A44sv00000000sd00000000bc06sc04i00
pci:v00002646d00005017sv00002646sd00005017bc01sc08i02
pci:v00008086d00007A24sv00001043sd000014D3bc0Csc80i00
spi:spi-nor
pci:v00008086d00007A50sv00001043sd00001C9Fbc04sc03i80
hdaudio:v80862818r00100000a01
hdaudio:v10EC0294r00100004a01
input:b0000v0000p0000e0000-e0,5,kramlsfw4,
input:b0000v0000p0000e0000-e0,5,kramlsfw2,
pci:v00008086d0000A702sv00001043sd000014D3bc06sc00i00
pci:v00008086d00007A34sv00000000sd00000000bc06sc04i00
pci:v00001344d00005413sv00001344sd00002100bc01sc08i02
pci:v00008086d00007A4Csv00001043sd000014D3bc0Csc80i00
acpi:ASUF1205:PNP0C50:
hid:b0018g0004v00002808p00000106
input:b0018v2808p0106e0100-e0,1,2,4,k110,111,r0,1,8,B,am4,lsfw
input:b0018v2808p0106e0100-e0,1,3,4,k110,145,148,14A,14D,14E,14F,ra0,1,2F,35,36,37,39,m5,lsfw
pci:v00008086d00007A48sv00000000sd00000000bc06sc04i00
pci:v00008086d00001133sv00001043sd00001F02bc06sc04i00
pci:v00008086d00001134sv00001043sd00001F02bc0Csc03i40
pci:v00008086d00001135sv00000000sd00000000bc0Csc03i30
usb:v1D6Bp0002d0617dc09dsc00dp01ic09isc00ip00in00
usb:v1D6Bp0003d0617dc09dsc00dp03ic09isc00ip00in00
pci:v00008086d00007A30sv00000000sd00000000bc06sc04i00
pci:v00008086d00007A27sv00000000sd00000000bc05sc00i00
pci:v00008086d0000A788sv00001043sd000014D3bc03sc80i00
pci:v00008086d00007A60sv00001043sd0000201Fbc0Csc03i30
usb:v8087p0033d0000dcE0dsc01dp01icE0isc01ip01in00
usb:v8087p0033d0000dcE0dsc01dp01icE0isc01ip01in01
usb:v0B05p19B6d0316dc00dsc00dp00ic03isc01ip01in00
hid:b0003g0001v00000B05p000019B6
input:b0003v0B05p19B6e0110-e0,1,2,3,4,11,14,k71,72,73,74,75,77,79,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,8B,8C,8E,8F,90,94,95,96,98,9B,9C,9E,9F,A1,A3,A4,A5,A6,A7,A8,A9,AB,AC,AD,AE,B0,B1,B2,B3,B4,B5,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,CA,CB,CE,CF,D0,D1,D2,D4,D8,D9,DB,E0,E1,E4,E5,E6,EA,EB,F0,F1,F4,F5,F7,F8,100,110,111,112,113,114,161,162,166,16A,16E,172,174,176,177,178,179,17A,17B,17C,17D,17F,180,182,183,185,188,189,18C,18D,18E,18F,190,191,192,193,195,197,198,199,19A,19C,1A0,1A1,1A2,1A3,1A4,1A5,1A6,1A7,1A8,1A9,1AA,1AB,1AC,1AD,1AE,1AF,1B0,1B1,1B7,1BA,1D1,240,241,242,243,244,245,246,247,249,24A,24B,24C,24D,250,251,r0,1,6,8,B,C,a20,28,m4,l0,1,2,3,4,sfw
usb:v322Ep2122d1118dcEFdsc02dp01ic0Eisc02ip00in01
usb:v322Ep2122d1118dcEFdsc02dp01ic0Eisc01ip00in00
usb:v17EFp60D1d0100dc00dsc00dp00ic03isc01ip02in00
hid:b0003g0001v000017EFp000060D1
input:b0003v17EFp60D1e0110-e0,1,2,4,k110,111,112,113,114,r0,1,6,8,B,C,am4,lsfw
input:b0003v17EFp60D1e0110-e0,1,4,k74,8E,8F,ram4,lsfw
input:b0003v17EFp60D1e0110-e0,14,kramlsfw
input:b0003v17EFp60D1e0110-e0,1,2,3,4,k71,72,73,74,77,80,82,83,85,86,87,88,89,8A,8B,8C,8E,90,96,98,9B,9C,9E,9F,A1,A3,A4,A5,A6,A7,A8,A9,AB,AC,AD,AE,B1,B2,B5,CE,CF,D0,D1,D2,D4,D8,D9,DB,E0,E1,E4,E5,E6,EA,EB,F0,F1,F4,100,161,162,166,16A,16E,172,174,176,177,178,179,17A,17B,17C,17D,17F,180,182,183,185,188,189,18C,18D,18E,18F,190,191,192,193,195,197,198,199,19A,19C,1A0,1A1,1A2,1A3,1A4,1A5,1A6,1A7,1A8,1A9,1AA,1AB,1AC,1AD,1AE,1AF,1B0,1B1,1B7,1BA,240,241,242,243,244,245,246,247,249,24A,24B,24C,24D,250,251,r6,C,a20,m4,lsfw
pci:v00008086d00007A23sv00001043sd000014D3bc0Csc05i00
platform:iTCO_wdt
cpu:type:x86,ven0000fam0006mod00B7:feature:,0000,0001,0002,0003,0004,0005,0006,0007,0008,0009,000B,000C,000D,000E,000F,0010,0011,0013,0015,0016,0017,0018,0019,001A,001B,001C,001D,001F,002B,0034,003A,003B,003D,0068,006A,006B,006C,006D,006F,0070,0072,0074,0075,0076,0078,0079,007C,007F,0080,0081,0082,0083,0084,0085,0087,0088,0089,008B,008C,008D,008E,008F,0091,0093,0094,0095,0096,0097,0098,0099,009A,009B,009C,009D,009E,00C0,00C5,00C8,00E1,00E3,00EA,00F0,00F1,00F9,00FA,00FB,00FE,00FF,0100,0101,0102,0103,0111,0120,0121,0123,0125,0126,0127,0128,0129,012A,012D,0132,0133,0134,0137,0138,0139,013D,0140,0141,0142,0143,0164,0165,0166,016B,0171,0177,017B,0184,018B,0196,01C0,01C1,01C2,01C4,01C5,01C6,01C7,01C8,01C9,01CA,01CB,01CE,01CF,01D0,01D1,01D2,01D3,01D4,01D6,01D7,01F9,0202,0203,0204,0205,0207,0208,0209,020A,0216,0217,021B,021C,021F,0244,024A,024E,024F,0253,0254,025A,025B,025C,025D,025E,025F,0282,02A2,02A3,02AE
dmi:bvnAmericanMegatrendsInternational,LLC.:bvrG614JI.331:bd11/11/2024:br5.27:efr0.81:svnASUSTeKCOMPUTERINC.:pnROGStrixG614JI_G614JI:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnG614JI:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:sku:
acpi:LNXSYSTM:
acpi:LNXSYBUS:
acpi:ACPI0007:
acpi:PNP0C0F:
acpi:PNP0C02:
input:b0019v0000p0001e0000-e0,1,k74,8F,ramlsfw
acpi:INT340E:PNP0C02:
input:b0019v0000p0003e0000-e0,1,k8E,ramlsfw
acpi:PNP0A08:PNP0A03:
acpi:LNXPOWER:
acpi:LNXVIDEO:
input:b0019v0000p0006e0000-e0,1,kE0,E1,E3,F1,F2,F3,F4,F5,ramlsfw
acpi:ACPI0003:
acpi:ATK3001:PNP030B:
input:b0019v0000p0005e0000-e0,5,kramlsfw0,
acpi:INTC109C:PNP0C02:
acpi:PNP0100:
acpi:PNP0000:
acpi:PRP00001:PNP0A05:
acpi:PNP0C0B:
=== matching driver packages ===

(post deleted by author)

The exact same two errors for me. The one is a dependency for Gimp and Inkscape, the other for Skanlite (among others).

is there a specific flag or env for dpkg-buildpackage to build/rebuild package for amd64v3?