DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Linux descheduling DPDK transmit thread in SMP system? Any help greatly appreciated...
@ 2017-09-05 16:35 terry.montague.1980
  2017-09-05 16:55 ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: terry.montague.1980 @ 2017-09-05 16:35 UTC (permalink / raw)
  To: users

Hi all,
I'm running a DPDK transmit thread with the ixgbe PMD on Ubuntu 17.04, with dual Xeon E5-2623 v4 CPUs  on an Intel S2600 motherboard. The cores in use by DPDK are isolated in the boot cmdline with "isolcpus"
What I'm observing is I believe, on occasion, the DPDK transmit thread being descheduled by the system for between 20 and 60 milliseconds.
I've tried running as Real time with max priority, and tweaking the scheduling through /proc/sys/kernel/sched_rt_runtime_us to be 99.999% available for real time thread, but so far no improvement
I notice there are various kernel threads resident on the isolated cpus, cpuhp/watchdog/migration/ksoftirqd +multiple kworker threads.
I can only assume the system is occasionally running these kernel side instead, although the CPU time taken  (tens of milliseconds) seems very high. Note please that I amd NOT running with a modified kernel (nohz_full is not set).
Does anyone have any advice to keep the DPDK transmit thread running for more of the time on this SMP system ?
Many thanks
Terry.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-users] Linux descheduling DPDK transmit thread in SMP system? Any help greatly appreciated...
  2017-09-05 16:35 [dpdk-users] Linux descheduling DPDK transmit thread in SMP system? Any help greatly appreciated terry.montague.1980
@ 2017-09-05 16:55 ` Stephen Hemminger
  2017-09-06  7:48   ` terry.montague.1980
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2017-09-05 16:55 UTC (permalink / raw)
  To: terry.montague.1980; +Cc: users

On Tue, 5 Sep 2017 17:35:16 +0100 (BST)
"terry.montague.1980@btinternet.com" <terry.montague.1980@btinternet.com> wrote:

> Hi all,
> I'm running a DPDK transmit thread with the ixgbe PMD on Ubuntu 17.04, with dual Xeon E5-2623 v4 CPUs  on an Intel S2600 motherboard. The cores in use by DPDK are isolated in the boot cmdline with "isolcpus"
> What I'm observing is I believe, on occasion, the DPDK transmit thread being descheduled by the system for between 20 and 60 milliseconds.
> I've tried running as Real time with max priority, and tweaking the scheduling through /proc/sys/kernel/sched_rt_runtime_us to be 99.999% available for real time thread, but so far no improvement
> I notice there are various kernel threads resident on the isolated cpus, cpuhp/watchdog/migration/ksoftirqd +multiple kworker threads.
> I can only assume the system is occasionally running these kernel side instead, although the CPU time taken  (tens of milliseconds) seems very high. Note please that I amd NOT running with a modified kernel (nohz_full is not set).
> Does anyone have any advice to keep the DPDK transmit thread running for more of the time on this SMP system ?
> Many thanks
> Terry.

Probably not a Linux scheduler issue. More likely some system hardware thing like SMT or ME.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-users] Linux descheduling DPDK transmit thread in SMP system? Any help greatly appreciated...
  2017-09-05 16:55 ` Stephen Hemminger
@ 2017-09-06  7:48   ` terry.montague.1980
  2017-09-06 15:16     ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: terry.montague.1980 @ 2017-09-06  7:48 UTC (permalink / raw)
  To: users; +Cc: users


Stephen - thank-you for your input.

Tens of milliseconds seems an awful long time for some kernel-side resource lock, although its obviously doing something with the time. There is only one user thread running on this core (my transmit thread).

Does anyone have an approach to suggest to narrow this down a bit? Would I expect this to be worse on an SMP system?

Many thanks

Terry.


----Original message----
>From : stephen@networkplumber.org
Date : 05/09/17 - 17:55 (BST)
To : terry.montague.1980@btinternet.com
Cc : users@dpdk.org
Subject : Re: [dpdk-users] Linux descheduling DPDK transmit thread in SMP system? Any help greatly appreciated...

On Tue, 5 Sep 2017 17:35:16 +0100 (BST)
"terry.montague.1980@btinternet.com" <terry.montague.1980@btinternet.com> wrote:

> Hi all,
> I'm running a DPDK transmit thread with the ixgbe PMD on Ubuntu 17.04, with dual Xeon E5-2623 v4 CPUs  on an Intel S2600 motherboard. The cores in use by DPDK are isolated in the boot cmdline with "isolcpus"
> What I'm observing is I believe, on occasion, the DPDK transmit thread being descheduled by the system for between 20 and 60 milliseconds.
> I've tried running as Real time with max priority, and tweaking the scheduling through /proc/sys/kernel/sched_rt_runtime_us to be 99.999% available for real time thread, but so far no improvement
> I notice there are various kernel threads resident on the isolated cpus, cpuhp/watchdog/migration/ksoftirqd +multiple kworker threads.
> I can only assume the system is occasionally running these kernel side instead, although the CPU time taken  (tens of milliseconds) seems very high. Note please that I amd NOT running with a modified kernel (nohz_full is not set).
> Does anyone have any advice to keep the DPDK transmit thread running for more of the time on this SMP system ?
> Many thanks
> Terry.

Probably not a Linux scheduler issue. More likely some system hardware thing like SMT or ME.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-users] Linux descheduling DPDK transmit thread in SMP system? Any help greatly appreciated...
  2017-09-06  7:48   ` terry.montague.1980
@ 2017-09-06 15:16     ` Stephen Hemminger
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2017-09-06 15:16 UTC (permalink / raw)
  To: terry.montague.1980; +Cc: users

On Wed, 6 Sep 2017 08:48:58 +0100 (BST)
"terry.montague.1980@btinternet.com" <terry.montague.1980@btinternet.com> wrote:

> Stephen - thank-you for your input.
> 
> Tens of milliseconds seems an awful long time for some kernel-side resource lock, although its obviously doing something with the time. There is only one user thread running on this core (my transmit thread).
> 
> Does anyone have an approach to suggest to narrow this down a bit? Would I expect this to be worse on an SMP system?
> 
> Many thanks
> 
> Terry.
> 
> 
> ----Original message----
> From : stephen@networkplumber.org
> Date : 05/09/17 - 17:55 (BST)
> To : terry.montague.1980@btinternet.com
> Cc : users@dpdk.org
> Subject : Re: [dpdk-users] Linux descheduling DPDK transmit thread in SMP system? Any help greatly appreciated...
> 
> On Tue, 5 Sep 2017 17:35:16 +0100 (BST)
> "terry.montague.1980@btinternet.com" <terry.montague.1980@btinternet.com> wrote:
> 
> > Hi all,
> > I'm running a DPDK transmit thread with the ixgbe PMD on Ubuntu 17.04, with dual Xeon E5-2623 v4 CPUs  on an Intel S2600 motherboard. The cores in use by DPDK are isolated in the boot cmdline with "isolcpus"
> > What I'm observing is I believe, on occasion, the DPDK transmit thread being descheduled by the system for between 20 and 60 milliseconds.
> > I've tried running as Real time with max priority, and tweaking the scheduling through /proc/sys/kernel/sched_rt_runtime_us to be 99.999% available for real time thread, but so far no improvement
> > I notice there are various kernel threads resident on the isolated cpus, cpuhp/watchdog/migration/ksoftirqd +multiple kworker threads.
> > I can only assume the system is occasionally running these kernel side instead, although the CPU time taken  (tens of milliseconds) seems very high. Note please that I amd NOT running with a modified kernel (nohz_full is not set).
> > Does anyone have any advice to keep the DPDK transmit thread running for more of the time on this SMP system ?
> > Many thanks
> > Terry.  
> 
> Probably not a Linux scheduler issue. More likely some system hardware thing like SMT or ME.
> 

Maybe power management. If you have any BIOS settings that have balanced or power aware they
can slow the CPU. Also, the hidden BIOS SMI can cause latency spikes. It may have nothing to do with your
application or kernel.

https://stackoverflow.com/questions/25399405/evaluating-smi-system-management-interrupt-latency-on-linux-centos-intel-machi


Also this may provide some clues, although it is not DPDK related.

https://access.redhat.com/sites/default/files/attachments/201501-perf-brief-low-latency-tuning-rhel7-v1.1.pdf

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-06 15:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-05 16:35 [dpdk-users] Linux descheduling DPDK transmit thread in SMP system? Any help greatly appreciated terry.montague.1980
2017-09-05 16:55 ` Stephen Hemminger
2017-09-06  7:48   ` terry.montague.1980
2017-09-06 15:16     ` Stephen Hemminger

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