On Thu, Aug 06, 2020 at 06:46:06PM +0300, Nir Soffer wrote:
Given the poor results, I suspect that that handles created using
same
connection share a lock. This also makes sense if connection abstract a
blocking socket.
Nice theory, but it didn't work. Again more handles = slower,
broadly speaking:
16 coroutines, 16 handles:
real 1m36.920s
user 0m0.112s
sys 0m1.641s
8 / 8:
real 1m27.946s
user 0m0.110s
sys 0m1.652s
4 / 4:
real 1m23.027s
user 0m0.100s
sys 0m1.600s
2 / 2:
real 1m6.089s
user 0m0.102s
sys 0m1.658s
1 / 1:
real 1m9.540s
user 0m0.083s
sys 0m1.669s
The patch I'm using now is attached.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/