본문으로 바로가기

ovs-dpdk 상태 확인 명령어

category Cloud/OpenvSwitch 2021. 7. 13. 02:11
반응형

 

1. 상태 확인 가이드

### DPDK 인터페이스 다운 및 업 
ovs-ofctl mod-port br-dpdkbond0 dpdk0 down 

ovs-ofctl mod-port br-dpdkbond0 dpdk0 up 

### DPDK Bond 모드 및 상태 확인

[root@rhosp-dpdk-comp-1 ~]# ovs-appctl bond/show
---- dpdkbond0 ----
bond_mode: balance-slb
bond may use recirculation: no, Recirc-ID : -1
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
next rebalance: 9189 ms
lacp_status: negotiated
lacp_fallback_ab: false
active slave mac: 40:a6:b7:0a:70:01(dpdk1)

slave dpdk0: enabled
may_enable: true

slave dpdk1: enabled
active slave
may_enable: true



### DPDK LACP 상태 확인

[root@rhosp-dpdk-comp-1 ~]# ovs-appctl lacp/show
---- dpdkbond0 ----
status: active negotiated
sys_id: 40:a6:b7:0a:70:00
sys_priority: 65534
aggregation key: 1
lacp_time: fast

slave: dpdk0: current attached
port_id: 1
port_priority: 65535
may_enable: true

actor sys_id: 40:a6:b7:0a:70:00
actor sys_priority: 65534
actor port_id: 1
actor port_priority: 65535
actor key: 1
actor state: activity timeout aggregation synchronized collecting distributing

partner sys_id: 00:f6:63:3e:04:81
partner sys_priority: 32768
partner port_id: 357
partner port_priority: 32768
partner key: 32768
partner state: activity aggregation synchronized collecting distributing

slave: dpdk1: current attached
port_id: 2
port_priority: 65535
may_enable: true

actor sys_id: 40:a6:b7:0a:70:00
actor sys_priority: 65534
actor port_id: 2
actor port_priority: 65535
actor key: 1
actor state: activity timeout aggregation synchronized collecting distributing

partner sys_id: 00:f6:63:3e:04:81
partner sys_priority: 32768
partner port_id: 409
partner port_priority: 32768
partner key: 32768
partner state: activity aggregation synchronized collecting distributing

 

 

### DPDK Socket 메모리 확인방법 

[root@rhosp-dpdk-comp-1 ~]# ovs-vsctl get Open_vSwitch . other_config
{dpdk-extra="-n 4", dpdk-init="true", dpdk-lcore-mask="3000000003", dpdk-socket-mem="1024,1024", pmd-cpu-mask="c00000000c"}

 

 

### PMD 상태 조회

[root@rhosp-dpdk-comp-1 ~]# ovs-appctl dpif-netdev/pmd-stats-show
pmd thread numa_id 0 core_id 2:
packets received: 56902509
packet recirculations: 0
avg. datapath passes per packet: 1.00
emc hits: 47730877
smc hits: 0
megaflow hits: 8977820
avg. subtable lookups per megaflow hit: 1.12
miss with success upcall: 193812
miss with failed upcall: 0
avg. packets per output batch: 1.00
idle cycles: 1819004118514824 (99.95%)
processing cycles: 893425960672 (0.05%)
avg cycles per packet: 31982729.35 (1819897544475496/56902509)
avg processing cycles per packet: 15700.99 (893425960672/56902509)
pmd thread numa_id 1 core_id 3:
packets received: 0
packet recirculations: 0
avg. datapath passes per packet: 0.00
emc hits: 0
smc hits: 0
megaflow hits: 0
avg. subtable lookups per megaflow hit: 0.00
miss with success upcall: 0
miss with failed upcall: 0
avg. packets per output batch: 0.00
pmd thread numa_id 0 core_id 38:
packets received: 159292837
packet recirculations: 0
avg. datapath passes per packet: 1.00
emc hits: 128101690
smc hits: 0
megaflow hits: 31111424
avg. subtable lookups per megaflow hit: 1.35
miss with success upcall: 79723
miss with failed upcall: 0
avg. packets per output batch: 1.00
idle cycles: 1817752289548582 (99.88%)
processing cycles: 2145255237266 (0.12%)
avg cycles per packet: 11424854.87 (1819897544785848/159292837)
avg processing cycles per packet: 13467.37 (2145255237266/159292837)
pmd thread numa_id 1 core_id 39:
packets received: 0
packet recirculations: 0
avg. datapath passes per packet: 0.00
emc hits: 0
smc hits: 0
megaflow hits: 0
avg. subtable lookups per megaflow hit: 0.00
miss with success upcall: 0
miss with failed upcall: 0
avg. packets per output batch: 0.00
main thread:
packets received: 0
packet recirculations: 0
avg. datapath passes per packet: 0.00
emc hits: 0
smc hits: 0
megaflow hits: 0
avg. subtable lookups per megaflow hit: 0.00
miss with success upcall: 0
miss with failed upcall: 0
avg. packets per output batch: 1.00 

 

 

 

### VM이 사용하는 CPU번호 확인 

[root@rhosp-dpdk-comp-1 ~]# virsh list
 Id    이름                         상태
----------------------------------------------------
 1     instance-0000004c              실행중
 2     instance-0000004f              실행중
 3     instance-00000052              실행중
 4     instance-00000055              실행중
 5     instance-00000058              실행중
 6     instance-0000006a              실행중
 7     instance-0000006d              실행중

[root@rhosp-dpdk-comp-1 ~]# virsh vcpupin 1
VCPU: CPU Affinity
----------------------------------
   0: 24
   1: 60
   2: 16
   3: 52

728x90

'Cloud > OpenvSwitch' 카테고리의 다른 글

ovsdb 모니터링  (0) 2021.07.01
ovs (OpenvSwitch) 명령어  (0) 2021.07.01