From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH v2 2/6] mem: use address hint for mapping hugepages Date: Fri, 5 Oct 2018 13:16:07 +0100 Message-ID: <729cabae-ab75-8080-7da6-bf603099a938@intel.com> References: <1538741212-7922-1-git-send-email-alejandro.lucero@netronome.com> <1538741212-7922-3-git-send-email-alejandro.lucero@netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Alejandro Lucero , dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 0E89423D for ; Fri, 5 Oct 2018 14:16:30 +0200 (CEST) In-Reply-To: <1538741212-7922-3-git-send-email-alejandro.lucero@netronome.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 05-Oct-18 1:06 PM, Alejandro Lucero wrote: > Linux kernel uses a really high address as starting address for > serving mmaps calls. If there exist addressing limitations and > IOVA mode is VA, this starting address is likely too high for > those devices. However, it is possible to use a lower address in > the process virtual address space as with 64 bits there is a lot > of available space. > > This patch adds an address hint as starting address for 64 bits > systems and increments the hint for next invocations. If the mmap > call does not use the hint address, repeat the mmap call using > the hint address incremented by page size. > > Signed-off-by: Alejandro Lucero > --- Reviewed-by: Anatoly Burakov -- Thanks, Anatoly