DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 50] Secondary process launch is unreliable
@ 2018-05-22 16:15 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2018-05-22 16:15 UTC (permalink / raw)
  To: dev

https://dpdk.org/tracker/show_bug.cgi?id=50

            Bug ID: 50
           Summary: Secondary process launch is unreliable
           Product: DPDK
           Version: 18.05
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: dev@dpdk.org
          Reporter: anatoly.burakov@intel.com
  Target Milestone: ---

Secondary process initialization was known to be unreliable before, with
numerous workarounds already being available and documented. However, DPDK
version 18.05 has introduced memory subsystem rework, which has made situation
worse due to much more memory being pre-reserved at initialization.

In addition, following investigation, it was revealed that DPDK secondary
processes ran with fork()/execv() method from within another DPDK application
(such as is the case with some DPDK unit tests) carry an additional risk of
initialization failures due to how pthread library appears to be working under
these conditions. Specifically, two IPC threads created by EAL will take up a
lot of address space (more than 10x of the usual amount), thereby interfering
with secondary process mappings and causing initialization failure. In this
case, disabling ASLR may actually make the situation worse, as
non-deterministic but sometimes lucky memory layout will be replaced by
deterministically wrong address mappings.

Things to try when affected by this issue:

* Using --base-virtaddr to relocate DPDK memory segments at initialization
* Not running DPDK applications using fork()/execv() method
* Enabling or disabling ASLR
* Recompiling the binary with different configuration
* Reducing the amount of preallocated memory (adjusting config options
CONFIG_RTE_MAX_MEM_MB_PER_TYPE and/or RTE_MAX_MEM_MB_PER_LIST)

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-22 16:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-22 16:15 [dpdk-dev] [Bug 50] Secondary process launch is unreliable bugzilla

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