Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network: Add netperf testing #5951

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

Yingshun
Copy link
Contributor

This PR adds:
VIRT-302078 - Do netperf stress test for iommu enabled interface
VIRT-301971 - Do netperf stress test for nat network interface

Test results:

_aarch64:_
 (01/18) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2guest.virtio_interface.virtio: PASS (106.22 s)
 (02/18) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2guest.virtio_interface.smmuv3: PASS (103.64 s)
 (03/18) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.host2guest.virtio_interface.virtio: PASS (96.00 s)
 (04/18) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.host2guest.virtio_interface.smmuv3: PASS (96.35 s)
 (05/18) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2host.virtio_interface.virtio: PASS (97.00 s)
 (06/18) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2host.virtio_interface.smmuv3: PASS (96.33 s)
 (07/18) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2guest.virtio_interface.virtio: PASS (105.31 s)
 (08/18) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2guest.virtio_interface.smmuv3: PASS (103.48 s)
 (09/18) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.host2guest.virtio_interface.virtio: PASS (96.39 s)
 (10/18) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.host2guest.virtio_interface.smmuv3: PASS (96.48 s)
 (11/18) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2host.virtio_interface.virtio: PASS (96.41 s)
 (12/18) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2host.virtio_interface.smmuv3: PASS (96.47 s)
 (13/18) type_specific.io-github-autotest-libvirt.virtual_network.netperf.nat_interface.TCP_STREAM.guest2guest: PASS (153.46 s)
 (14/18) type_specific.io-github-autotest-libvirt.virtual_network.netperf.nat_interface.TCP_STREAM.host2guest: PASS (104.20 s)
 (15/18) type_specific.io-github-autotest-libvirt.virtual_network.netperf.nat_interface.TCP_STREAM.guest2host: PASS (105.24 s)
 (16/18) type_specific.io-github-autotest-libvirt.virtual_network.netperf.nat_interface.UDP_STREAM.guest2guest: PASS (113.20 s)
 (17/18) type_specific.io-github-autotest-libvirt.virtual_network.netperf.nat_interface.UDP_STREAM.host2guest: PASS (103.37 s)
 (18/18) type_specific.io-github-autotest-libvirt.virtual_network.netperf.nat_interface.UDP_STREAM.guest2host: PASS (105.27 s)
RESULTS    : PASS 18 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0


_x86_64:_
 (01/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2guest.e1000e.virtio: STARTED
 (01/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2guest.e1000e.virtio: PASS (112.65 s)
 (02/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2guest.e1000e.intel: STARTED
 (02/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2guest.e1000e.intel: PASS (365.84 s)
 (03/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2guest.virtio_interface.virtio: STARTED
 (03/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2guest.virtio_interface.virtio: PASS (112.90 s)
 (04/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2guest.virtio_interface.intel: STARTED
 (04/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2guest.virtio_interface.intel: PASS (361.03 s)
 (05/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.host2guest.e1000e.virtio: STARTED
 (05/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.host2guest.e1000e.virtio: PASS (104.11 s)
 (06/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.host2guest.e1000e.intel: STARTED
 (06/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.host2guest.e1000e.intel: PASS (228.21 s)
 (07/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.host2guest.virtio_interface.virtio: STARTED
 (07/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.host2guest.virtio_interface.virtio: PASS (103.23 s)
 (08/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.host2guest.virtio_interface.intel: STARTED
 (08/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.host2guest.virtio_interface.intel: PASS (284.87 s)
 (09/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2host.e1000e.virtio: STARTED
 (09/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2host.e1000e.virtio: PASS (103.77 s)
 (10/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2host.e1000e.intel: STARTED
 (10/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2host.e1000e.intel: PASS (236.11 s)
 (11/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2host.virtio_interface.virtio: STARTED
 (11/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2host.virtio_interface.virtio: PASS (103.13 s)
 (12/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2host.virtio_interface.intel: STARTED
 (12/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.TCP_STREAM.guest2host.virtio_interface.intel: PASS (231.44 s)
 (13/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2guest.e1000e.virtio: STARTED
 (13/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2guest.e1000e.virtio: PASS (115.14 s)
 (14/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2guest.e1000e.intel: STARTED
 (14/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2guest.e1000e.intel: PASS (359.06 s)
 (15/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2guest.virtio_interface.virtio: STARTED
 (15/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2guest.virtio_interface.virtio: PASS (111.95 s)
 (16/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2guest.virtio_interface.intel: STARTED
 (16/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2guest.virtio_interface.intel: PASS (359.15 s)
 (17/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.host2guest.e1000e.virtio: STARTED
 (17/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.host2guest.e1000e.virtio: PASS (160.91 s)
 (18/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.host2guest.e1000e.intel: STARTED
 (18/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.host2guest.e1000e.intel: PASS (234.61 s)
 (19/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.host2guest.virtio_interface.virtio: STARTED
 (19/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.host2guest.virtio_interface.virtio: PASS (108.75 s)
 (20/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.host2guest.virtio_interface.intel: STARTED
 (20/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.host2guest.virtio_interface.intel: PASS (230.23 s)
 (21/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2host.e1000e.virtio: STARTED
 (21/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2host.e1000e.virtio: PASS (101.03 s)
 (22/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2host.e1000e.intel: STARTED
 (22/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2host.e1000e.intel: PASS (231.65 s)
 (23/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2host.virtio_interface.virtio: STARTED
 (23/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2host.virtio_interface.virtio: PASS (102.89 s)
 (24/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2host.virtio_interface.intel: STARTED
 (24/24) type_specific.io-github-autotest-libvirt.vIOMMU.netperf.UDP_STREAM.guest2host.virtio_interface.intel: PASS (236.53 s)
RESULTS    : PASS 24 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0


Also reproduced a known bug:
virtual_network.netperf.nat_interface.UDP_STREAM.guest2host: ERROR: Timeout expired while waiting for shell command to complete: 'netperf -H <serverip> -l 60 -C -c -t UDP_STREAM -- -R 1' (output: 'MIGRATED UDP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to <serverip> () port 0 AF_INET : histogram : interval : dir... (157.32 s)

@Yingshun
Copy link
Contributor Author

@yafu-1

try:
vm.wait_for_login().close()
except (remote.LoginError, aexpect.ShellError) as e:
LOG.error(f"Unable to access to {vm.name} - {e}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to add more detailed logs here, such as: 'Guest OS may have crashed.'"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated, txh!

This PR adds:
VIRT-302078 - Do netperf stress test for iommu enabled interface
VIRT-301971 - Do netperf stress test for nat network interface

Signed-off-by: Yingshun Cui <[email protected]>
Copy link
Contributor

@yafu-1 yafu-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Yingshun Yingshun requested a review from chloerh October 23, 2024 07:13
@chloerh chloerh merged commit 5cb1b77 into autotest:master Oct 24, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants