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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 6842 bytes --]

Dear Keith,


    The machine I used is 8 cores.

    Today I do another test that using intel 82599 10G NIC to tranfer packets between pktgen and dpdk.

    I use the same commands as "./pktgen ¨Cc 0xf ¨Cn2 -- -P ¨Cm "2.0,3.1"" on pktgen side and ¡°./test_pmd ¨Cc 0xf ¨Cn2 -- -i ¨Cportmask=0x3 ¨Ccoremask=0xc¡± on the dpdk side.

    It is better than 1G NIC case. It can transfer packets about 3-5 minites in random. Sometimes one port can keep transfering ,but the other port is stopped.  I don't know why it suddenly stops transfering.

    I add some debug info in function pktgen_send_pkts, it seems that pg_pktmbuf_alloc_bulk return val is not zero, so it can't call pktgen_send_burst.

>static __inline__ void pktgen_send_pkts(port_info_t *info, uint16_t qid, struct rte_mempool *mp)
>{
> uint32_t flags;
> int rc = 0;
>
> flags = rte_atomic32_read(&info->port_flags);
>
> if (flags & SEND_FOREVER) {
> rc = pg_pktmbuf_alloc_bulk(mp,
>   info->q[qid].tx_mbufs.m_table,
>   info->tx_burst);
> if (rc == 0) {
> info->q[qid].tx_mbufs.len = info->tx_burst;
> info->q[qid].tx_cnt += info->tx_burst;
>
> pktgen_send_burst(info, qid);
> }
> } else {

    I will try your suggest for the lastest 18.08 release for pktgen. Thank you very much.


Best Regards.

Vic

________________________________
·¢¼þÈË: Wiles, Keith <keith.wiles@intel.com>
·¢ËÍʱ¼ä: 2018Äê8ÔÂ14ÈÕ 21:31
ÊÕ¼þÈË: Vic Wang(BJ-RD)
³­ËÍ: users@dpdk.org
Ö÷Ìâ: Re: [dpdk-users] [ptkgen-dpdk] Only can send a few packets and stopped.



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 ¨Cc 0xf ¨Cn2 -- -P ¨Cm ¡°2.0,3.1¡±¡±. And on the machine B ,run dpdk with the command ¡°./test_pmd ¨Cc 0xf ¨Cn2 -- -i ¨Cportmask=0x3 ¨Ccoremask=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



±£ÃÜÉùÃ÷£º
±¾Óʼþº¬Óб£ÃÜ»òרÓÐÐÅÏ¢£¬½ö¹©Ö¸¶¨ÊÕ¼þÈËʹÓá£ÑϽû¶Ô±¾Óʼþ»òÆäÄÚÈÝ×öÈκÎδ¾­ÊÚȨµÄ²éÔÄ¡¢Ê¹Óᢸ´ÖÆ»òת·¢¡£
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.

  reply	other threads:[~2018-08-14 14:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-13 11:01 [dpdk-users] " 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         ` [dpdk-users] " Wiles, Keith
2018-08-14 14:18           ` Vic Wang(BJ-RD) [this message]
2018-08-14 14:46             ` 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=4d83da32a0f14613b064c6161d64bc72@zhaoxin.com \
    --to=vicwang@zhaoxin.com \
    --cc=keith.wiles@intel.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).