Thread (6 messages) 6 messages, 3 authors, 2016-06-30

Re: [PATCH v2] mem: revert page locking when not using hugepages

From: Thomas Monjalon <hidden>
Date: 2016-06-30 17:19:31

2016-06-27 17:58, Olivier Matz:
This reverts commit 593a084afc2b441895aeca78a2c4465e450d0ef5.

Since recently [1], it is not possible to run the dpdk with
non-root privileges and the --no-huge option. This is because the eal
layer tries to lock the memory. Using locked memory is mandatory for
physical devices because they reference physical addresses.

But a user may want to start the dpdk without locked memory, because he
does not have the permission to do so, and/or does not have this need,
for instance because he uses virtual drivers.

So this commit reverts the use of MAP_LOCKED in mmap() flags.

[1] http://www.dpdk.org/ml/archives/dev/2016-May/039404.html

Fixes: 593a084afc2b ("mem: lock pages when not using hugepages")
Reported-by: Panu Matilainen <redacted>
Signed-off-by: Olivier Matz <redacted>
Applied, thanks

Let's keep in mind to make things working with --no-huge.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help