x86-64: memcpy performance reduce when running in virtual mechine

Florian Weimer fweimer@redhat.com
Mon Jan 11 15:09:34 GMT 2021

* Shuo Wang:

> The performance of memcpy 1024 has recovered. However, there is performance
> reduce in host. This is test result (cycle):
> 	                      memcpy_10	 memcpy_1k	 memcpy_10k	  memcpy_1m	  memcpy_10m
> before backport	             8	         34	        187	        130848	   2325409
> after backport	             8	         34	        182	        515156	   5282603
> Performance improvement	   0.00%	    0.00%	    2.67%	    -293.71%   -127.17%

I think this is expected because the large copies no longer stay within
the cache.  This is required to avoid blowing away the entire cache
contents for such large copies, negatively impacting whole system
performance.  This will of course not show up in a micro-benchmark.

Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill

More information about the Libc-alpha mailing list