DPDK usage discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: "Vic Wang(BJ-RD)" <VicWang@zhaoxin.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] [ptkgen-dpdk] Only can send a few packets and stopped.
Date: Tue, 14 Aug 2018 13:31:38 +0000	[thread overview]
Message-ID: <E2DE4FE5-478E-44A8-8362-73F914DFA410@intel.com> (raw)
In-Reply-To: <aaa52c8aed6e45b7b086dce08eda2573@zhaoxin.com>



On Aug 13, 2018, at 10:10 PM, Vic Wang(BJ-RD) <VicWang@zhaoxin.com<mailto:VicWang@zhaoxin.com>> wrote:

Hi  Keith,
       I loop the cable back to the different port on the same machine, but it doesn’t transfer forever, just transfer about one second and stop.
       Then I do another try. I use two ports on both machine A and B. On the machine A , run pktgen with the command “./pktgen –c 0xf –n2 -- -P –m “2.0,3.1””. And on the machine B ,run dpdk with the command “./test_pmd –c 0xf –n2 -- -i –portmask=0x3 –coremask=0xc”. It can also only send a few packets and stop.
       The version of dpdk is v17.11.2, and the version of pktgen is 3.5.2. The NIC I used is intel 82575 Gigabit nic. Is there any problem above?.
<image001.png>

How many cores does this machine have?

In the pktgen command you should really use the -l instead of the -c command as the -l is easier to read and use.

pktgen -l 0-3 -n2 — -P -m “2.0, 3.1”

Also you are using extra cores then you need in the -m command, pktgen needs one extra core for display/timers then used for ports. Using -l 1-3 would give pktgen core 1 and 2/3 are used for the ports.

The only other issue is the 1G PMD is not used much I think and it could have a problem as it does not work in testpmd and pktgen. To me this is not a pktgen problem but a problem with something else.

The only other thing I can suggest is trying the latest 18.08 release for pktgen and see if that works.


Best Regards!
VicWang
发件人: Wiles, Keith [mailto:keith.wiles@intel.com]
发送时间: 2018年8月14日 5:13
收件人: Vic Wang(BJ-RD) <VicWang@zhaoxin.com<mailto:VicWang@zhaoxin.com>>
抄送: users@dpdk.org<mailto:users@dpdk.org>
主题: Re: [dpdk-users] [ptkgen-dpdk] Only can send a few packets and stopped.




On Aug 13, 2018, at 9:46 AM, Vic Wang(BJ-RD) <VicWang@zhaoxin.com<mailto:VicWang@zhaoxin.com>> wrote:

Hi Wiles,

The version of pktgen I used is pktgen-3.5.2.
Additional, I just use one port for recving and xmiting with "-m [2:3].0" .

When I tried tools/pktgen-run.sh with the line "load_file = -f test/set_seq.lua" and without starting the dpdk on computer B,  it seems to work a while. But with starting the dpdk on computer B, the pktgen on computer A can only transfer a few packets.

Pktgen normally works unless the command line is wrong. In your case it seems like the Link is not up or is going up and down. If you can loop the cable back to the same machine to a different port (if you have two ports).



Best Regards!
VicWang
________________________________
发件人: Wiles, Keith <keith.wiles@intel.com<mailto:keith.wiles@intel.com>>
发送时间: 2018年8月13日 21:18
收件人: Vic Wang(BJ-RD)
抄送: users@dpdk.org<mailto:users@dpdk.org>
主题: Re: [dpdk-users] [ptkgen-dpdk] Only can send a few packets and stopped.



> On Aug 13, 2018, at 6:01 AM, Vic Wang(BJ-RD) <VicWang@zhaoxin.com<mailto:VicWang@zhaoxin.com>> wrote:
>
> Hi,
>       When I run pktgen-dpdk on computer A and run dpdk on computer B, the pktgen can only send a few packets( about one second) and stopped.
>       The command on A side is ./tools/pktgen-run.sh.
>       I modified some line in the tools/pktgen-run.sh to suit my computer. The critical line is "load_file = "-f test/tx-rx-loopback.lua"". I also tried "load_file = -f test/set_seq.lua". But it also only can send a few packets and stopped.
>       Does anyone do it successful? I need your help, thanks very much.

Can you please tell me the version of pktgen and I would like to see the command line that is printed when run the script.

>
> Best Regards!
> VicWang
>
>
>
> ?????
> ?????????????????????????????????????????????????????
> CONFIDENTIAL NOTE:
> This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

These notices are not valid on a public email list, please remove them when sending to this public list.


Regards,
Keith


保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

Regards,
Keith




保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

Regards,
Keith


  parent reply	other threads:[~2018-08-14 13:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-13 11:01 Vic Wang(BJ-RD)
2018-08-13 13:18 ` Wiles, Keith
2018-08-13 14:46   ` [dpdk-users] 答复: " Vic Wang(BJ-RD)
2018-08-13 21:13     ` [dpdk-users] " Wiles, Keith
2018-08-14  3:12       ` [dpdk-users] 答复: " Vic Wang(BJ-RD)
     [not found]       ` <aaa52c8aed6e45b7b086dce08eda2573@zhaoxin.com>
2018-08-14 13:31         ` Wiles, Keith [this message]
2018-08-14 14:18           ` Vic Wang(BJ-RD)
2018-08-14 14:46             ` [dpdk-users] " Wiles, Keith
2018-08-15  2:44               ` [dpdk-users] 答复: " Vic Wang(BJ-RD)
2018-08-15 12:52                 ` [dpdk-users] " Wiles, Keith
2018-08-15 13:19                   ` [dpdk-users] 回复: " Vic Wang(BJ-RD)

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=E2DE4FE5-478E-44A8-8362-73F914DFA410@intel.com \
    --to=keith.wiles@intel.com \
    --cc=VicWang@zhaoxin.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).