DPDK usage discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Caianning <caianning@huawei.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] [pktgen]how to set pktgen tx rate and what does it mean
Date: Sat, 29 Oct 2016 12:51:41 +0000	[thread overview]
Message-ID: <2F63459B-58A2-46EB-8220-454A851CA1E4@intel.com> (raw)
In-Reply-To: <F994AE62EFA2864BAC5A2B81D86C27C13E2D7925@nkgeml514-mbx.china.huawei.com>


> On Oct 28, 2016, at 10:51 PM, Caianning <caianning@huawei.com> wrote:
> 
> Hi,
>         I am using pktgen to send packet.
> As the guide said, I set with cmd "set 0 rate 1" and got 1.19Mpps (pkt size 512B).
> So my question: How to set it to get a specific packet rate, such as 1Mpps or 1Gbps?

If you set the rate close to the value want in a percent then you can use a hidden command to adjust the cycles per TX burst.

use the ‘tx_debug’ command to toggle the display to show more information and one of these is the Cycles per TX. Adjust the right hand number to get closer to the Mpps you want using ‘set <portlist> tx_cycles <value>’ adjusting the value shown. Lower number will go faster and high number will go slower. Remember the the cycles per TX burst value, so you may want to adjust the burst size too.

> 
> Thanks.

Regards,
Keith


           reply	other threads:[~2016-10-29 12:51 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <F994AE62EFA2864BAC5A2B81D86C27C13E2D7925@nkgeml514-mbx.china.huawei.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2F63459B-58A2-46EB-8220-454A851CA1E4@intel.com \
    --to=keith.wiles@intel.com \
    --cc=caianning@huawei.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).