[dpdk-dev] DDPK use of MAP_FIXED in mmap

2014-12-09 Thread Xie, Huawei
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > Sent: Tuesday, December 09, 2014 2:55 AM > To: Karmarkar Suyash > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] DDPK use of MAP_FIXED in mmap > > On Mon, Dec 08,

[dpdk-dev] DDPK use of MAP_FIXED in mmap

2014-12-09 Thread Bruce Richardson
On Tue, Dec 09, 2014 at 10:26:34AM -0500, Neil Horman wrote: > On Mon, Dec 08, 2014 at 07:02:38PM +, Karmarkar Suyash wrote: > > Hello, > > > > In DPDK when we use mmap why are we passing the MAP_FIXED flag when Linux > > man page itself says that the option is discouraged? Any specific

[dpdk-dev] DDPK use of MAP_FIXED in mmap

2014-12-09 Thread Neil Horman
On Tue, Dec 09, 2014 at 04:04:11PM +, Bruce Richardson wrote: > On Tue, Dec 09, 2014 at 10:26:34AM -0500, Neil Horman wrote: > > On Mon, Dec 08, 2014 at 07:02:38PM +, Karmarkar Suyash wrote: > > > Hello, > > > > > > In DPDK when we use mmap why are we passing the MAP_FIXED flag when Linux

[dpdk-dev] DDPK use of MAP_FIXED in mmap

2014-12-09 Thread Neil Horman
On Mon, Dec 08, 2014 at 07:02:38PM +, Karmarkar Suyash wrote: > Hello, > > In DPDK when we use mmap why are we passing the MAP_FIXED flag when Linux man > page itself says that the option is discouraged? Any specific reason for > passing the MAP_FIXED flag? > Because theres nothing wrong

[dpdk-dev] DDPK use of MAP_FIXED in mmap

2014-12-09 Thread Bruce Richardson
On Mon, Dec 08, 2014 at 07:02:38PM +, Karmarkar Suyash wrote: > Hello, > > In DPDK when we use mmap why are we passing the MAP_FIXED flag when Linux man > page itself says that the option is discouraged? Any specific reason for > passing the MAP_FIXED flag? > > >

[dpdk-dev] DDPK use of MAP_FIXED in mmap

2014-12-08 Thread Karmarkar Suyash
Hello, In DPDK when we use mmap why are we passing the MAP_FIXED flag when Linux man page itself says that the option is discouraged? Any specific reason for passing the MAP_FIXED flag? http://linux.die.net/man/2/mmap MAP_FIXED Don't interpret addr as a hint: place the mapping at exactly