On 15/05/2022 06:12, [email protected] wrote:
Dear all,
           I am using ovs 2.14.1 and dpdk 20.08 on CentOS Linux release 
8.3.2011 with kernel of 5.10.44.  It is observed that there are some error 
information about memory in ovs-vswitchd.log

/var/log/openvswitch/ovs-vswitchd.log:113981:2022-05-12T04:41:37.399Z|00001|dpdk(pmd-c02/id:12)|ERR|VHOST_DATA
 : Failed to allocate memory for mbuf.
/var/log/openvswitch/ovs-vswitchd.log:113983:2022-05-12T04:41:37.407Z|00003|dpdk(pmd-c02/id:12)|ERR|VHOST_DATA
 : Failed to allocate memory for mbuf.
/var/log/openvswitch/ovs-vswitchd.log:113984:2022-05-12T04:41:37.415Z|00004|dpdk(pmd-c02/id:12)|ERR|VHOST_DATA
 : Failed to allocate memory for mbuf.
/var/log/openvswitch/ovs-vswitchd.log:113985:2022-05-12T04:41:37.422Z|00005|dpdk(pmd-c02/id:12)|ERR|VHOST_DATA
 : Failed to allocate memory for mbuf.
/var/log/openvswitch/ovs-vswitchd.log:113986:2022-05-12T04:41:37.430Z|00006|dpdk(pmd-c02/id:12)|ERR|VHOST_DATA
 : Failed to allocate memory for mbuf.
/var/log/openvswitch/ovs-vswitchd.log:113987:2022-05-12T04:41:37.437Z|00007|dpdk(pmd-c02/id:12)|ERR|VHOST_DATA
 : Failed to allocate memory for mbuf.
/var/log/openvswitch/ovs-vswitchd.log:113988:2022-05-12T04:41:37.444Z|00008|dpdk(pmd-c02/id:12)|ERR|VHOST_DATA
 : Failed to allocate memory for mbuf.
/var/log/openvswitch/ovs-vswitchd.log:113989:2022-05-12T04:41:37.451Z|00009|dpdk(pmd-c02/id:12)|ERR|VHOST_DATA
 : Failed to allocate memory for mbuf.
/var/log/openvswitch/ovs-vswitchd.log:113990:2022-05-12T04:41:37.458Z|00010|dpdk(pmd-c02/id:12)|ERR|VHOST_DATA
 : Failed to allocate memory for mbuf.
Is there a patch to fix this problem ?

The short answer is that there is probably not enough memory being pre-allocated in 'other_config:dpdk-socket-mem=x,y' and at some point you are running out of mbufs. The first thing you should do is increase the amount of memory and re-test.

These blogs are a few years old, but should help:
https://developers.redhat.com/blog/2018/06/14/debugging-ovs-dpdk-memory-issues
https://developers.redhat.com/blog/2018/03/16/ovs-dpdk-hugepage-memory

thanks!
Best regards, Peter.


_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to