Add vnic_small_pkt_perf test for ibmvnic small-packet performance - #3266
Add vnic_small_pkt_perf test for ibmvnic small-packet performance#3266FarooqAbdulla02 wants to merge 1 commit into
Conversation
Naresh-ibm
left a comment
There was a problem hiding this comment.
@FarooqAbdulla02 please attach both the distro run logs
| from avocado.utils.network.hosts import LocalHost | ||
| from avocado.utils.ssh import Session | ||
|
|
||
| _IPERF3_SERVER_LOG = '/tmp/iperf3_ibmvnic_perf_server.log' |
There was a problem hiding this comment.
@FarooqAbdulla02 is this log not required for our analysis post test run is done?
if needed then I suggest to copy inside other persistence folder as /tmp will get clear on reboot of OS
There was a problem hiding this comment.
@Naresh-ibm yes ,its not required post test as the summary of the run log were already available in log files.
| open SSH to peer, and start the iperf3 server on the peer. | ||
| """ | ||
| self.smm = SoftwareManager() | ||
| for pkg in ['iperf3', 'net-tools', 'ethtool']: |
There was a problem hiding this comment.
are these packages same for all the distros?
There was a problem hiding this comment.
@Naresh-ibm Have sepearated the packages according to Distro now.
Add a new Avocado test vnic_small_pkt_perf.py to validate the ibmvnic small-packet performance improvements patch series. Signed-off-by: Shaik Abdulla <abdulla1@linux.ibm.com>
76bf5ce to
6f91679
Compare
attached logs from both the distros |
latest SLES runs logsavocado run vnic_small_pkt_perf.py -m vnic_small_pkt_perf.py.data/vnic_small_pkt_perf.yaml --max-parallel-tasks=1 JOB ID : 29c219162b263b13bf888a5f99a9fea4438e980e latest RHEL run logsavocado run vnic_small_pkt_perf.py -m vnic_small_pkt_perf.py.data/vnic_small_pkt_perf.yaml --max-parallel-tasks=1 |
| scale_streams: 150 | ||
| scale_duration: 10 | ||
| burst_duration: 30 | ||
| burst_parallel: 8 |
There was a problem hiding this comment.
@FarooqAbdulla02 are these parameter holds the static values?
then can you please check if you can handle inside the .py file, just to reduce the yaml parameter
| for _pkg in _NCAT_LOCAL_PKGS: | ||
| if self.smm.check_installed(_pkg) or self.smm.install(_pkg): | ||
| self.ncat_cmd = 'ncat' | ||
| break |
There was a problem hiding this comment.
why are we breaking here, and what about the rest of the packages, are they not needed for this test
|
|
||
| if not wait.wait_for(self.networkinterface.is_link_up, timeout=120): | ||
| self.cancel("Interface '%s' link did not come up within 120 s" | ||
| % self.interface) |
There was a problem hiding this comment.
this should be self.fail, if the interfaces is not coming up
| % self.interface) | ||
|
|
||
| if self.networkinterface.ping_check(self.peer_ip, count=5) is not None: | ||
| self.cancel("No connectivity to peer %s" % self.peer_ip) |
| self.session = Session(self.peer_ip, user=self.peer_user, | ||
| password=self.peer_password) | ||
| if not self.session.connect(): | ||
| self.cancel("SSH connection to peer %s failed" % self.peer_ip) |
| ignore_status=True) | ||
| if output.exit_status != 0: | ||
| self.cancel("iperf3 could not be installed on peer %s" | ||
| % self.peer_ip) |
There was a problem hiding this comment.
same, test should fail, if not able to install or error out
| """ | ||
| if not self.session.connect(): | ||
| self.cancel("SSH session to peer %s could not be established" | ||
| % self.peer_ip) |
| """ | ||
| if not self.session.connect(): | ||
| self.cancel("SSH session to peer %s could not be established" | ||
| % self.peer_ip) |
| """ | ||
| if not self.session.connect(): | ||
| self.cancel("SSH session to peer %s could not be established" | ||
| % self.peer_ip) |
Add a new Avocado test vnic_small_pkt_perf.py to validate the ibmvnic small-packet performance improvements patch series.
Run logs
avocado run --max-parallel-tasks=1 vnic_small_pkt_perf.py -m vnic_small_pkt_perf.py.data/vnic_small_pkt_perf.yaml
JOB ID : 55a7333ad6b361d3dba33a4a05dffd9bd1f315a1
JOB LOG : /root/avocado-fvt-wrapper/results/job-2026-08-17T00.35-55a7333/job.log
(1/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_udp_stream_throughput;run-3d2f: STARTED
(1/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_udp_stream_throughput;run-3d2f: PASS (79.02 s)
(2/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_udp_rr;run-3d2f: STARTED
(2/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_udp_rr;run-3d2f: PASS (37.05 s)
(3/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_tcp_rr;run-3d2f: STARTED
(3/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_tcp_rr;run-3d2f: PASS (37.12 s)
(4/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_scale_150_sessions;run-3d2f: STARTED
(4/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_scale_150_sessions;run-3d2f: PASS (18.64 s)
(5/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_packet_integrity_dma_barrier;run-3d2f: STARTED
(5/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_packet_integrity_dma_barrier;run-3d2f: PASS (50.17 s)
(6/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_bql_limit_monitoring;run-3d2f: STARTED
(6/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_bql_limit_monitoring;run-3d2f: PASS (18.56 s)
(7/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_rx_pool_burst_no_drops;run-3d2f: STARTED
(7/7) vnic_small_pkt_perf.py:IbmvnicSmallPktPerf.test_rx_pool_burst_no_drops;run-3d2f: PASS (42.36 s)
Uploading vnic_small_pkt_perf_final_log.tar.gz…