Code Monkey home page Code Monkey logo

Comments (3)

lapnd avatar lapnd commented on June 14, 2024

Hi all,
Checking more log by calling rte_eth_stats_get(port_id, &eth_stats) I can see the received error packet stats:

  struct rte_eth_stats eth_stats;
        unsigned i;
        for (i = 0; i < rte_eth_dev_count(); i++) {
                rte_eth_stats_get(i, &eth_stats);
                printf("\nPort %u stats:\n", i);
                printf(" - Pkts in:   %"PRIu64"\n", eth_stats.ipackets);
                printf(" - Pkts out:  %"PRIu64"\n", eth_stats.opackets);
                printf(" - In Errs:   %"PRIu64"\n", eth_stats.ierrors);
                printf(" - Out Errs:  %"PRIu64"\n", eth_stats.oerrors);
                printf(" - Mbuf Errs: %"PRIu64"\n", eth_stats.rx_nombuf);
        }
Port 0 stats:
 - Pkts in:   155440503
 - Pkts out:  155264785
 - In Errs:   254299497
 - Out Errs:  0
 - Mbuf Errs: 0

Port 1 stats:
 - Pkts in:   155440561
 - Pkts out:  155264631
 - In Errs:   254299663
 - Out Errs:  0
 - Mbuf Errs: 0

All packets sent by traffic generator are the same format.
Is there a case that the OpenNetVM Manager process is not fast enough to receive packets, packets are marked as error?
Lapd

from opennetvm.

lapnd avatar lapnd commented on June 14, 2024

Hi all,
I'm able to get high results now after

  • Add one more core for RX on onvm_mgr/init.h
  • Increase RX/TX and Ring buffer size onvm_mgr/init.c
#define RTE_MP_RX_DESC_DEFAULT 2048
#define RTE_MP_TX_DESC_DEFAULT 2048
#define CLIENT_QUEUE_RINGSIZE 2048

Lapd

from opennetvm.

twood02 avatar twood02 commented on June 14, 2024

@lapd-viosoft yes, that is the right approach. We will be updating the docs with this kind of tuning advice.

from opennetvm.

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.