From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0100.outbound.protection.outlook.com [65.55.169.100]) by dpdk.org (Postfix) with ESMTP id F0713CE7 for ; Mon, 8 Dec 2014 20:02:39 +0100 (CET) Received: from CY1PR0301MB0762.namprd03.prod.outlook.com (25.160.159.156) by CY1PR0301MB0762.namprd03.prod.outlook.com (25.160.159.156) with Microsoft SMTP Server (TLS) id 15.1.26.15; Mon, 8 Dec 2014 19:02:38 +0000 Received: from CY1PR0301MB0762.namprd03.prod.outlook.com ([25.160.159.156]) by CY1PR0301MB0762.namprd03.prod.outlook.com ([25.160.159.156]) with mapi id 15.01.0026.003; Mon, 8 Dec 2014 19:02:38 +0000 From: Karmarkar Suyash To: "dev@dpdk.org" Thread-Topic: DDPK use of MAP_FIXED in mmap Thread-Index: AdATGOYf8qH8hUB7RVSEmiBlIHegdA== Date: Mon, 8 Dec 2014 19:02:38 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [103.227.98.5] x-microsoft-antispam: BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0762; x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB0762; x-forefront-prvs: 041963B986 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(199003)(189002)(97736003)(19580395003)(99286002)(54606007)(110136001)(2501002)(76576001)(68736005)(19617315012)(31966008)(46102003)(62966003)(19300405004)(4396001)(50986999)(54206007)(77156002)(40100003)(99396003)(450100001)(101416001)(122556002)(64706001)(106356001)(33656002)(2656002)(66066001)(229853001)(86362001)(87936001)(21056001)(20776003)(2351001)(107046002)(107886001)(92566001)(19625215002)(16236675004)(15975445007)(120916001)(74316001)(105586002)(54356999)(102836002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0762; H:CY1PR0301MB0762.namprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-OriginatorOrg: sonusnet.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] DDPK use of MAP_FIXED in mmap X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2014 19:02:40 -0000 Hello, In DPDK when we use mmap why are we passing the MAP_FIXED flag when Linux m= an 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 that address. = addr must be a multiple of the page size. If the memory region specified by= addr and len overlaps pages of any existing mapping(s), then the overlappe= d part of the existing mapping(s) will be discarded. If the specified addre= ss cannot be used, mmap() will fail. Because requiring a fixed address for = a mapping is less portable, the use of this option is discouraged. Regards Suyash Karmarkar