* [dpdk-users] R: Issue with more Cores assigned: Cannot mmap device resource file
@ 2017-03-15 14:27 David Coen
0 siblings, 0 replies; only message in thread
From: David Coen @ 2017-03-15 14:27 UTC (permalink / raw)
To: users
Hi Kai, I agree with you.
Hi have quite the same issue, a primary application and a secondary one
running, sometimes, with more than 4 cores.
I'm using DPDK 16.11 on RedHat 6.7.
Till now I solved in this way:
- Disabling ASLR by adding those two lines to "/etc/sysctl.conf":
# Disable Address Space Layout Randomization (ASLR) (needed
by DPDK)
kernel.randomize_va_space = 0
- Getting virtual address of the first (the one with the minimum address
value) memory segment returned from the function "rte_eal_get_physmem_layout
()", called from a "dummy" primary application used only to get this
address.
- Passing the above virtual address as a parameter for the "real" primary
application using the " --base-virtaddr= " dpdk command line option. When
secondary app starts, it all goes well with the specified base address.
I've tested this solution on different servers and it's always ok.
I think that there is some kind of limitation on DPDK primary/secondary
initialization process that could be improved.
Regards,
David
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-15 14:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 14:27 [dpdk-users] R: Issue with more Cores assigned: Cannot mmap device resource file David Coen
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).