<Sebelumnya | Konten | Selanjutnya>
5.9. Dukungan dan Pemecahan Masalah
DPDK adalah proyek yang berkembang pesat. Dalam setiap kasus pencarian untuk dukungan dan panduan lebih lanjut, sangat disarankan untuk memeriksa terlebih dahulu apakah itu berlaku untuk versi saat ini.
• Milis DPDK38
• Untuk Milis OpenVswitch-DPDK OpenStack39
• Masalah yang diketahui di Area Launchpad DPDK40
• Bergabunglah dengan saluran IRC #DPDK atau #openvswitch di freenode.
Masalah sering kali disebabkan oleh detail kecil yang hilang dalam pengaturan umum. Kemudian, detail yang hilang ini menyebabkan masalah yang sulit dilacak ke akar penyebabnya. Kasus umum tampaknya adalah masalah "tidak dapat membuka perangkat jaringan dpdk0 (Tidak ada perangkat seperti itu)". Ini terjadi agak terlambat saat mengatur port di Open vSwitch dengan DPDK. Tetapi akar penyebab sebagian besar waktu sangat awal dalam pengaturan dan inisialisasi. Berikut contoh tampilan inisialisasi perangkat yang tepat - ini dapat ditemukan di syslog/journal saat memulai Open vSwitch dengan mengaktifkan DPDK.
ovs-ctl[3560]: EAL: Perangkat PCI 0000:04:00.1 pada soket NUMA 0 ovs-ctl[3560]: EAL: driver probe: 8086:1528 rte_ixgbe_pmd ovs-ctl[3560]: EAL: Memori PCI dipetakan pada 0x7f2140000000 ovs-ctl[3560]: EAL: Memori PCI dipetakan pada 0x7f2140200000
39 http://openvswitch.org/mlists
40 https://bugs.launchpad.net/ubuntu/+source/dpdk
Jika ini hilang, baik oleh kartu yang diabaikan, inisialisasi yang gagal atau alasan lain, nanti tidak akan ada perangkat DPDK untuk dirujuk. Sayangnya logging tersebar di syslog/journal dan openvswitch log. Untuk mengizinkan beberapa pemeriksaan silang di sini contoh apa yang dapat ditemukan di log ini, relatif terhadap perintah yang dimasukkan.
#Catatan: Log ini diambil dengan dpdk 2.2 dan openvswitch 2.5 Keterangan:
CMD: yang Anda masukkan
SYSLOG: (Termasuk Pesan EAL dan OVS) OVS-LOG: (Pesan Openvswitch)
#PERSIAPAN
Ikat antarmuka ke driver DPDK UIO, sediakan Hugepages, aktifkan DPDK di OVS
CMD: layanan sudo openvswitch-switch restart
SILOG:
2016-01-22T08:58:31.372Z|00003|daemon_unix(monitor)|INFO|pid 3329 meninggal, terbunuh (Dihentikan), keluar
2016-01-22T08:58:33.377Z|00002|vlog|INFO|membuka file log /var/log/openvswitch/ovs- vswitchd.log
2016-01-22T08:58:33.381Z|00003|ovs_numa|INFO|Menemukan 12 core CPU pada NUMA node 0 2016-01-22T08:58:33.381Z|00004|ovs_numa|INFO|Menemukan 1 NUMA node dan 12 core CPU 2016-01-22T08:58:33.381Z|00005|sambungkan kembali|INFO|unix:/var/run/openvswitch/db.sock:
menghubungkan...
2016-01-22T08:58:33.383Z|00006|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected 2016-01-22T08:58:33.386Z|00007|bridge|INFO|ovs-vswitchd (Open vSwitch) 2.5.0
OVS-LOG:
systemd[1]: Menghentikan Open vSwitch... systemd[1]: Menghentikan Open vSwitch.
systemd[1]: Menghentikan Unit Internal vSwitch Terbuka... ovs-ctl[3541]: * Membunuh ovs-vswitchd (3329)
ovs-ctl[3541]: * Membunuh ovsdb-server (3318) systemd[1]: Menghentikan Unit Internal vSwitch Terbuka. systemd[1]: Memulai Open vSwitch Internal Unit... ovs-ctl[3560]: * Memulai ovsdb-server
ovs-vsctl: ovs|00001|vsctl|INFO|Disebut sebagai ovs-vsctl --no-wait -- init -- set Open_vSwitch . db-versi = 7.12.1
ovs-vsctl: ovs|00001|vsctl|INFO|Disebut sebagai ovs-vsctl --no-wait set Open_vSwitch . ovs- version=2.5.0 "external-ids:system-id=\"e7c5ba80-bb14-45c1-b8eb-628f3ad03903\"" "system-type=\"Ubuntu\"" "system-version=\"16.04- semangat\""
ovs-ctl[3560]: * Mengonfigurasi ID sistem vSwitch Terbuka
ovs-ctl[3560]: 2016-01-22T08:58:31Z|00001|dpdk|INFO|Tidak ada -vhost_sock_dir yang disediakan - default ke /var/run/openvswitch
ovs-vswitchd: ovs|00001|dpdk|INFO|Tidak ada -vhost_sock_dir yang disediakan - default ke /var/run/ openvswitch
ovs-ctl[3560]: EAL: Terdeteksi lcore 0 sebagai inti 0 pada soket 0 ovs-ctl[3560]: EAL: Terdeteksi lcore 1 sebagai inti 1 pada soket 0 ovs-ctl[3560]: EAL: Terdeteksi lcore 2 sebagai inti 2 pada soket 0 ovs-ctl[3560]: EAL: Terdeteksi lcore 3 sebagai inti 3 pada soket 0 ovs-ctl[3560]: EAL: Terdeteksi lcore 4 sebagai inti 4 pada soket 0
ovs-ctl[3560]: EAL: Terdeteksi lcore 5 sebagai inti 5 pada soket 0 ovs-ctl[3560]: EAL: Terdeteksi lcore 6 sebagai inti 0 pada soket 0 ovs-ctl[3560]: EAL: Terdeteksi lcore 7 sebagai inti 1 pada soket 0 ovs-ctl[3560]: EAL: Terdeteksi lcore 8 sebagai inti 2 pada soket 0 ovs-ctl[3560]: EAL: Terdeteksi lcore 9 sebagai inti 3 pada soket 0 ovs-ctl[3560]: EAL: Terdeteksi lcore 10 sebagai inti 4 pada soket 0 ovs-ctl[3560]: EAL: Terdeteksi lcore 11 sebagai inti 5 pada soket 0
ovs-ctl[3560]: EAL: Mendukung maksimum 128 inti logis dengan konfigurasi. ovs-ctl[3560]: EAL: Terdeteksi 12 lcore(s)
ovs-ctl[3560]: EAL: Modul VFIO tidak semua dimuat, lewati dukungan VFIO... ovs-ctl[3560]: EAL: Menyiapkan memori yang berdekatan secara fisik...
ovs-ctl[3560]: EAL: Tanyakan area virtual 0x100000000 byte
ovs-ctl[3560]: EAL: Area virtual ditemukan di 0x7f2040000000 (ukuran = 0x100000000) ovs-ctl[3560]: EAL: Meminta 4 halaman berukuran 1024MB dari soket 0
ovs-ctl[3560]: EAL: Frekuensi TSC ~2397202 KHz
ovs-vswitchd[3592]: EAL: Frekuensi TSC ~2397202 KHz
ovs-vswitchd[3592]: EAL: Master lcore 0 siap (tid=fc6cbb00;cpuset=[0]) ovs-vswitchd[3592]: EAL: Perangkat PCI 0000:04:00.0 pada soket NUMA 0
ovs-vswitchd[3592]: EAL: driver probe: 8086:1528 rte_ixgbe_pmd
ovs-vswitchd[3592]: EAL: Tidak dikelola oleh driver kernel yang didukung, dilewati ovs-vswitchd[3592]: EAL: Perangkat PCI 0000:04:00.1 pada soket NUMA 0
ovs-vswitchd[3592]: EAL: driver probe: 8086:1528 rte_ixgbe_pmd ovs-vswitchd[3592]: EAL: memori PCI dipetakan pada 0x7f2140000000 ovs-vswitchd[3592]: EAL: memori PCI dipetakan pada 0x7f2140200000
ovs-ctl[3560]: EAL: Master lcore 0 siap (tid=fc6cbb00;cpuset=[0]) ovs-ctl[3560]: EAL: Perangkat PCI 0000:04:00.0 pada soket NUMA 0
ovs-ctl[3560]: EAL: driver probe: 8086:1528 rte_ixgbe_pmd
ovs-ctl[3560]: EAL: Tidak dikelola oleh driver kernel yang didukung, dilewati ovs-ctl[3560]: EAL: Perangkat PCI 0000:04:00.1 pada soket NUMA 0
ovs-ctl[3560]: EAL: driver probe: 8086:1528 rte_ixgbe_pmd ovs-ctl[3560]: EAL: Memori PCI dipetakan pada 0x7f2140000000 ovs-ctl[3560]: EAL: Memori PCI dipetakan pada 0x7f2140200000
ovs-vswitchd[3592]: PMD: eth_ixgbe_dev_init(): MAC: 4, PHY: 3
ovs-vswitchd[3592]: PMD: eth_ixgbe_dev_init(): port 0 vendorID=0x8086 deviceID=0x1528 ovs-ctl[3560]: PMD: eth_ixgbe_dev_init(): MAC: 4, PHY: 3
ovs-ctl[3560]: PMD: eth_ixgbe_dev_init(): port 0 vendorID=0x8086 deviceID=0x1528 ovs-ctl[3560]: Zona 0: nama: , phys:0x83fffdec0, len:0x2080,
virt:0x7f213fffdec0, socket_id:0, flags:0
ovs-ctl[3560]: Zone 1: name:<MP_log_history>, phys:0x83fd73d40, len:0x28a0c0, virt:0x7f213fd73d40, socket_id:0, flags:0
ovs-ctl[3560]: Zona 2: nama: , phys:0x83fd43380, len:0x2f700, virt:0x7f213fd43380, socket_id:0, flags:0
ovs-ctl[3560]: * Memulai ovs-vswitchd
ovs-ctl[3560]: * Mengaktifkan manajer OVSDB jarak jauh systemd[1]: Memulai Unit Internal vSwitch Terbuka. systemd[1]: Memulai Open vSwitch... systemd[1]: Memulai Open vSwitch.
CMD: sudo ovs-vsctl add-br ovsdpdkbr0 -- atur jembatan ovsdpdkbr0 datapath_type=netdev
SILOG:
2016-01-22T08:58:56.344Z|00008|memori|INFO|37256 kB ukuran puncak penduduk yang disetel setelah 24.5 detik
2016-01-22T08:58:56.346Z|00009|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath supports recirculation
2016-01-22T08:58:56.346Z|00010|ofproto_dpif|INFO|netdev@ovs-netdev: Panjang tumpukan label MPLS diperiksa sebagai 3
2016-01-22T08:58:56.346Z|00011|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath mendukung id aliran unik
2016-01-22T08:58:56.346Z|00012|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath tidak mendukung ct_state
2016-01-22T08:58:56.346Z|00013|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath tidak mendukung ct_zone
2016-01-22T08:58:56.346Z|00014|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath tidak mendukung ct_mark
2016-01-22T08:58:56.346Z|00015|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath tidak mendukung ct_label
2016-01-22T08:58:56.360Z|00016|jembatan|INFO|jembatan ovsdpdkbr0: menambahkan antarmuka ovsdpdkbr0 pada port 65534
2016-01-22T08:58:56.361Z|00017|bridge|INFO|bridge ovsdpdkbr0: using datapath ID 00005a4a1ed0a14d
2016-01-22T08:58:56.361Z|00018|connmgr|INFO|ovsdpdkbr0: menambahkan pengontrol layanan "punix:/ var/run/openvswitch/ovsdpdkbr0.mgmt"
OVS-LOG:
ovs-vsctl: ovs|00001|vsctl|INFO|Disebut sebagai ovs-vsctl add-br ovsdpdkbr0 -- atur jembatan ovsdpdkbr0 datapath_type=netdev
systemd-udevd[3607]: Tidak dapat menghasilkan alamat MAC persisten untuk ovs-netdev: Tidak ada file atau direktori seperti itu
kernel: [50165.886554] device ovs-netdev memasuki mode promiscuous kernel: [50165.901261] device ovsdpdkbr0 memasuki mode promiscuous
CMD: sudo ovs-vsctl add-port ovsdpdkbr0 dpdk0 -- atur Antarmuka dpdk0 type=dpdk
SILOG:
2016-01-22T08:59:06.369Z|00019|memori|INFO|ukuran set penduduk puncak tumbuh 155% dalam 10.0 detik terakhir, dari 37256 kB menjadi 95008 kB
2016-01-22T08:59:06.369Z|00020|memory|INFO|handlers:4 ports:1 revalidators:2 rules:5 2016-01-22T08:59:30.989Z|00021|dpdk|INFO|Port 0: 8c:dc:d4:b3:6d:e9
2016-01-22T08:59:31.520Z|00022|dpdk|INFO|Port 0: 8c:dc:d4:b3:6d:e9
2016-01-22T08:59:31.521Z|00023|dpif_netdev|INFO|Membuat 1 utas pmd pada numa node 0 2016-01-22T08:59:31.522Z|00001|dpif_netdev(pmd16)|INFO|Core 0 processing port ' dpdk0'
2016-01-22T08:59:31.522Z|00024|jembatan|INFO|jembatan ovsdpdkbr0: menambahkan antarmuka dpdk0 pada port 1
2016-01-22T08:59:31.522Z|00025|bridge|INFO|bridge ovsdpdkbr0: using datapath ID 00008cdcd4b36de9
2016-01-22T08:59:31.523Z|00002|dpif_netdev(pmd16)|INFO|Core 0 processing port 'dpdk0'
OVS-LOG:
ovs-vsctl: ovs|00001|vsctl|INFO|Disebut sebagai ovs-vsctl add-port ovsdpdkbr0 dpdk0 -- atur Antarmuka dpdk0 type=dpdk
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a79ebc0 hw_ring=0x7f211a7a6c00 dma_addr=0x81a7a6c00
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7f211a78a6c0 sw_sc_ring=0x7f211a786580 hw_ring=0x7f211a78e800 dma_addr=0x81a78e800
ovs-vswitchd[3595]: PMD: ixgbe_set_rx_function(): Vector rx diaktifkan, pastikan ukuran burst RX tidak kurang dari 4 (port=0).
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a79ebc0 hw_ring=0x7f211a7a6c00 dma_addr=0x81a7a6c00
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a76e4c0 hw_ring=0x7f211a776500 dma_addr=0x81a776500
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a756440 hw_ring=0x7f211a75e480 dma_addr=0x81a75e480
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a73e3c0 hw_ring=0x7f211a746400 dma_addr=0x81a746400
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a726340 hw_ring=0x7f211a72e380 dma_addr=0x81a72e380
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a70e2c0 hw_ring=0x7f211a716300 dma_addr=0x81a716300
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a6f6240 hw_ring=0x7f211a6fe280 dma_addr=0x81a6fe280
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a6de1c0 hw_ring=0x7f211a6e6200 dma_addr=0x81a6e6200
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a6c6140 hw_ring=0x7f211a6ce180 dma_addr=0x81a6ce180
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a6ae0c0 hw_ring=0x7f211a6b6100 dma_addr=0x81a6b6100
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a696040 hw_ring=0x7f211a69e080 dma_addr=0x81a69e080
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a67dfc0 hw_ring=0x7f211a686000 dma_addr=0x81a686000
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a665e40 hw_ring=0x7f211a66de80 dma_addr=0x81a66de80
ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Menggunakan jalur kode tx sederhana ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx diaktifkan.
ovs-vswitchd[3595]: PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7f211a78a6c0 sw_sc_ring=0x7f211a786580 hw_ring=0x7f211a78e800 dma_addr=0x81a78e800
ovs-vswitchd[3595]: PMD: ixgbe_set_rx_function(): Vector rx diaktifkan, pastikan ukuran burst RX tidak kurang dari 4 (port=0).
CMD: sudo ovs-vsctl add-port ovsdpdkbr0 vhost-user-1 -- atur Antarmuka vhost-user-1 type=dpdkvhostuser
OVS-LOG:
2016-01-22T09:00:35.145Z|00026|dpdk|INFO|Socket /var/run/openvswitch/vhost-user-1 dibuat untuk port vhost-user vhost-user-1
2016-01-22T09:00:35.145Z|00003|dpif_netdev(pmd16)|INFO|Core 0 processing port 'dpdk0'
2016-01-22T09:00:35.145Z|00004|dpif_netdev(pmd16)|INFO|Core 0 processing port 'vhost-user-1' 2016-01-22T09:00:35.145Z|00027|bridge|INFO|bridge ovsdpdkbr0: added interface vhost-user-1
di pelabuhan 2
SILOG:
ovs-vsctl: ovs|00001|vsctl|INFO|Disebut sebagai ovs-vsctl add-port ovsdpdkbr0 vhost-user-1 -- atur Antarmuka vhost-user-1 type=dpdkvhostuser
ovs-vswitchd[3595]: VHOST_CONFIG: soket dibuat, fd:46
ovs-vswitchd[3595]: VHOST_CONFIG: ikat ke /var/run/openvswitch/vhost-user-1
Akhirnya kita bisa melihat utas polling di atas
PID PENGGUNA PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3595 akar 10 -10 4975344 103936 9916 S 100.0 0.3 33:13.56 ovs-vswitchd