Hi Lawrence

I think you wanted to set the rxq affinity in a single command.
Here is a simplified version for illustration.

darrell@prmh-nsx-perf-server125:~/ovs/ovs_master$ sudo ovs-appctl 
dpif-netdev/pmd-rxq-showpmd thread numa_id 0 core_id 0:
        isolated : false
        port: dpdk0     queue-id: 0
pmd thread numa_id 1 core_id 1:
        isolated : false

pmd thread numa_id 0 core_id 2:
        isolated : false
        port: dpdk1     queue-id: 0
pmd thread numa_id 1 core_id 3:
        isolated : false

darrell@prmh-nsx-perf-server125:~/ovs/ovs_master$ sudo ovs-vsctl set interface 
dpdk0 other_config:pmd-rxq-affinity="0:0,1:2,2:0,3:2,4:0,5:2,6:0,7:2"

darrell@prmh-nsx-perf-server125:~/ovs/ovs_master$ sudo ovs-appctl 
dpif-netdev/pmd-rxq-show
pmd thread numa_id 0 core_id 0:
        isolated : true
        port: dpdk0     queue-id: 0 2 4 6
pmd thread numa_id 1 core_id 1:
        isolated : false
        port: dpdk1     queue-id: 0
pmd thread numa_id 0 core_id 2:
        isolated : true
        port: dpdk0     queue-id: 1 3 5 7
pmd thread numa_id 1 core_id 3:
        isolated : false

Thanks Darrell



On 9/7/17, 5:41 AM, "[email protected] on behalf of 王志克" 
<[email protected] on behalf of [email protected]> wrote:

    Hi,
    
    Please see below log:
    
    It seems no way to set pmd-rxq-affinity for multiple queues to 2 pmd. I 
think it is a bug.
    
    [root@A01-R08-I24-169 wangzhike]# ovs-appctl dpif-netdev/pmd-rxq-show
    pmd thread numa_id 0 core_id 4:
             isolated : false
             port: dpdk0      queue-id: 3 7
             port: port-ve54hf69ys      queue-id: 0
    pmd thread numa_id 0 core_id 36:
             isolated : false
             port: dpdk0      queue-id: 1 5
    pmd thread numa_id 1 core_id 20:
             isolated : true
             port: dpdk0      queue-id: 0 2 4 6
    pmd thread numa_id 1 core_id 52:
             isolated : false
             port: port-6s9isqsttp       queue-id: 0
             port: port-b1ri1292y7      queue-id: 0
             port: port-l8n2dvgyij        queue-id: 0
    [root@A01-R08-I24-169 wangzhike]# ovs-vsctl set interface dpdk0 
other_config:pmd-rxq-affinity="1:52,3:52,5:52,7:52"
    [root@A01-R08-I24-169 wangzhike]# ovs-appctl dpif-netdev/pmd-rxq-show
    pmd thread numa_id 0 core_id 4:
             isolated : false
             port: dpdk0      queue-id: 2 6
             port: port-ve54hf69ys      queue-id: 0
    pmd thread numa_id 0 core_id 36:
             isolated : false
             port: dpdk0      queue-id: 0 4
    pmd thread numa_id 1 core_id 20:
             isolated : false
             port: port-6s9isqsttp       queue-id: 0
             port: port-b1ri1292y7      queue-id: 0
             port: port-l8n2dvgyij        queue-id: 0
    pmd thread numa_id 1 core_id 52:
             isolated : true
             port: dpdk0      queue-id: 1 3 5 7
    [root@A01-R08-I24-169 wangzhike]# ovs-vsctl set interface dpdk0 
other_config:pmd-rxq-affinity="0:20,2:20,4:20,6:20"
    [root@A01-R08-I24-169 wangzhike]# ovs-appctl dpif-netdev/pmd-rxq-show
    pmd thread numa_id 0 core_id 4:
             isolated : false
             port: dpdk0      queue-id: 3 7
             port: port-ve54hf69ys      queue-id: 0
    pmd thread numa_id 0 core_id 36:
             isolated : false
             port: dpdk0      queue-id: 1 5
    pmd thread numa_id 1 core_id 20:
             isolated : true
             port: dpdk0      queue-id: 0 2 4 6
    pmd thread numa_id 1 core_id 52:
             isolated : false
             port: port-6s9isqsttp       queue-id: 0
             port: port-b1ri1292y7      queue-id: 0
             port: port-l8n2dvgyij        queue-id: 0
    
    Br,
    Wang Zhike
    _______________________________________________
    dev mailing list
    [email protected]
    
https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_mailman_listinfo_ovs-2Ddev&d=DwICAg&c=uilaK90D4TOVoH58JNXRgQ&r=BVhFA09CGX7JQ5Ih-uZnsw&m=NDgM-S7tXaAGnfHlWlrxKYETL_P3vsrVNEPjwhbpo6k&s=WMde1LMSDMEWXSC3oYomkW1efTaHpoJjcYyEFj1DCyY&e=
 
    

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to