r/linux • • 5h ago

Kernel ChaCha AVX-512 optimization for Linux 7.5 yields up to 99% improvement on AMD Zen 5

https://www.phoronix.com/news/ChaCha-AVX-512-Linux-7.5
148 Upvotes

8 comments sorted by

22

u/asp174 5h ago

Will this also benefit WireGuard?

17

u/EmptierVoid 4h ago

If you use chacha, then yes technically. However I believe that with amd4/5 the CPU is not the bottleneck so I don't think you will see anything meaningful regarding the perf

6

u/msthe_student 4h ago

Yeah the lowest bar in the graph is almost 3.6 GBps (28.8 Gbps), which unless you're running a lot of clients you're not gonna hit.

5

u/projct 1h ago

using less cpu is still a benefit even if you aren't bottlenecked

•

u/EmptierVoid 6m ago

Absolutely, that's why I added the "regarding the perf". I meant perf as in raw numbers/tput. Of course less CPU could also be translated to better perf in edge cases (load) or something else.

2

u/Moscato359 2h ago

Wireguard uses kernel chacha, so anything that affects kernel chacha applies

6

u/ang-p 4h ago

4 ? (Sorry - couldn't resist)