---
title: 4PMD性能测试
description: "| 用例编号 | 4.2.1 |  |  |  |  |  |  |  |  |"
url: https://www.hikunpeng.com/document/detail/zh/kunpengcpfs/testguide/tstg/kunpengcpfsovs_11_0018.html
sourcePath: /source/zh/kunpengcpfs/testguide/tstg/kunpengcpfsovs_11_0018.html
indexId: 130a81f6db79a418f2aefeb14ea749d6d1d44b4f883f361fa57fa6ba2df8ed9c65
---
# 4PMD性能测试

| 用例编号 | 4.2.1 |  |  |  |  |  |  |  |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 测试目的 | 接收端四个转发核的包率 |  |  |  |  |  |  |  |  |
| 测试组网 | 参见图1 |  |  |  |  |  |  |  |  |
| 预置条件 | 参见搭建测试环境 |  |  |  |  |  |  |  |  |
| 测试步骤 | 启动OVS服务。 1 service openvswitch start 配置启动参数。 1 ovs\-vsctl \-\-no\-wait set Open\_vSwitch . other\_config:dpdk\-init=true other\_config:dpdk\-socket\-mem="4096" other\_config:dpdk\-lcore\-mask="0x1F" other\_config:pmd\-cpu\-mask="0x1E" 重启OVS服务。 1 service openvswitch restart 设置虚拟机的队列。 1 virsh edit VM1 将下图标识的地方修改为8。 VM1到VM8逐一修改。 修改组网脚本。 修改网口的PCI地址（参见4，配置一次即可）。 修改网口的队列数，将下图标识的地址修改成8。 之后请参见1PMD性能测试进行测试。 | 1 | service openvswitch start | 1 | ovs\-vsctl \-\-no\-wait set Open\_vSwitch . other\_config:dpdk\-init=true other\_config:dpdk\-socket\-mem="4096" other\_config:dpdk\-lcore\-mask="0x1F" other\_config:pmd\-cpu\-mask="0x1E" | 1 | service openvswitch restart | 1 | virsh edit VM1 |
| 1 | service openvswitch start |  |  |  |  |  |  |  |  |
| 1 | ovs\-vsctl \-\-no\-wait set Open\_vSwitch . other\_config:dpdk\-init=true other\_config:dpdk\-socket\-mem="4096" other\_config:dpdk\-lcore\-mask="0x1F" other\_config:pmd\-cpu\-mask="0x1E" |  |  |  |  |  |  |  |  |
| 1 | service openvswitch restart |  |  |  |  |  |  |  |  |
| 1 | virsh edit VM1 |  |  |  |  |  |  |  |  |
| 预期结果 | 同CPU多次测试结果误差不超过10% |  |  |  |  |  |  |  |  |
| 测试结果 | 软卸载：533.55Wpps ovs+dpdk：303.51Wpps |  |  |  |  |  |  |  |  |
| 备 注 | \- |  |  |  |  |  |  |  |  |
