Thread (1 message) 1 message, 1 author, 2020-03-27

Re: [dpdk-dev] [dpdk-stable] [PATCH v3] eal/mem: preallocate VA space in no-huge mode

From: Zhou, JunX W <hidden>
Date: 2020-03-27 02:23:55

Tested-by: Zhou, JunX W <redacted>
-----Original Message-----
From: Jiang, YuX 
Sent: Thursday, March 26, 2020 8:24 PM
To: David Marchand <redacted>; Burakov, Anatoly <redacted>
Cc: dev <redacted>; dpdk stable <redacted>; Zhou, JunX W <redacted>
Subject: RE: [dpdk-dev] [dpdk-stable] [PATCH v3] eal/mem: preallocate VA space in no-huge mode

+  Zhou, JunX W [off-list ref]

-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of David Marchand
Sent: Wednesday, March 25, 2020 10:40 PM
To: Burakov, Anatoly <redacted>
Cc: dev <redacted>; dpdk stable <redacted>
Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v3] eal/mem: preallocate VA space in no-huge mode

On Fri, Feb 7, 2020 at 12:11 PM Anatoly Burakov [off-list ref] wrote:
When --no-huge mode is used, the memory is currently allocated with 
mmap(NULL, ...). This is fine in most cases, but can fail in cases 
where DPDK is run on a machine with an IOMMU that is of more limited 
address width than that of a VA, because we're not specifying the 
address hint for mmap() call.

Fix it by preallocating VA space before mapping it.

Cc: stable@dpdk.org

Signed-off-by: Anatoly Burakov <redacted>
Reproduced issue reported by Thomas on v2.
Works fine with v3.

Tested-by: David Marchand <redacted>


Does this issue affect FreeBSD too?

--
David Marchand
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help