Bugzilla – Bug 1215186
Consider applying this patch to Leap's kernel: bring back rep movsq for user access on CPUs without ERMS
Last modified: 2023-09-11 09:11:17 UTC
While Intel CPUs since Ivy Bridge support 'Enhanced REP MOVSB' command (ERMS), AMD CPUs prior to Zen 3 lack it. Zen 3 info: https://en.wikipedia.org/wiki/Zen_3. AMD Ryzen 5800X has ERMS, but AMD EPYC Milan 7R13 has not - what is going on there?! Checking for availability of ERMS: cat /proc/cpuinfo | grep erms Patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ca96b162bfd21a5d55e3cd6099e4ee357a0eeb68 , picked up by kernel 6.6, ILL backported to stable kernels (https://lkml.org/lkml/2023/9/8/926). News: https://www.phoronix.com/news/Linux-6.6-Optimize-Lacking-ERMS Discussion: https://stackoverflow.com/questions/27804852/assembly-rep-movs-mechanism https://stackoverflow.com/questions/43343231/enhanced-rep-movsb-for-memcpy Hint: usage of SSE2 instructions may bring better results.