Received: by 10.192.165.156 with SMTP id m28csp2460609imm; Thu, 12 Apr 2018 14:53:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx481VNQies0B5pSwRkdbF661ozoOI2T3eJ4/BaqRQv8DZsMKzdYzMSqUcrCrSgZ1Lz2XF5If X-Received: by 10.99.51.137 with SMTP id z131mr1998390pgz.386.1523569987924; Thu, 12 Apr 2018 14:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523569987; cv=none; d=google.com; s=arc-20160816; b=MpRI/TzFegl6CxLw+II9GcUwdv2wjrt0nmewuRfJB8S6W7LPk3fDRyA6q+t8EsLmBw uqwFRKI3qaYLdtCLZ4RZ2+o0tjxfMCSOceetTD3nEcZZS3dBt4IcSSWxKlmYWvn2nx1P TsQnE1Qomx/rFqoEHuKAE9UUHvyRI8VlYROmR4391g75TOlks92yex9vc00t4NkYxXPL p9Q1kv7c6yYvy4YE1tnH9Ms2glHeyJpBVZ4ImqTzFMbSG24GtlXwmO+w6jYx4U5+XnDC 5AamujCDGDaPdpiibs0QgG3dzj6OMyergZ7BntiN1E/EbI6iAj0+uWchbbdpK2cvZWuE dtJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=NUL6eXQ7YL0DEC4VhJiJVd+RylWc/RJEnsQQCJ3U2wA=; b=ncNtM6wuQ703ig5ACTjk9ZdO9qjNYgFTLvytpQf9i/847oQs53fD+UbBEcVu0cgE4E hWkyCAgukGPxifcuqjBxgo/N3Ar4lIMEp8pu2KJMoX5ucGuaQWxd1URPwJ1cB3eHXYuh jGxwytzFLAqGlCTLAP8zvYPMg3o/KicPJ2PwG6yBfbNdlqErYqNnm4McA1/9HIjmLc2D HRcdiwGV8RZeNEbrslXMi8Z5Ah4YhL6Lv+mHLOJqoeVGWKsLhSOZinN8YCtGk+1n3zo5 WPTtCaRQdgp/eULUev3nBh8IIxhcQN8oyayhui66fwx+bP5LoCqOaveBhKKricUhf2a/ A9tQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si2905564pga.1.2018.04.12.14.52.35; Thu, 12 Apr 2018 14:53:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752255AbeDLUk0 (ORCPT + 99 others); Thu, 12 Apr 2018 16:40:26 -0400 Received: from mga18.intel.com ([134.134.136.126]:56517 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751625AbeDLUkZ (ORCPT ); Thu, 12 Apr 2018 16:40:25 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Apr 2018 13:40:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,443,1517904000"; d="scan'208";a="50340404" Received: from rchatre-mobl.amr.corp.intel.com (HELO [10.24.14.139]) ([10.24.14.139]) by orsmga002.jf.intel.com with ESMTP; 12 Apr 2018 13:40:24 -0700 Subject: Re: [RFC PATCH 0/3] Interface for higher order contiguous allocations From: Reinette Chatre To: Mike Kravetz , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Michal Hocko , Christopher Lameter , Guy Shattah , Anshuman Khandual , Michal Nazarewicz , Vlastimil Babka , David Nellans , Laura Abbott , Pavel Machek , Dave Hansen References: <20180212222056.9735-1-mike.kravetz@oracle.com> <770445b3-6caa-a87a-5de7-3157fc5280c2@intel.com> Message-ID: <74b7c6e5-bce6-a70a-287a-af44765836c7@intel.com> Date: Thu, 12 Apr 2018 13:40:24 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <770445b3-6caa-a87a-5de7-3157fc5280c2@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, On 2/15/2018 12:22 PM, Reinette Chatre wrote: > On 2/12/2018 2:20 PM, Mike Kravetz wrote: >> These patches came out of the "[RFC] mmap(MAP_CONTIG)" discussions at: >> http://lkml.kernel.org/r/21f1ec96-2822-1189-1c95-79a2bb491571@oracle.com >> >> One suggestion in that thread was to create a friendlier interface that >> could be used by drivers and others outside core mm code to allocate a >> contiguous set of pages. The alloc_contig_range() interface is used for >> this purpose today by CMA and gigantic page allocation. However, this is >> not a general purpose interface. So, wrap alloc_contig_range() in the >> more general interface: >> >> struct page *find_alloc_contig_pages(unsigned int order, gfp_t gfp, int nid, >> nodemask_t *nodemask) >> >> No underlying changes are made to increase the likelihood that a contiguous >> set of pages can be found and allocated. Therefore, any user of this >> interface must deal with failure. The hope is that this interface will be >> able to satisfy some use cases today. > > As discussed in another thread a new feature, Cache Pseudo-Locking, > requires large contiguous regions. Until now I just exposed > alloc_gigantic_page() to handle these allocations in my testing. I now > moved to using find_alloc_contig_pages() as introduced here and all my > tests passed. I do hope that an API supporting large contiguous regions > become available. > > Thank you very much for creating this. > > Tested-by: Reinette Chatre Do you still intend on submitting these changes for inclusion? I would really like to use this work but unfortunately the original patches submitted here do not apply anymore. I am encountering conflicts with, for example: commit d9cc948f6fa1c3384037f500e0acd35f03850d15 Author: Michal Hocko Date: Wed Jan 31 16:20:44 2018 -0800 mm, hugetlb: integrate giga hugetlb more naturally to the allocation path Thank you very much Reinette