How to enable logging and where to find the logs

Tummala, Sivaprasad Sivaprasad.Tummala at amd.com
Thu Feb 29 12:11:05 CET 2024


[AMD Official Use Only - General]

Hi Sindhu,

You can try enabling the dpdk logging with:

  ovs-appctl vlog/set file:dpdk:dbg

DPDK logs should be in ovs-vswitchd log itself as indicated below.

2024-02-29T11:02:54.327Z|00115|dpif_netdev|INFO|Core 10 on numa node 0 assigned port 'dpdk0' rx queue 0 (measured processing cycles 0).
2024-02-29T11:02:54.332Z|00116|dpif|WARN|netdev at ovs-netdev: port_set_config failed (Invalid argument)
2024-02-29T11:02:54.332Z|00117|ofproto|WARN|br0: datapath configuration on port 1 (dpdk0) failed (Invalid argument)
2024-02-29T11:02:54.335Z|00118|dpdk|INFO|Device with port_id=1 already stopped
2024-02-29T11:02:54.350Z|00119|dpdk|INFO|ice_set_rx_function(): Using AVX2 OFFLOAD Vector Rx (port 1).
2024-02-29T11:02:54.813Z|00120|netdev_dpdk|INFO|Port 1: 6c:fe:54:6b:4f:11
2024-02-29T11:02:54.814Z|00121|netdev_dpdk|INFO|dpdk1: rx-steering: default rss
2024-02-29T11:02:54.814Z|00122|dpif_netdev|INFO|Performing pmd to rx queue assignment using cycles algorithm.

Thanks & Regards,
Sivaprasad


From: Sindhura Bandi <sindhura.bandi at certesnetworks.com>
Sent: Thursday, February 22, 2024 6:52 AM
To: users at dpdk.org
Subject: How to enable logging and where to find the logs

Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.

Hi Everyone,

I might be asking a basic question here. I'm facing some issues while bringing up a dpdk interface on ovs-dpdk on debian-12. Dpdk version is 22.11.1.
Dpdk seems to fail to allocate a mempool, even though there seem to be enough free huge page memory available on the machine.

I tried to enable dpdk debugs using the following command,
ovs-vsctl set Open_vSwitch . other_config:dpdk-extra="--log-level=lib.mbuf:debug"

The command was accepted, but I don't see any logs from dpdk anywhere in my /var/log.

I get the following information from ovs logs.

Feb 22 01:03:42 cep ovs-vswitchd[108468]: ovs|00237|netdev_dpdk|ERR|Failed to create mempool "ovs013337e900021580020512" with a request of 20512 mbufs
Feb 22 01:03:42 cep ovs-vswitchd[108468]: ovs|00238|netdev_dpdk|ERR|Failed to create memory pool for netdev vhost-user0, with MTU 1500 on socket 0: No such file or directory
Feb 22 01:03:42 cep ovs-vswitchd[108468]: ovs|00239|dpif_netdev|ERR|Failed to set interface vhost-user0 new configuration

Checked ovs code, and its callingvrte_pktmbuf_pool_create(), which is failing with "No such file or directory". I would like to enable debugs for lib.mbuf.
Please let me know if I'm missing anything.

Thanks,
Sindhu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/users/attachments/20240229/cdd7d70e/attachment.htm>


More information about the users mailing list