Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4258529imm; Wed, 30 May 2018 02:04:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLl1HXDAzsw1ZTwH/6wGTVu6xSMrnD608iD8xXL639/pZJpJzwd5sDxYjfYtxIULCuXvCoX X-Received: by 2002:a63:7d47:: with SMTP id m7-v6mr1542067pgn.443.1527671067469; Wed, 30 May 2018 02:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527671067; cv=none; d=google.com; s=arc-20160816; b=fuhz/+qDf7tGgDxszBIAyO87BLdPHA3u+1ytzIGLZOxc0UcYLvXSu4Ji/VANZC6tYO bYHp2EQ1UbFvNebDAP2bIrejPFac8HyFJOcrIgxRphqqwUnVQX9Uib6HhbVyvXdk8FFp A3d9/chl+TcDM8biaymtN1YI9T8lUD6iaKIy739UxgW54kyzLJQyt7z1A18pmIaDuI5g xSs4K6t0+vDmRQO6rr5zPGj5W4SXKm+QWzB0qA6d4ZQKjW1gRDvX54ZaQAIHKjOMzx9V pOeVRXpxuXOmOjrlV3+cffidIxFwC+la7NJbw9rxSWKljIGKfzNxQ8XHlHjX+al3obKp s5CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=5rK0taP6IuX8oFL9iISSdzFQa/AZNizjJQy8zM8e3q4=; b=gOJZ8ZflP+hBJfwradmcQfS5+bV6qXvUhq2sLEF39kqKBrkkgaW+UetV5DZAClLReH 1hYUhm2z+qQe4Yrj9+MGsHHGj5+gnAd2UMUTBTTgXfS4sV+iSErRUYCfki2tNiDsubcD afmH2KeJ6XlEfGgSPWuqqwQVE2uP08epc/wSGhNXyS59uZ5N4NhSGRWsDFvAqe2yZgN0 8SxycBFXGkxXgqXpSddFwQEpG3zMhf+GizJAVNmxt/4A+UMPXAnK41rLQAR3+UuCmhAX jc+r+eXu5u2EiJfyyW3q09NLIHcTHYQWipkXK3tTlsO4m9WDpiho7FoOS9b+N1gJiZCG QBjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@LenovoBeijing.onmicrosoft.com header.s=selector1-lenovo-com header.b=GK9tBPRG; 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=fail (p=NONE sp=NONE dis=NONE) header.from=lenovo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b37-v6si34530941plb.377.2018.05.30.02.04.13; Wed, 30 May 2018 02:04:27 -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; dkim=pass header.i=@LenovoBeijing.onmicrosoft.com header.s=selector1-lenovo-com header.b=GK9tBPRG; 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=fail (p=NONE sp=NONE dis=NONE) header.from=lenovo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965113AbeE3JDL (ORCPT + 99 others); Wed, 30 May 2018 05:03:11 -0400 Received: from mail1.bemta12.messagelabs.com ([216.82.251.4]:45844 "EHLO mail1.bemta12.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964790AbeE3JDF (ORCPT ); Wed, 30 May 2018 05:03:05 -0400 Received: from [216.82.251.46] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-4.bemta-12.messagelabs.com id 42/01-06628-7C86E0B5; Wed, 30 May 2018 09:03:03 +0000 X-Brightmail-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Vpz9NP3 HqrbtnBhrLemre3SM8db93hy2pbP95YvK1nom719qbW3w4duphYxdVOeX8a3e1qnHd9Xf7XHG tY6F/rv/Ps1fO5j4aGJh7omq47lghEX6ledzG+846y+6F9oU1jcSulSEJhHikrwj+/4r52HgQ AAA== X-Env-Sender: yehs1@lenovo.com X-Msg-Ref: server-11.tower-47.messagelabs.com!1527670977!45214483!1 X-Originating-IP: [104.232.225.2] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.9.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 28450 invoked from network); 30 May 2018 09:03:02 -0000 Received: from unknown (HELO maesmtp01.lenovo.com) (104.232.225.2) by server-11.tower-47.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 30 May 2018 09:03:02 -0000 Received: from HKGWPEXCH02.lenovo.com (unknown [10.128.62.31]) by maesmtp01.lenovo.com with smtp (TLS: TLSv1/SSLv3,256bits,ECDHE-RSA-AES256-SHA) id 156b_1616_1de672dd_8539_477d_93dc_fcec9fe81a22; Wed, 30 May 2018 09:02:50 +0000 Received: from APC01-SG2-obe.outbound.protection.outlook.com (65.55.88.239) by HKGWPEXCH02.lenovo.com (10.128.62.31) with Microsoft SMTP Server (TLS) id 14.3.389.1; Wed, 30 May 2018 17:02:19 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=LenovoBeijing.onmicrosoft.com; s=selector1-lenovo-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5rK0taP6IuX8oFL9iISSdzFQa/AZNizjJQy8zM8e3q4=; b=GK9tBPRG4oek1BD32AjOEdH0ErxS2W0jQOYVKm+ulM2XsruP16KnMI4BBe+MshE1vDmX17HYhVQf6Nv9aniTtowAWA0MsByk+FNmyUBQD8ygEeo3xUfL4fXHPXOr6OYEU8SKjDsafnmylmf46E+theVU9JhYieDyKpd2h0Dx/Pk= Received: from HK2PR03MB1684.apcprd03.prod.outlook.com (10.165.178.14) by HK2PR03MB1380.apcprd03.prod.outlook.com (10.165.56.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.5; Wed, 30 May 2018 09:02:15 +0000 Received: from HK2PR03MB1684.apcprd03.prod.outlook.com ([fe80::bd0b:1233:5126:db12]) by HK2PR03MB1684.apcprd03.prod.outlook.com ([fe80::bd0b:1233:5126:db12%5]) with mapi id 15.20.0820.010; Wed, 30 May 2018 09:02:13 +0000 From: Huaisheng HS1 Ye To: Michal Hocko CC: "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "willy@infradead.org" , "vbabka@suse.cz" , "mgorman@techsingularity.net" , "kstewart@linuxfoundation.org" , "alexander.levin@verizon.com" , "gregkh@linuxfoundation.org" , "colyli@suse.de" , NingTing Cheng , Ocean HY1 He , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "xen-devel@lists.xenproject.org" , "linux-btrfs@vger.kernel.org" , Christoph Hellwig Subject: RE: [External] Re: [RFC PATCH v2 00/12] get rid of GFP_ZONE_TABLE/BAD Thread-Topic: [External] Re: [RFC PATCH v2 00/12] get rid of GFP_ZONE_TABLE/BAD Thread-Index: AQHT8fwDC41BG7Nw7kKYsFRFURgRZqQ9b40ggAFfPYCAAVqTEIAFBLuAgALTGQA= Date: Wed, 30 May 2018 09:02:13 +0000 Message-ID: References: <1526916033-4877-1-git-send-email-yehs2007@gmail.com> <20180522183728.GB20441@dhcp22.suse.cz> <20180524121853.GG20441@dhcp22.suse.cz> <20180528133733.GF27180@dhcp22.suse.cz> In-Reply-To: <20180528133733.GF27180@dhcp22.suse.cz> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [57.197.58.2] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HK2PR03MB1380;7:etNb/MuoEho/1xdIvK+Tk/KFuGazp8u7S9JY+GIWYDHJFWFnbGIc9e+pVWML+tBcgGnDReMlv6Hid8akG9VHsVENiMbZ6+wlNQR0jk8jIHGKCasoxKaRnir0txfBB2mFY6iy6OAmFsEF4DNuk6wNZ0Tn67Wq0XBU3D6Q242auOXcuVQOKEw5wXRLb+mVPN0yIuFYnirQQrWswEXFDXPrkfJF3orDNMmCLz8dAw5Sm+g+yxcquN+AJ1uiHNxYL3X+;20:m1ydhHQn6rlYjRWF5t2Y6li99UhW8bR26YQMWNsm+os+B3mu/H1qKpRCMx8mJKowZVtWJcq9WSLnlHNJxjwKKoaY1f3/XQ3/o6nlfplWAdpM8WYlEhn0EeEVfcmdBRHbCIDxxS6cJ9RdszoJLRCyM7O6UEmty7BRW+z5bMtjQSH9URgrkDiZZlAo9zsOjbnFJL/XooK6mhEdkOZwGgI4xzIEnxhXfZtAarGKs2EyzW+42htWv71SIDby9r0jT88XsBY7FqRkgKO3TgguTOhvw2x7E2iuHuNS0ZNe72aTek4PekW/uF0iV9PSuzhRLckcK4AwTLyWHMeqzaZ30y1ZdQ== x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10019020)(39380400002)(396003)(39850400004)(366004)(346002)(376002)(54534003)(199004)(189003)(6116002)(7736002)(14454004)(3846002)(305945005)(6436002)(55016002)(186003)(3280700002)(9686003)(6506007)(316002)(99286004)(54906003)(2900100001)(2906002)(53936002)(76176011)(86362001)(5250100002)(7696005)(93886005)(106356001)(229853002)(6916009)(74316002)(81156014)(81166006)(66066001)(478600001)(7416002)(486006)(5660300001)(4326008)(105586002)(446003)(8936002)(476003)(102836004)(3660700001)(6246003)(11346002)(26005)(97736004)(25786009)(33656002)(68736007)(8676002)(26583001)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:HK2PR03MB1380;H:HK2PR03MB1684.apcprd03.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:3;MX:3; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:HK2PR03MB1380; x-ms-traffictypediagnostic: HK2PR03MB1380: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:HK2PR03MB1380;BCL:0;PCL:0;RULEID:;SRVR:HK2PR03MB1380; x-forefront-prvs: 0688BF9B46 Received-SPF: None (HKGWPEXCH02.lenovo.com: yehs1@lenovo.com does not designate permitted sender hosts) received-spf: None (protection.outlook.com: lenovo.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 5wf94NWUwyrdjv1ByRWw+SCPEL5skkuyDuybdDgFrDU8pTrG9AkavJajdBUCco0XXQZqaCuc422qIzHm/ifmMQTtJgN0rS/ZKgsvBzdHDaxgNP/+9R6j6IYLiZzTuDhJNGH7PLOIx7joFJkaC8ONUFaIBLXHrqAWRnNCpvl3OVChmCL/WKO7aXQJDX3Yxd3Y spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 800f9205-e3fb-4059-6837-08d5c60c092a X-MS-Exchange-CrossTenant-Network-Message-Id: 800f9205-e3fb-4059-6837-08d5c60c092a X-MS-Exchange-CrossTenant-originalarrivaltime: 30 May 2018 09:02:13.6522 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5c7d0b28-bdf8-410c-aa93-4df372b16203 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR03MB1380 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: owner-linux-mm@kvack.org [mailto:owner-linux-mm@kvack.org] On Behalf = Of Michal Hocko Sent: Monday, May 28, 2018 9:38 PM > > In my opinion, originally there shouldn't be such many wrong > > combinations of these bottom 3 bits. For any user, whether or > > driver and fs, they should make a decision that which zone is they > > preferred. Matthew's idea is great, because with it the user must > > offer an unambiguous flag to gfp zone bits. >=20 > Well, I would argue that those shouldn't really care about any zones at > all. All they should carea bout is whether they really need a low mem > zone (aka directly accessible to the kernel), highmem or they are the > allocation is generally movable. Mixing zones into the picture just > makes the whole thing more complicated and error prone. Dear Michal, I don't quite understand that. I think those, mostly drivers, need to get the correct zone they want. ZONE_DMA32 is an example, if drivers can be satisfied with a low mem zone, why they mark the gfp flags as 'GFP_KERNEL|__GFP_DMA32'? GFP_KERNEL is enough to make sure a directly accessible low mem, but it is obvious that they want to get a DMA accessible zone below 4G. > This should be a part of the changelog. Please note that you should > provide some number if you claim performance benefits. The complexity > will always be subjective. Sure, I will post them to changelog with next version of patches. Sincerely, Huaisheng Ye