DPDK usage discussions
 help / color / mirror / Atom feed
From: Sungho Hong <maverickjin88@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] Understanding the Proper way of using ip fragmentation
Date: Sun, 4 Nov 2018 20:57:09 -0700	[thread overview]
Message-ID: <CAK8vx=h0GRWdXYQYhV7aa-q_5RkSdXPbRZ1PqpZK2eSkAXPc0w@mail.gmail.com> (raw)

Hello DPDK experts,
I am having trouble applying ip fragmentation in multiple cores.
*My ultimate questions is whether it is possible to have multiple ip
fragmentation table allocated with each different direct and indirect
pool. *
Really thankful if somebody can point out what I am doing wrong here or
provide me with some alternative solutions.

*Purpose*
I am trying to apply ip fragmentation in multiple cores, and maximize the
throughput performance with messages that are bigger than MTU.

for each local & remote host (using 1 to 8 logical cores)
1 ~ 4 for transferring fragmented message
4 ~ 8 for receiving and assemble message

*Method of Throughput -testing *
Sending 4KB message from local and remote echos the message back to the
local.


*Problem *
If I try to allocate fragmentation table to each of the cores, I get a
segmentation error, and this happens no matter I shrink the size of the
fragmentation table.
The way I have tried to allocate the pools and frag-table are like this
below.

for each coreid, coreid < allocated cores; coreid++
     fragmentation_table[coreid] = rte_ip_frag_table_create(...);
     direct_pool[coreid] = rte_pktmbuf_pool_create(...);
     indirect_pool[coreid] rte_pktmbuf_pool_create(...);

So alternatively, I have allocated multiple fragmentation table for each
lcores but let the direct and indirect pools be shared together.

for each coreid, coreid < allocated cores; coreid++
     fragmentation_table[coreid] = rte_ip_frag_table_create(...);

direct_pool = rte_pktmbuf_pool_create(...);
indirect_pool = rte_pktmbuf_pool_create(...);

*Situation*
Now when I send messages using multiple cores from local to remote host,
the remote host only successfully receive the message when I send the
message adding a delay such as ( adding sleep(1); for each message send. )
I was able to receive the message from local to remote. But, cannot receive
any data when I try to send them without any delay.


Personally, I suspect that I should allocate direct pool and indirect pool
for each logical cores, and I think that is the main issue. Since I was
only able to successfully use the frag-table using only one logical core, I
suspect that I am not using the fragmentation table correctly in multiple
cores.


I really want to hear from the DPDK experts about this issue I am facing,
and will be really grateful for any advice on this...

             reply	other threads:[~2018-11-05  3:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-05  3:57 Sungho Hong [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-11-05 21:54 Sungho Hong
2018-11-05  3:06 Sungho Hong

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='CAK8vx=h0GRWdXYQYhV7aa-q_5RkSdXPbRZ1PqpZK2eSkAXPc0w@mail.gmail.com' \
    --to=maverickjin88@gmail.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).