Hi,

Yes VPP default to 1024 descriptors per RX and per TX queue for DPDK interface.
By default, the number of txq is determined by the number of threads (main 
thread + worker threads).
So if you have 1 interface, 16 rxq and 16 workers, you will allocate 1024 * (16 
+ (1 + 16)) = 33792 buffers for the interface.
You can tweak those parameters (number of descriptors per queue, total number 
of buffers etc), see [1] and [2].

Best
Ben

[1] 
https://fd.io/docs/vpp/master/gettingstarted/users/configuring/startup.html#the-dpdk-section
[2] 
https://fd.io/docs/vpp/master/gettingstarted/users/configuring/startup.html#the-buffers-section

> -----Original Message-----
> From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of
> chanwai1...@gmail.com
> Sent: mercredi 30 septembre 2020 05:06
> To: vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] vnet buffer leaking on 20.09RC2?
> 
> #9  0x00007fff6da8fae4 in ice_alloc_rx_queue_mbufs (rxq=0x7fe2406de580) at
> /home/ubuntu/vpp/build-root/build-vpp_debug-native/external/dpdk-
> 20.08/drivers/net/ice/ice_rxtx.c:193
> #10 0x00007fff6da9fa4b in ice_rx_queue_start (dev=0x7fff7146dec0
> <rte_eth_devices>, rx_queue_id=5) at /home/ubuntu/vpp/build-root/build-
> vpp_debug-native/external/dpdk-20.08/drivers/net/ice/ice_rxtx.c:391
> #11 0x00007fff6da6b5b2 in ice_dev_start (dev=0x7fff7146dec0
> <rte_eth_devices>) at /home/ubuntu/vpp/build-root/build-vpp_debug-
> native/external/dpdk-20.08/drivers/net/ice/ice_ethdev.c:3324
> #12 0x00007fff6c6318c2 in rte_eth_dev_start (port_id=0) at
> /home/ubuntu/vpp/build-root/build-vpp_debug-native/external/dpdk-
> 20.08/lib/librte_ethdev/rte_ethdev.c:1636
> #13 0x00007fff707a82c2 in dpdk_device_start (xd=0x7fff78ebe700) at
> /home/ubuntu/vpp/src/plugins/dpdk/device/common.c:173
> 
> It seems that the ice driver will reserve 1024 buffers per rx queue.
> let me try do some more test to check if vlib_buffer_alloc will failed
> when there is enough buffers.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17603): https://lists.fd.io/g/vpp-dev/message/17603
Mute This Topic: https://lists.fd.io/mt/77210359/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to