DPDK usage discussions
 help / color / mirror / Atom feed
From: Alexander Kiselev <kiselev99@gmail.com>
To: Shawn Lewis <smlsr@tencara.com>
Cc: users@dpdk.org
Subject: Re: [dpdk-users] Lcore impact
Date: Thu, 14 Apr 2016 20:02:13 +0300	[thread overview]
Message-ID: <6EBF3C5F-D1A0-4E49-9A16-7FDB2F15E46C@gmail.com> (raw)
In-Reply-To: <CAKdLGVAdNmid2ZXtxDd=Z-dxSDoaPk5JMWCPJTCoHxb9pubB4g@mail.gmail.com>



> 14 апр. 2016 г., в 19:35, Shawn Lewis <smlsr@tencara.com> написал(а):
> 
> Lots of things...
> 
> One just because you have a process running on an lcore, does not mean thats all that runs on it.  Unless you have told the kernel at boot to NOT use those specific cores, those cores will be used for many things OS related.
Generally yes, but unless I start sending data to socket there is no packet loss.  I did about 10 test runs in a raw and everythis was ok. And there is no other application running on that test machine that uses cpu cores.

So the question is why this socket operations influence the other lcore?

> 
> IRQBlance
> System OS operations.
> Other Applications.
> 
> So by doing file i/o you are generating interrupts, where those interrupts get serviced is up to IRQBalancer.  So could be any one of your cores.
That is a good point. I can use cpu affinity feature to bind unterruption handler to the core not used in my test. But I send data locally over localhost. Is it possible to use cpu affinity in that case?

> 
> 
> 
>> On Thu, Apr 14, 2016 at 12:31 PM, Alexander Kiselev <kiselev99@gmail.com> wrote:
>> Could someone give me any hints about what could cause permormance issues in a situation where one lcore doing a lot of linux system calls (read/write on socket) slow down the other lcore doing packet forwarding? In my test the forwarding lcore doesn't share any memory structures with the other lcore that sends test data to socket. Both lcores pins to different processors cores. So therotically they shouldn't have any impact on each other but they do, once one lcore starts sending data to socket the other lcore starts dropping packets. Why?
> 

  reply	other threads:[~2016-04-14 17:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-14 16:31 Alexander Kiselev
2016-04-14 16:35 ` Shawn Lewis
2016-04-14 17:02   ` Alexander Kiselev [this message]
2016-04-14 17:06     ` Shawn Lewis
2016-04-14 17:18       ` Alexander Kiselev
2016-04-14 17:49         ` Hu, Xuekun
2016-04-14 19:31           ` Александр Киселев
2016-04-14 20:43             ` Hu, Xuekun
2016-04-14 21:32               ` Александр Киселев
2016-04-14 22:09                 ` Hu, Xuekun
2016-04-14 22:47                   ` Александр Киселев
2016-04-14 23:51                     ` Александр Киселев

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=6EBF3C5F-D1A0-4E49-9A16-7FDB2F15E46C@gmail.com \
    --to=kiselev99@gmail.com \
    --cc=smlsr@tencara.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).