Received: by 10.223.185.116 with SMTP id b49csp1016009wrg; Wed, 14 Feb 2018 10:16:16 -0800 (PST) X-Google-Smtp-Source: AH8x226bXkvy9sV8pQM5BDN9WLWZViThWqIWjISsO5/2+FYkoRTRWXCz9LWCVKF75WrRdkh2guXi X-Received: by 10.99.122.70 with SMTP id j6mr62222pgn.17.1518632176530; Wed, 14 Feb 2018 10:16:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518632176; cv=none; d=google.com; s=arc-20160816; b=nEun7+wHRVKIDRXXBCPWrdQw7b/Q/TO1j77wNe9/XJ1NeDGedmgz8yfM/kDI9EzOMR jPN07QsuuejkAm2fZau1mjYtRD0T0P1O9sHOCrE7qOi4c/h45VRUMQyEv9NG2QIDaNzf 3YyttTa184gIKtbANqluHpBr999pEgYjP0pxryUE1rLA67+V3iJMx3R/NsWugT8otASD F3FFLNyqYxtvgLeoNS04AAn8egOr0NqsSEQzMO/PSJiWyGK5hmspk/s4ECfuWrWKsRC+ ru15wG2Vd98IoWMuAt6B6F7tYefgK/9n7NfJ4peYPAF0amSYSQSxTgG3ENgfoS/POkTM cwiQ== 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:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=lcFmZs251vgxrPSiZm0S5M+nsLbialrpROAoXk3I+n8=; b=v377Q560h1oPQkdJ16rwII56FkXOTRhM1Xq7mqeVAk3JB/AzWtf91BN0Us5KNnEW5d a5I3JNy1hi33b+21um0tu2mNuH4YyCBnWhdQwapYz1ZdDI+sFaf6eoLTn5xzCbfsyvxV CLWposYKTUebck/Cd3/LDsGuEnZKBe59/ODmt8XZKlfH6zAfEYyvwvnEYUxNSI7tHVKX sbQdfGfx+uspR6VV3XUyEebq01kxZlyIwrnG4HzOTD4PlqkeVwhUgv8fv8mA5iS1JMlK 707poZYQu425xSsNyCnXdCPPSOKoERNqqW5AZDcqClclsvhysW1NIcj2lJJ6Nkorla4f vZiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=HK32IL0c; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si1342952pgp.809.2018.02.14.10.16.01; Wed, 14 Feb 2018 10:16:16 -0800 (PST) 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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=HK32IL0c; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161811AbeBNSO1 (ORCPT + 99 others); Wed, 14 Feb 2018 13:14:27 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:36702 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161697AbeBNSOY (ORCPT ); Wed, 14 Feb 2018 13:14:24 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w1EI7HM6061974; Wed, 14 Feb 2018 18:12:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=lcFmZs251vgxrPSiZm0S5M+nsLbialrpROAoXk3I+n8=; b=HK32IL0cixJzvE+rb7yxdl/Razhc3kZTx/MP4JDaBvagMbJ+r8m7ZanmPwv9ZZREwDRX 0lexxjXsgMFr6O7jl55elr/GkwheCuUpxkJglGtH4Zw50DR2+ZVAhyhpBa6Qwtsd0AZt PXGxnbs0mcvxWqYfYeLB4xwvYVAJwXBBLt6BEAIyqvoo8ER5U4gsIxSSUQUQWQzXgjvM ChyR04divJPyzO4r7yi2Wxa7j5Q/bhZVS+1qX6Fcpcl462Yz5obtt2GiHbpHlHpD8ZNl ssoymXTYNUUFlEi1fiex9GQOM6ut9s1oL/TSnKw8IwQa6D8eNQZnNk+gEsFsbGGoBm9F ZQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2g4t3fg1ye-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Feb 2018 18:12:05 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w1EIC5Xb021269 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 14 Feb 2018 18:12:05 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w1EIC5jD012741; Wed, 14 Feb 2018 18:12:05 GMT Received: from [192.168.1.164] (/98.246.252.205) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 14 Feb 2018 10:12:05 -0800 Subject: Re: [RFC PATCH V2 00/22] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling To: Reinette Chatre , tglx@linutronix.de, fenghua.yu@intel.com, tony.luck@intel.com Cc: gavin.hindman@intel.com, vikas.shivappa@linux.intel.com, dave.hansen@intel.com, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Michal Hocko , Vlastimil Babka References: From: Mike Kravetz Message-ID: Date: Wed, 14 Feb 2018 10:12:03 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8805 signatures=668671 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=980 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802140214 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/13/2018 07:46 AM, Reinette Chatre wrote: > Adding MM maintainers to v2 to share the new MM change (patch 21/22) that > enables large contiguous regions that was created to support large Cache > Pseudo-Locked regions (patch 22/22). This week MM team received another > proposal to support large contiguous allocations ("[RFC PATCH 0/3] > Interface for higher order contiguous allocations" at > http://lkml.kernel.org/r/20180212222056.9735-1-mike.kravetz@oracle.com). > I have not yet tested with this new proposal but it does seem appropriate > and I should be able to rework patch 22 from this series on top of that if > it is accepted instead of what I have in patch 21 of this series. > Well, I certainly would prefer the adoption and use of a more general purpose interface rather than exposing alloc_gigantic_page(). Both the interface I suggested and alloc_gigantic_page end up calling alloc_contig_range(). I have not looked at your entire patch series, but do be aware that in its present form alloc_contig_range will run into issues if called by two threads simultaneously for the same page range. Calling alloc_gigantic_page without some form of synchronization will expose this issue. Currently this is handled by hugetlb_lock for all users of alloc_gigantic_page. If you simply expose alloc_gigantic_page without any type of synchronization, you may run into issues. The first patch in my RFC "mm: make start_isolate_page_range() fail if already isolated" should handle this situation IF we decide to expose alloc_gigantic_page (which I do not suggest). -- Mike Kravetz