Andreas Hollmann
2007-Oct-05 00:17 UTC
[Xen-users] HVM - Windows XP - high UDP package loss
Hi, I''m using Fedora 7 with the latest XEN kernel and I did some network benchmarks with iperf 2.02 and NETIO 1.26. The HVM domain uses 2 vcpus and it is the only DomU on this machine. I was interested in the network performance of a HVM domain in which Windows XP runs. At first I tested the TCP throughput which was relatively low, compared to a non emulated network devices. ------------------------------------------------------------ Client connecting to 192.168.1.222, TCP port 5001 TCP window size: 16.0 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.1.122 port 43748 connected with 192.168.1.222 port 5001 [ 3] 0.0- 1.0 sec 3.06 MBytes 25.7 Mbits/sec ... [ 3] 0.0-60.0 sec 177 MBytes 24.8 Mbits/sec After that I tested UDP performance and noticed a high package loss, but only in one direction. When DomainU is sending data to Domain0 all packages are received. In the other direction many packages are getting lost. ( When DomU is receiving data. ) C:\Program Files\iperf-2.0.2\bin>iperf -u -c 192.168.1.122 -r -L 22222 -i 0.5 -b 10m ------------------------------------------------------------ Server listening on UDP port 22222 Receiving 1470 byte datagrams UDP buffer size: 8.00 KByte (default) ------------------------------------------------------------ ------------------------------------------------------------ Client connecting to 192.168.1.122, UDP port 5001 Sending 1470 byte datagrams UDP buffer size: 8.00 KByte (default) ------------------------------------------------------------ [ 4] local 192.168.1.222 port 1170 connected with 192.168.1.122 port 5001 [ 4] 0.0- 0.5 sec 590 KBytes 9.67 Mbits/sec ... [ 4] 0.0-10.0 sec 11.8 MBytes 9.93 Mbits/sec [ 4] Sent 8444 datagrams [ 4] Server Report: [ 4] 0.0-10.0 sec 11.8 MBytes 9.93 Mbits/sec 0.288 ms 0/ 8443 (0%) [ 4] 0.0-10.0 sec 1 datagrams received out-of-order [ 3] local 192.168.1.222 port 22222 connected with 192.168.1.122 port 32892 [ 3] 0.0- 0.5 sec 527 KBytes 8.63 Mbits/sec 0.537 ms 66/ 433 (15%) [ 3] 0.5- 1.0 sec 553 KBytes 9.06 Mbits/sec 0.420 ms 40/ 425 (9.4%) [ 3] 1.0- 1.5 sec 597 KBytes 9.78 Mbits/sec 0.467 ms 10/ 426 (2.3%) [ 3] 1.5- 2.0 sec 548 KBytes 8.98 Mbits/sec 0.538 ms 40/ 422 (9.5%) [ 3] 2.0- 2.5 sec 561 KBytes 9.20 Mbits/sec 0.601 ms 35/ 426 (8.2%) [ 3] 2.5- 3.0 sec 594 KBytes 9.74 Mbits/sec 0.466 ms 11/ 425 (2.6%) [ 3] 3.0- 3.5 sec 223 KBytes 3.65 Mbits/sec 1.498 ms 264/ 419 (63%) [ 3] 3.5- 4.0 sec 510 KBytes 8.35 Mbits/sec 3.764 ms 70/ 425 (16%) [ 3] 4.0- 4.5 sec 596 KBytes 9.76 Mbits/sec 0.466 ms 10/ 425 (2.4%) [ 3] 4.5- 5.0 sec 599 KBytes 9.81 Mbits/sec 0.795 ms 9/ 426 (2.1%) [ 3] 5.0- 5.5 sec 594 KBytes 9.74 Mbits/sec 0.428 ms 10/ 424 (2.4%) [ 3] 5.5- 6.0 sec 567 KBytes 9.29 Mbits/sec 0.778 ms 31/ 426 (7.3%) [ 3] 6.0- 6.5 sec 550 KBytes 9.01 Mbits/sec 0.519 ms 42/ 425 (9.9%) [ 3] 6.5- 7.0 sec 591 KBytes 9.69 Mbits/sec 0.874 ms 11/ 423 (2.6%) [ 3] 7.0- 7.5 sec 530 KBytes 8.68 Mbits/sec 0.496 ms 56/ 425 (13%) [ 3] 7.5- 8.0 sec 600 KBytes 9.83 Mbits/sec 0.410 ms 10/ 428 (2.3%) [ 3] 8.0- 8.5 sec 541 KBytes 8.87 Mbits/sec 0.695 ms 48/ 425 (11%) [ 3] 8.5- 9.0 sec 589 KBytes 9.64 Mbits/sec 0.443 ms 15/ 425 (3.5%) [ 3] 9.0- 9.5 sec 587 KBytes 9.62 Mbits/sec 0.874 ms 16/ 425 (3.8%) [ 3] 9.5-10.0 sec 556 KBytes 9.10 Mbits/sec 0.733 ms 30/ 417 (7.2%) [ 3] 0.0-10.2 sec 10.8 MBytes 8.81 Mbits/sec 16.553 ms 824/ 8496 (9.7%) [root@localhost ~]# iperf -u -i 0.5 -s -b 10m WARNING: option -b is not valid for server mode ------------------------------------------------------------ Server listening on UDP port 5001 Receiving 1470 byte datagrams UDP buffer size: 108 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.1.122 port 5001 connected with 192.168.1.222 port 1170 [ 3] 0.0- 0.5 sec 589 KBytes 9.64 Mbits/sec 0.283 ms 0/ 410 (0%) [ 3] 0.5- 1.0 sec 607 KBytes 9.95 Mbits/sec 0.182 ms 0/ 423 (0%) [ 3] 1.0- 1.5 sec 612 KBytes 10.0 Mbits/sec 0.457 ms 0/ 426 (0%) [ 3] 1.5- 2.0 sec 609 KBytes 9.97 Mbits/sec 0.251 ms 0/ 424 (0%) [ 3] 2.0- 2.5 sec 609 KBytes 9.97 Mbits/sec 0.444 ms 0/ 424 (0%) [ 3] 2.5- 3.0 sec 609 KBytes 9.97 Mbits/sec 0.194 ms 0/ 424 (0%) [ 3] 3.0- 3.5 sec 603 KBytes 9.88 Mbits/sec 0.525 ms 0/ 420 (0%) [ 3] 3.5- 4.0 sec 612 KBytes 10.0 Mbits/sec 0.167 ms 0/ 426 (0%) [ 3] 4.0- 4.5 sec 597 KBytes 9.78 Mbits/sec 0.427 ms 0/ 416 (0%) [ 3] 4.5- 5.0 sec 599 KBytes 9.81 Mbits/sec 0.506 ms 0/ 417 (0%) [ 3] 5.0- 5.5 sec 607 KBytes 9.95 Mbits/sec 0.412 ms 0/ 423 (0%) [ 3] 5.5- 6.0 sec 612 KBytes 10.0 Mbits/sec 0.248 ms 0/ 426 (0%) [ 3] 6.0- 6.5 sec 603 KBytes 9.88 Mbits/sec 0.217 ms 0/ 420 (0%) [ 3] 6.5- 7.0 sec 610 KBytes 10.0 Mbits/sec 0.372 ms 0/ 425 (0%) [ 3] 7.0- 7.5 sec 610 KBytes 10.0 Mbits/sec 0.190 ms 0/ 425 (0%) [ 3] 7.5- 8.0 sec 609 KBytes 9.97 Mbits/sec 0.260 ms 0/ 424 (0%) [ 3] 8.0- 8.5 sec 607 KBytes 9.95 Mbits/sec 0.258 ms 0/ 423 (0%) [ 3] 8.5- 9.0 sec 607 KBytes 9.95 Mbits/sec 0.263 ms 0/ 423 (0%) [ 3] 9.0- 9.5 sec 601 KBytes 9.85 Mbits/sec 0.268 ms 0/ 419 (0%) [ 3] 9.5-10.0 sec 609 KBytes 9.97 Mbits/sec 0.180 ms 0/ 424 (0%) [ 3] 0.0-10.0 sec 11.8 MBytes 9.93 Mbits/sec 0.289 ms 0/ 8443 (0%) [ 3] 0.0-10.0 sec 1 datagrams received out-of-order ------------------------------------------------------------ Client connecting to 192.168.1.222, UDP port 22222 Sending 1470 byte datagrams UDP buffer size: 108 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.1.122 port 32892 connected with 192.168.1.222 port 22222 [ 3] 0.0- 0.5 sec 612 KBytes 10.0 Mbits/sec ... [ 3] 0.0-10.0 sec 11.9 MBytes 9.99 Mbits/sec [ 3] Sent 8496 datagrams [ 3] Server Report: [ 3] 0.0-10.2 sec 10.8 MBytes 8.81 Mbits/sec 16.552 ms 824/ 8496 (9.7%) ----------------------------------------------------------------------------------------------- [root@localhost xenconf]# xm info host : localhost.localdomain release : 2.6.20-2936.fc7xen version : #1 SMP Fri Sep 21 12:07:35 EDT 2007 machine : i686 nr_cpus : 4 nr_nodes : 1 sockets_per_node : 1 cores_per_socket : 4 threads_per_core : 1 cpu_mhz : 2397 hw_caps : bfebfbff:20000000:00000000:00000140:0000e3bd:00000000:00000001 total_memory : 2029 free_memory : 3 xen_major : 3 xen_minor : 1 xen_extra : .0-rc7-2936.fc7 xen_caps : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=0xf5800000 xen_changeset : unavailable cc_compiler : gcc version 4.1.2 20070502 (Red Hat 4.1.2-12) cc_compile_by : kojibuilder cc_compile_domain : (none) cc_compile_date : Fri Sep 21 12:06:08 EDT 2007 xend_config_format : 4 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andreas Hollmann
2007-Oct-05 08:32 UTC
[Xen-users] HVM - Windows XP - high UDP package loss
Hi, I''m using Fedora 7 with the latest XEN kernel and I did some network benchmarks with iperf 2.02 and NETIO 1.26. The HVM domain uses 2 vcpus and it is the only DomU on this machine. I was interested in the network performance of a HVM domain in which Windows XP runs. At first I tested the TCP throughput which was relatively low, compared to a non emulated network device. ------------------------------------------------------------ Client connecting to 192.168.1.222, TCP port 5001 TCP window size: 16.0 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.1.122 port 43748 connected with 192.168.1.222 port 5001 [ 3] 0.0- 1.0 sec 3.06 MBytes 25.7 Mbits/sec ... [ 3] 0.0-60.0 sec 177 MBytes 24.8 Mbits/sec After that I tested UDP performance and noticed a high package loss, but only in one direction. When DomainU is sending data to Domain0 all packages are received. In the other direction many packages are getting lost. ( When DomU is receiving data. ) C:\Program Files\iperf-2.0.2\bin>iperf -u -c 192.168.1.122 -r -L 22222 -i 0.5 -b 10m ------------------------------------------------------------ Server listening on UDP port 22222 Receiving 1470 byte datagrams UDP buffer size: 8.00 KByte (default) ------------------------------------------------------------ ------------------------------------------------------------ Client connecting to 192.168.1.122, UDP port 5001 Sending 1470 byte datagrams UDP buffer size: 8.00 KByte (default) ------------------------------------------------------------ [ 4] local 192.168.1.222 port 1170 connected with 192.168.1.122 port 5001 [ 4] 0.0- 0.5 sec 590 KBytes 9.67 Mbits/sec ... [ 4] 0.0-10.0 sec 11.8 MBytes 9.93 Mbits/sec [ 4] Sent 8444 datagrams [ 4] Server Report: [ 4] 0.0-10.0 sec 11.8 MBytes 9.93 Mbits/sec 0.288 ms 0/ 8443 (0%) [ 4] 0.0-10.0 sec 1 datagrams received out-of-order [ 3] local 192.168.1.222 port 22222 connected with 192.168.1.122 port 32892 [ 3] 0.0- 0.5 sec 527 KBytes 8.63 Mbits/sec 0.537 ms 66/ 433 (15%) [ 3] 0.5- 1.0 sec 553 KBytes 9.06 Mbits/sec 0.420 ms 40/ 425 (9.4%) [ 3] 1.0- 1.5 sec 597 KBytes 9.78 Mbits/sec 0.467 ms 10/ 426 (2.3%) [ 3] 1.5- 2.0 sec 548 KBytes 8.98 Mbits/sec 0.538 ms 40/ 422 (9.5%) [ 3] 2.0- 2.5 sec 561 KBytes 9.20 Mbits/sec 0.601 ms 35/ 426 (8.2%) [ 3] 2.5- 3.0 sec 594 KBytes 9.74 Mbits/sec 0.466 ms 11/ 425 (2.6%) [ 3] 3.0- 3.5 sec 223 KBytes 3.65 Mbits/sec 1.498 ms 264/ 419 (63%) [ 3] 3.5- 4.0 sec 510 KBytes 8.35 Mbits/sec 3.764 ms 70/ 425 (16%) [ 3] 4.0- 4.5 sec 596 KBytes 9.76 Mbits/sec 0.466 ms 10/ 425 (2.4%) [ 3] 4.5- 5.0 sec 599 KBytes 9.81 Mbits/sec 0.795 ms 9/ 426 (2.1%) [ 3] 5.0- 5.5 sec 594 KBytes 9.74 Mbits/sec 0.428 ms 10/ 424 (2.4%) [ 3] 5.5- 6.0 sec 567 KBytes 9.29 Mbits/sec 0.778 ms 31/ 426 (7.3%) [ 3] 6.0- 6.5 sec 550 KBytes 9.01 Mbits/sec 0.519 ms 42/ 425 (9.9%) [ 3] 6.5- 7.0 sec 591 KBytes 9.69 Mbits/sec 0.874 ms 11/ 423 (2.6%) [ 3] 7.0- 7.5 sec 530 KBytes 8.68 Mbits/sec 0.496 ms 56/ 425 (13%) [ 3] 7.5- 8.0 sec 600 KBytes 9.83 Mbits/sec 0.410 ms 10/ 428 (2.3%) [ 3] 8.0- 8.5 sec 541 KBytes 8.87 Mbits/sec 0.695 ms 48/ 425 (11%) [ 3] 8.5- 9.0 sec 589 KBytes 9.64 Mbits/sec 0.443 ms 15/ 425 (3.5%) [ 3] 9.0- 9.5 sec 587 KBytes 9.62 Mbits/sec 0.874 ms 16/ 425 (3.8%) [ 3] 9.5-10.0 sec 556 KBytes 9.10 Mbits/sec 0.733 ms 30/ 417 (7.2%) [ 3] 0.0-10.2 sec 10.8 MBytes 8.81 Mbits/sec 16.553 ms 824/ 8496 (9.7%) [root@localhost ~]# iperf -u -i 0.5 -s -b 10m WARNING: option -b is not valid for server mode ------------------------------------------------------------ Server listening on UDP port 5001 Receiving 1470 byte datagrams UDP buffer size: 108 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.1.122 port 5001 connected with 192.168.1.222 port 1170 [ 3] 0.0- 0.5 sec 589 KBytes 9.64 Mbits/sec 0.283 ms 0/ 410 (0%) [ 3] 0.5- 1.0 sec 607 KBytes 9.95 Mbits/sec 0.182 ms 0/ 423 (0%) [ 3] 1.0- 1.5 sec 612 KBytes 10.0 Mbits/sec 0.457 ms 0/ 426 (0%) [ 3] 1.5- 2.0 sec 609 KBytes 9.97 Mbits/sec 0.251 ms 0/ 424 (0%) [ 3] 2.0- 2.5 sec 609 KBytes 9.97 Mbits/sec 0.444 ms 0/ 424 (0%) [ 3] 2.5- 3.0 sec 609 KBytes 9.97 Mbits/sec 0.194 ms 0/ 424 (0%) [ 3] 3.0- 3.5 sec 603 KBytes 9.88 Mbits/sec 0.525 ms 0/ 420 (0%) [ 3] 3.5- 4.0 sec 612 KBytes 10.0 Mbits/sec 0.167 ms 0/ 426 (0%) [ 3] 4.0- 4.5 sec 597 KBytes 9.78 Mbits/sec 0.427 ms 0/ 416 (0%) [ 3] 4.5- 5.0 sec 599 KBytes 9.81 Mbits/sec 0.506 ms 0/ 417 (0%) [ 3] 5.0- 5.5 sec 607 KBytes 9.95 Mbits/sec 0.412 ms 0/ 423 (0%) [ 3] 5.5- 6.0 sec 612 KBytes 10.0 Mbits/sec 0.248 ms 0/ 426 (0%) [ 3] 6.0- 6.5 sec 603 KBytes 9.88 Mbits/sec 0.217 ms 0/ 420 (0%) [ 3] 6.5- 7.0 sec 610 KBytes 10.0 Mbits/sec 0.372 ms 0/ 425 (0%) [ 3] 7.0- 7.5 sec 610 KBytes 10.0 Mbits/sec 0.190 ms 0/ 425 (0%) [ 3] 7.5- 8.0 sec 609 KBytes 9.97 Mbits/sec 0.260 ms 0/ 424 (0%) [ 3] 8.0- 8.5 sec 607 KBytes 9.95 Mbits/sec 0.258 ms 0/ 423 (0%) [ 3] 8.5- 9.0 sec 607 KBytes 9.95 Mbits/sec 0.263 ms 0/ 423 (0%) [ 3] 9.0- 9.5 sec 601 KBytes 9.85 Mbits/sec 0.268 ms 0/ 419 (0%) [ 3] 9.5-10.0 sec 609 KBytes 9.97 Mbits/sec 0.180 ms 0/ 424 (0%) [ 3] 0.0-10.0 sec 11.8 MBytes 9.93 Mbits/sec 0.289 ms 0/ 8443 (0%) [ 3] 0.0-10.0 sec 1 datagrams received out-of-order ------------------------------------------------------------ Client connecting to 192.168.1.222, UDP port 22222 Sending 1470 byte datagrams UDP buffer size: 108 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.1.122 port 32892 connected with 192.168.1.222 port 22222 [ 3] 0.0- 0.5 sec 612 KBytes 10.0 Mbits/sec ... [ 3] 0.0-10.0 sec 11.9 MBytes 9.99 Mbits/sec [ 3] Sent 8496 datagrams [ 3] Server Report: [ 3] 0.0-10.2 sec 10.8 MBytes 8.81 Mbits/sec 16.552 ms 824/ 8496 (9.7%) ----------------------------------------------------------------------------------------------- [root@localhost xenconf]# xm info host : localhost.localdomain release : 2.6.20-2936.fc7xen version : #1 SMP Fri Sep 21 12:07:35 EDT 2007 machine : i686 nr_cpus : 4 nr_nodes : 1 sockets_per_node : 1 cores_per_socket : 4 threads_per_core : 1 cpu_mhz : 2397 hw_caps : bfebfbff:20000000:00000000:00000140:0000e3bd:00000000:00000001 total_memory : 2029 free_memory : 3 xen_major : 3 xen_minor : 1 xen_extra : .0-rc7-2936.fc7 xen_caps : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=0xf5800000 xen_changeset : unavailable cc_compiler : gcc version 4.1.2 20070502 (Red Hat 4.1.2-12) cc_compile_by : kojibuilder cc_compile_domain : (none) cc_compile_date : Fri Sep 21 12:06:08 EDT 2007 xend_config_format : 4 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users