iqiyi / dpvs

DPVS is a high performance Layer-4 load balancer based on DPDK.
Other
3.01k stars 724 forks source link

frag table init failed ? #25

Open bretagne-peiqi opened 6 years ago

bretagne-peiqi commented 6 years ago

Hello, I tried install your dpvs, everything works fine excpet when I launch dpvs by ./dpvs &

Output: EAL: Probing VFIO support... PMD: bnxt_rte_pmd_init() called for (null) EAL: PCI device 0000:01:00.0 on NUMA socket 0 EAL: probe driver: 8086:1521 rte_igb_pmd EAL: PCI device 0000:01:00.1 on NUMA socket 0 EAL: probe driver: 8086:1521 rte_igb_pmd EAL: PCI device 0000:02:00.0 on NUMA socket 0 EAL: probe driver: 8086:1521 rte_igb_pmd EAL: PCI device 0000:02:00.1 on NUMA socket 0 EAL: probe driver: 8086:1521 rte_igb_pmd CFG_FILE: Opening configuration file '/etc/dpvs.conf'. CFG_FILE: log_level = WARNING NETIF: eth2:rx_queue_number = 8 NETIF: worker cpu1:eth2 rx_queue_id += 0 NETIF: worker cpu1:eth2 tx_queue_id += 0 NETIF: worker cpu2:eth2 rx_queue_id += 1 NETIF: worker cpu2:eth2 tx_queue_id += 1 NETIF: worker cpu3:eth2 rx_queue_id += 2 NETIF: worker cpu3:eth2 tx_queue_id += 2 NETIF: worker cpu4:eth2 rx_queue_id += 3 NETIF: worker cpu4:eth2 tx_queue_id += 3 NETIF: worker cpu5:eth2 rx_queue_id += 4 NETIF: worker cpu5:eth2 tx_queue_id += 4 NETIF: worker cpu6:eth2 rx_queue_id += 5 NETIF: worker cpu6:eth2 tx_queue_id += 5 NETIF: worker cpu7:eth2 rx_queue_id += 6 NETIF: worker cpu7:eth2 tx_queue_id += 6 NETIF: worker cpu8:eth2 rx_queue_id += 7 NETIF: worker cpu8:eth2 tx_queue_id += 7 USER1: rte_ip_frag_table_create: allocation of 25165952 bytes at socket 0 failed do IP4FRAG: [22] fail to create frag table. EAL: Error - exiting with code: 1 Cause: Fail to init inet: failed dpdk api

do you have any idea about it

bretagne-peiqi commented 6 years ago

maybe it related with code: src/ipv4_frag.c:405.
I am not sure for the moment

beacer commented 6 years ago

Pls try to use bigger hugepage setting like this:

echo 10240 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages

echo 10240 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages

Regards,


beacer_chen@hotmail.com

From: peiqi shimailto:notifications@github.com Date: 2017-10-26 19:23 To: iqiyi/dpvsmailto:dpvs@noreply.github.com CC: Subscribedmailto:subscribed@noreply.github.com Subject: [iqiyi/dpvs] frag table init failed ? (#25)

Hello, I tried install your dpvs, everything works fine excpet when I launch dpvs by ./dpvs &

Output: EAL: Probing VFIO support... PMD: bnxt_rte_pmd_init() called for (null) EAL: PCI device 0000:01:00.0 on NUMA socket 0 EAL: probe driver: 8086:1521 rte_igb_pmd EAL: PCI device 0000:01:00.1 on NUMA socket 0 EAL: probe driver: 8086:1521 rte_igb_pmd EAL: PCI device 0000:02:00.0 on NUMA socket 0 EAL: probe driver: 8086:1521 rte_igb_pmd EAL: PCI device 0000:02:00.1 on NUMA socket 0 EAL: probe driver: 8086:1521 rte_igb_pmd CFG_FILE: Opening configuration file '/etc/dpvs.conf'. CFG_FILE: log_level = WARNING NETIF: eth2:rx_queue_number = 8 NETIF: worker cpu1:eth2 rx_queue_id += 0 NETIF: worker cpu1:eth2 tx_queue_id += 0 NETIF: worker cpu2:eth2 rx_queue_id += 1 NETIF: worker cpu2:eth2 tx_queue_id += 1 NETIF: worker cpu3:eth2 rx_queue_id += 2 NETIF: worker cpu3:eth2 tx_queue_id += 2 NETIF: worker cpu4:eth2 rx_queue_id += 3 NETIF: worker cpu4:eth2 tx_queue_id += 3 NETIF: worker cpu5:eth2 rx_queue_id += 4 NETIF: worker cpu5:eth2 tx_queue_id += 4 NETIF: worker cpu6:eth2 rx_queue_id += 5 NETIF: worker cpu6:eth2 tx_queue_id += 5 NETIF: worker cpu7:eth2 rx_queue_id += 6 NETIF: worker cpu7:eth2 tx_queue_id += 6 NETIF: worker cpu8:eth2 rx_queue_id += 7 NETIF: worker cpu8:eth2 tx_queue_id += 7 USER1: rte_ip_frag_table_create: allocation of 25165952 bytes at socket 0 failed do IP4FRAG: [22] fail to create frag table. EAL: Error - exiting with code: 1 Cause: Fail to init inet: failed dpdk api

do you have any idea about it

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/iqiyi/dpvs/issues/25, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANGzMdbDTiC4ZMJV6zmoyth_Quib45Qaks5swGvJgaJpZM4QHaPi.

beacer commented 6 years ago

@peiqi-caicloud how about the result after change hugepage size ?

beacer commented 6 years ago

@peiqi-caicloud any update ?