Received: by 10.223.176.5 with SMTP id f5csp812777wra; Tue, 30 Jan 2018 20:10:08 -0800 (PST) X-Google-Smtp-Source: AH8x226FNsRGDZAX4HkwL5MD7PLH4+ah8RzaKoHOUh64v3qhjV+DHs0hIYimt0tCn4GsjQx7x6PG X-Received: by 2002:a17:902:4e25:: with SMTP id f34-v6mr17679984ple.68.1517371808730; Tue, 30 Jan 2018 20:10:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517371808; cv=none; d=google.com; s=arc-20160816; b=AJwC8fWb3B3sxknoBsRr8aYx/B9tIc304T2cwpgL/9c1Ikvgh884Jr+IDkDQ0CTJmu FSyZK6BichREWgcQcE8nXR5441nmWC4k+oR1FADO4leicsfi6ft3EAmt49MMlZf4kCTu b8RmcgPxGtWHPhQiAWgbzP4qHa3XVBlKf6VLHuVFnr7wI0Fkrx11p/pe/d2RS8Ct6AUj piDgzO6XQJioSKUUmjLFPWfYP2MSdAkNZZKSlSSMtcJvO9/A7YRPEVvMfKLFw5Dd8i9L ZHngK8JCxGQssqOVYzunW8/s0skhpIzxMRmIEanQv2JcKdKzFNbYBdUdCXCnxVgylLVm uZ9g== 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=K9FbHif8xhrdVO8JeRzvvYnc5u2wdz5sA2eMrakD5Xo=; b=AWpNi4LJBoM27cgvRlT5PALzWL2LkX9bIJS+BwSew4yI3julQ16MEJyVVk6K82NwId QurMBWJGNGiWIJVnUZ2q8OD6ZG185CBxVpBtCv2RxzuYCc5GmLRddX7r6YcU7uf3Zdcr gfQNL3PViHcpRuIjwENwdUIufZjjqqWX2NH5FAViQ+TVHIJPAbadZE3B/mUXgm4Z0HkX asUO0LAwDwjIJH8lVe5CUmagzolsKv3g/+QltoRPzc22N33nJsnqxCxnUahP7LWdt/KI +Q5HMCikO9/a6uYphRFA9YIMfsFPxT01zUASuWVZ3/4imt43HBfkKQ9r4WbTE6hPtqky zmhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=HCnWA8+U; 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 67-v6si3637873ple.609.2018.01.30.20.09.54; Tue, 30 Jan 2018 20:10:08 -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=HCnWA8+U; 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 S1752702AbeAaCqI (ORCPT + 99 others); Tue, 30 Jan 2018 21:46:08 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:60588 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752216AbeAaCqH (ORCPT ); Tue, 30 Jan 2018 21:46:07 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w0V2gX17183103; Wed, 31 Jan 2018 02:46:02 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=K9FbHif8xhrdVO8JeRzvvYnc5u2wdz5sA2eMrakD5Xo=; b=HCnWA8+UFWQxwnUnwTy17IKtYMDybgxqir0f1tOYegsLwjPyHrtMIrx3GjPRDJdAFY9p WB/E8c2l97/ZpcuRTqKbzQJGi6jIl4VfV9kaFve1ryfn36VOxSFR+Clys0mu7Fiq+WXk CavZcKjHG08s3zPCAjvhcMmuI89UBz7ILB7anMXnjIaq0ekWQ5k/3hPU05SArfgkG2OS qrwKmtrtOgrRPE1BrwRZZER7GsK3IF+8FG3cqFnG8A165Xu82o7Vr/mzJZgJvZWKjj1P sxvj6R0Dk9Xev1Kvpj3zBHhNHSdqxwKZjjvI85f5tZJAvjB3kUL6YoW+49Wq4oYbh5Rx gQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2fu54yg1rb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 31 Jan 2018 02:46:02 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w0V2f0fJ017801 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2018 02:41:00 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w0V2exeG014441; Wed, 31 Jan 2018 02:40:59 GMT Received: from [192.168.1.164] (/98.246.252.205) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 30 Jan 2018 18:40:59 -0800 Subject: Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB To: Anshuman Khandual , Michal Hocko Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org References: <20180130030714.6790-1-khandual@linux.vnet.ibm.com> <20180130075949.GN21609@dhcp22.suse.cz> From: Mike Kravetz Message-ID: <069a5533-2689-6764-2ec5-9ef0a1351860@oracle.com> Date: Tue, 30 Jan 2018 18:40:58 -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=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8790 signatures=668657 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=839 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1801310031 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/30/2018 06:25 PM, Anshuman Khandual wrote: > On 01/30/2018 01:29 PM, Michal Hocko wrote: >> On Tue 30-01-18 08:37:14, Anshuman Khandual wrote: >>> alloc_contig_range() initiates compaction and eventual migration for >>> the purpose of either CMA or HugeTLB allocation. At present, reason >>> code remains the same MR_CMA for either of those cases. Lets add a >>> new reason code which will differentiate the purpose of migration >>> as HugeTLB allocation instead. >> Why do we need it? > > The same reason why we have MR_CMA (maybe some other ones as well) at > present, for reporting purpose through traces at the least. It just > seemed like same reason code is being used for two different purpose > of migration. > I was 'thinking' that we could potentially open up alloc_contig_range() for more general purpose use. Users would not call alloc_contig_range directly, but it would be wrapped in a more user friendly API. Or, perhaps it gets modified and becomes something else. Still just thinking as part of "how do we provide a more general purpose interface for allocation of more than MAX_ORDER contiguous pages?". Not sure that we should be adding to the current alloc_contig_range interface until we decide it is something which will be useful long term. -- Mike Kravetz