GithubHelp home page GithubHelp logo

Comments (6)

beacer avatar beacer commented on July 17, 2024

Pls open CONFIG_DPVS_IPVS_DEBUG in src/Makefile to check if all packets in same connection recieved by same CPU core.

from dpvs.

316953425 avatar 316953425 commented on July 17, 2024

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.

beacer avatar beacer commented on July 17, 2024

/var/log/message.

from dpvs.

316953425 avatar 316953425 commented on July 17, 2024

/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.

oupeng007 avatar oupeng007 commented on July 17, 2024

i40e驱动没设置dst_port_mask,flow director没命中

from dpvs.

autumn0207 avatar autumn0207 commented on July 17, 2024

dst_port_mask

这个有方法规避吗

from dpvs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.