DPDK usage discussions
 help / color / mirror / Atom feed
* Re: [dpdk-users] [pktgen]how to set pktgen tx rate and what does it mean
       [not found] <F994AE62EFA2864BAC5A2B81D86C27C13E2D7925@nkgeml514-mbx.china.huawei.com>
@ 2016-10-29 12:51 ` Wiles, Keith
  0 siblings, 0 replies; only message in thread
From: Wiles, Keith @ 2016-10-29 12:51 UTC (permalink / raw)
  To: Caianning; +Cc: users


> 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-29 12:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <F994AE62EFA2864BAC5A2B81D86C27C13E2D7925@nkgeml514-mbx.china.huawei.com>
2016-10-29 12:51 ` [dpdk-users] [pktgen]how to set pktgen tx rate and what does it mean Wiles, Keith

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).