NewsCrawler.org

Linux Kernel Prepares to Drop Its Last MMX-Optimized Code

The mainline Linux kernel is preparing to drop its last remaining MMX[1] optimization, a change expected to land in Linux 7.5, due out in 2027. Eric Biggers of Google has a patch ready that removes the MMX-optimized code from the kernel's software RAID[2] xor code. MMX is an instruction set Intel engineered in the late 1990s, present in processors such as the Intel Pentium MMX, Pentium II and AMD K6. Anyone still running such CPUs without SSE[3] or newer capabilities on Linux software RAID will fall back to the well-tested scalar code[4]. The patches sit in Andrew Morton's MM Git tree.

This RAID code was the only remaining MMX optimization in the kernel: MMX-optimized memory management code was removed back in 2021, and MMX optimizations for memcpy(), copy_page() and clear_page() had already been removed years ago by commit c6dbd3e5e69c ("x86/mmx_32: Remove X86_USE_3DNOW"). There are zero MMX optimizations for anything else, such as crypto or CRC, which left the RAID code as an outlier. The MMX-optimized XOR code was used only on 25-year-old 32-bit CPUs that lack SSE support, and only on systems that actually have a RAID array. Patch 3 of the series also cleans up the CPU feature checks in the RAID6 code.

Read the original phoronix.comDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page