Another Sizable Performance Optimization To Benefit Network Code With Linux 5.17

This completely separate optimization but that will also benefit the Linux 5.17 network code path is optimizing the x86_64 csum_partial() function. This latest optimization also comes from Google's Eric Dumazet.
This new optimization is working its way to the Linux kernel by way of x86/core changes being queued there. It's a rewritten/optimized csum_partial() function for x86/x86_64. That function is widely used by the kernel's network code for computing TCP checksums.
This new optimized version of the "heavily used" csum_partial() function is showing a "big reduction" in the cost by 50~80% across a range of processors.
See this patch for more details. Look for this optimized code in Linux 5.17 early next year.
61 Comments