Comments (6)
Pls open CONFIG_DPVS_IPVS_DEBUG
in src/Makefile
to check if all packets in same connection recieved by same CPU core.
from dpvs.
Makefile:
#CFLAGS += -O3
CFLAGS += -g -O0
CFLAGS += -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
CFLAGS += $(USER_FLAGS)
CFLAGS += -I $(SRCDIR)/../include/
#CFLAGS += -D CONFIG_RECORD_BIG_LOOP
CFLAGS += -D CONFIG_DPVS_SAPOOL_DEBUG
CFLAGS += -D CONFIG_DPVS_IPVS_DEBUG
#CFLAGS += -D CONFIG_SYNPROXY_DEBUG
#CFLAGS += -D CONFIG_TIMER_MEASURE
#CFLAGS += -D DPVS_CFG_PARSER_DEBUG
dpvs.conf
! global config
global_defs {
log_level DEBUG
log_file /var/log/dpvs.log
}
! netif config
netif_defs {
pktpool_size 524287
pktpool_cache 256
<init> device dpdk0 {
rx {
queue_number 2
descriptor_number 1024
rss tcp
}
tx {
queue_number 2
descriptor_number 1024
}
promisc_mode
kni_name dpdk0.kni
}
}
! worker config (lcores)
worker_defs {
worker cpu0 {
type master
cpu_id 0
}
<init> worker cpu1 {
type slave
cpu_id 1
port dpdk0 {
rx_queue_ids 0
tx_queue_ids 0
! isol_rx_cpu_ids 9
! isol_rxq_ring_sz 1048576
}
}
<init> worker cpu2 {
type slave
cpu_id 2
port dpdk0 {
rx_queue_ids 1
tx_queue_ids 1
! isol_rx_cpu_ids 10
! isol_rxq_ring_sz 1048576
}
}
! worker cpu3 {
! type slave
! cpu_id 3
! port dpdk0 {
! rx_queue_ids 2
! tx_queue_ids 2
! ! isol_rx_cpu_ids 11
! ! isol_rxq_ring_sz 1048576
! }
! }
!
! worker cpu4 {
! type slave
! cpu_id 4
! port dpdk0 {
! rx_queue_ids 3
! tx_queue_ids 3
! ! isol_rx_cpu_ids 12
! ! isol_rxq_ring_sz 1048576
! }
! }
!
! worker cpu5 {
! type slave
! cpu_id 5
! port dpdk0 {
! rx_queue_ids 4
! tx_queue_ids 4
! ! isol_rx_cpu_ids 13
! ! isol_rxq_ring_sz 1048576
! }
! }
!
! worker cpu6 {
! type slave
! cpu_id 6
! port dpdk0 {
! rx_queue_ids 5
! tx_queue_ids 5
! ! isol_rx_cpu_ids 14
! ! isol_rxq_ring_sz 1048576
! }
! }
!
! worker cpu7 {
! type slave
! cpu_id 7
! port dpdk0 {
! rx_queue_ids 6
! tx_queue_ids 6
! ! isol_rx_cpu_ids 15
! ! isol_rxq_ring_sz 1048576
! }
! }
!
! worker cpu8 {
! type slave
! cpu_id 8
! port dpdk0 {
! rx_queue_ids 7
! tx_queue_ids 7
! ! isol_rx_cpu_ids 16
! ! isol_rxq_ring_sz 1048576
! }
! }
}
! timer config
timer_defs {
# cpu job loops to schedule dpdk timer management
schedule_interval 500
}
! dpvs neighbor config
neigh_defs {
unres_queue_length 128
pktpool_size 1023
pktpool_cache 32
timeout 60
}
! dpvs ipv4 config
ipv4_defs {
default_ttl 64
fragment {
bucket_number 4096
bucket_entries 16
max_entries 4096
ttl 1
}
}
! control plane config
ctrl_defs {
lcore_msg {
ring_size 4096
multicast_queue_length 256
sync_msg_timeout_us 2000
}
ipc_msg {
unix_domain /var/run/dpvs_ctrl
}
}
! ipvs config
ipvs_defs {
conn {
conn_pool_size 2097152
conn_pool_cache 256
conn_init_timeout 3
! expire_quiescent_template
! fast_xmit_close
}
udp {
defence_udp_drop
timeout {
normal 300
last 3
}
}
tcp {
defence_tcp_drop
timeout {
none 2
established 90
syn_sent 3
syn_recv 30
fin_wait 7
time_wait 7
close 3
close_wait 7
last_ack 7
listen 120
synack 30
last 2
}
synproxy {
synack_options {
mss 1452
ttl 63
sack
! wscale
! timestamp
}
! defer_rs_syn
rs_syn_max_retry 3
ack_storm_thresh 10
max_ack_saved 3
conn_reuse_state {
close
time_wait
! fin_wait
! close_wait
! last_ack
}
}
}
}
! sa_pool config
sa_pool {
pool_hash_size 16
}
同时我也在dpvs.conf中设置了log的级别为DEBUG,但是我看dpvs.log中没有任何相关的log 输出啊~
from dpvs.
/var/log/message.
from dpvs.
/var/log/messages中关于dpvs的log只有
Dec 25 11:50:01 bj-gc3-10-114-249-8 systemd: Starting Session 851 of user root.
Dec 25 11:51:48 bj-gc3-10-114-249-8 dpvs: dpvs_running: Remove a zombie pid file /var/run/dpvs.pid
Dec 25 11:51:54 bj-gc3-10-114-249-8 dpvs[24462]: PMD: bnxt_rte_pmd_init() called for (null)
Dec 25 11:51:54 bj-gc3-10-114-249-8 dpvs[24462]: EAL: PCI device 0000:04:00.0 on NUMA socket 0
Dec 25 11:51:54 bj-gc3-10-114-249-8 dpvs[24462]: EAL: probe driver: 8086:1572 rte_i40e_pmd
Dec 25 11:51:54 bj-gc3-10-114-249-8 dpvs[24462]: EAL: PCI device 0000:04:00.1 on NUMA socket 0
Dec 25 11:51:54 bj-gc3-10-114-249-8 dpvs[24462]: EAL: probe driver: 8086:1572 rte_i40e_pmd
Dec 25 11:51:54 bj-gc3-10-114-249-8 dpvs[24462]: PMD: eth_i40e_dev_init(): FW 5.60 API 1.5 NVM 05.06.00 eetrack 80002dac
Dec 25 11:51:54 bj-gc3-10-114-249-8 dpvs[24462]: CFG_FILE: Opening configuration file '/etc/dpvs.conf'.
Dec 25 11:51:54 bj-gc3-10-114-249-8 dpvs[24462]: CFG_FILE: log_level = DEBUG
Dec 25 11:51:54 bj-gc3-10-114-249-8 dpvs[24462]: CFG_FILE: log_file = /var/log/dpvs.log
Dec 25 11:51:55 bj-gc3-10-114-249-8 kernel: KNI: Creating kni...
没有别的相关信息啦~
from dpvs.
i40e驱动没设置dst_port_mask,flow director没命中
from dpvs.
dst_port_mask
这个有方法规避吗
from dpvs.
Related Issues (20)
- Feature: Any plan to integrate dpvs into k8s
- RHEL 8 或者 RHEL9的支持 HOT 1
- uoa_max_trail=3设置后会丢失前三个udp的包 HOT 5
- dpvs 1.96版本 dpvs-agent 创建RS ockopt DPVSAGENT_VS_ADD_DESTS Read sockmsg failed Error=EOF
- 测试dpvs1.9.6,发现部分请求没有将真实用户IP写入是为什么呢 HOT 12
- 是否支持ICMP协议,以及是否支持任意端口转发 HOT 2
- Feature Request: support Maglev Hash Stateless scheduler algorhithm
- dpvs1.9.6启动时Segmentation fault问题
- 1.9.6大家都能正常编译过去吗? HOT 1
- 一个疑问:DPVS_MAX_LCORE需要编译阶段指定是什么原因?是否可以改为可配置? HOT 1
- rockylinux 8 编译 1.9.6 失败了 HOT 2
- 请问是否支持虚IP封装再IPIP内 HOT 2
- dpvs 初始化 CONFIG_DPVS_MAX_LCORE最大为64 HOT 5
- synproxy HOT 3
- TOA HOT 2
- FullNat 如何删除一个 LoclIP HOT 1
- vmware虚拟机两个igb_uio驱动的网卡启动dpvs,这两张网卡与配置文件中dpdk0,dpdk1如何对应? HOT 1
- 请问大佬如何运行dpvs里面的test内容? HOT 2
- DPVS未来是否规划整合策略路由功能以应对多线路Trunk模式下ICMP流量与NAT64场景下的路由决策优化? HOT 5
- IPv6 Neighbor Advertisement缺少Source Link-Layer Address字段无法更新邻居信息导致丢包
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dpvs.