Join Nostr
2025-05-27 07:25:24 UTC

Thorsten Leemhuis (acct. 1/4) on Nostr: A option to optimize the code for the local CPU was merged for #Linux 6.16: To quote: ...

A option to optimize the code for the local CPU was merged for #Linux 6.16:

https://git.kernel.org/torvalds/c/ea1dcca1de129dfdf145338a868648bc0e24717c

To quote: '"Add a 'native' option that allows users to build an optimized kernel for their local machine (i.e. the machine which is used to build the kernel) by passing '-march=native' to CFLAGS.

The idea comes from Linus' reply to Arnd's initial proposal:

https://lore.kernel.org/all/CAHk-=wji1sV93yKbc==Z7OSSHBiDE=LAdG_d5Y-zPBrnSs0k2A@mail.gmail.com/

Here are some numbers comparing 'generic' to 'native' on a Skylake dual-core laptop (generic --> native) […]"'

Note, the author tried in on a different machine later, and there it made no real difference:

https://lore.kernel.org/all/b67fad41-3849-446e-8982-1485f42e61eb@mailbox.org/

#kernel #LinuxKernel #Linux616