Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936128AbdCXOWs (ORCPT ); Fri, 24 Mar 2017 10:22:48 -0400 Received: from mail-co1nam03on0129.outbound.protection.outlook.com ([104.47.40.129]:19268 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S936085AbdCXOWi (ORCPT ); Fri, 24 Mar 2017 10:22:38 -0400 Authentication-Results: shutemov.name; dkim=none (message not signed) header.d=none;shutemov.name; dmarc=none action=none header.from=cs.rutgers.edu; Message-ID: <58D52B78.9040303@cs.rutgers.edu> Date: Fri, 24 Mar 2017 09:21:44 -0500 From: Zi Yan User-Agent: Postbox 5.0.11 (Windows/20170302) MIME-Version: 1.0 To: "Kirill A. Shutemov" CC: Zi Yan , , , , , , , , , , , Subject: Re: [PATCH v4 04/11] mm: thp: introduce CONFIG_ARCH_ENABLE_THP_MIGRATION References: <20170313154507.3647-1-zi.yan@sent.com> <20170313154507.3647-5-zi.yan@sent.com> <20170324141037.2eyovzq2bmcdmwzu@node.shutemov.name> In-Reply-To: <20170324141037.2eyovzq2bmcdmwzu@node.shutemov.name> X-Enigmail-Version: 1.2.3 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig5D705F49D9F339D812D23E26" X-Originating-IP: [12.1.252.66] X-ClientProxiedBy: CY4PR21CA0005.namprd21.prod.outlook.com (10.172.122.143) To BN6PR14MB1649.namprd14.prod.outlook.com (10.171.176.15) X-MS-Office365-Filtering-Correlation-Id: 6d348bc9-19c2-4c55-5747-08d472c136a8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN6PR14MB1649; X-Microsoft-Exchange-Diagnostics: 1;BN6PR14MB1649;3:airVI+9Vac9Ufz0oFSgmQCXydrZIaP7agkF+OIhkVqeQhu7awe8VMLJZVS4QVSmkYK4lKJNhykGjjzL91l+KcPFx3U1vi/OJVjuba5pa2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lX/mujUb88J0LLG62vCsjQlVCjo/+nYAvE1O51DJbEOfw/JkJyfLbVKC62Te1kvOjl3gcvy8DXKpynM9omulFVcnbaieDN/WGnlRF8v6daquyqRaNPUggFK7RBBisOIwOMCnrrJ8U3Fp+szu+zDxbXtSjlbRaITGPY7mDXQHwXvtJtjplmFsCHMfexGONlvZYiI6mgZhHTH/jOm3tS8sH0kZXMs9rowSCz2Z51aZp1msIP0IOaiirs0IU84YbmbdHIulI5DO8m9nk45teJtkynnGziupu2R/j9u4NaVLOzXjM2XhcqpEFKeWKJTI/4Mz+VOKOC0Xd8dG+E4ipwHpp/1fseGyMJ9gCVc4uU1mlK/1O9W2LP86pk0XXe2hiaxybtaI/p2gINKWuOTPpqb7W X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123558025)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(6072148);SRVR:BN6PR14MB1649;BCL:0;PCL:0;RULEID:;SRVR:BN6PR14MB1649; X-Microsoft-Exchange-Diagnostics: 1;BN6PR14MB1649;4:gQ4f6CAjPwN6YTzeE8matl6x26bjue2lgbpiXqnKb0JVedj96PHEcNRExBuTWTWsGFsmOVQi+MsmxN8NgG/e69nE1A9wQlD1358TvCc37SfO6qrY0wiln+TGag9B5IUtRbv9vS3fIEKeAkisTPxfZs5n34MK5MBgYZYZxkQ9cYEGsBHNEqAzvjTAzIz86h65oGL1YXyXHbDeuEOuIMiY4LQ0zyXWPEHsgg0ALSQBZ5CeIuod9R/GAN2NUaNtXiYbRlcYreOlU/yUbM7qiuXMsllzuhqEyftlvDXW94TrStBlVaw4xdGzTBlDSNtZ8rZOvdPbdAP4Tb4eGuMSyfTKmWar9rVZaPda1NDfe6g9umjPlGqR17G7efti4lVNpUmAGMY+EAADEZ8NikdqhaH6BEg3Hgjs9Zy5KMM4MYjdt312uIUfBc3kBlqcqZMa8cwwejcp+wEhV5ShTJ4NC1YHIpzyYHsilp6zmuPqGohBcLBRgGdhMsw2UlXKhjsehC7CxeEZK7sAvX59wWi3Rl6Ajn2BiMwkDEn24nkf2HKnKdkw06FaxidHaD/3Z+/C5UDmHLJIBjlUz4LY83iFeI7cVeZS9cAaat35QtD6/O+AQqo= X-Forefront-PRVS: 0256C18696 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6049001)(39830400002)(39410400002)(39450400003)(24454002)(86362001)(42186005)(80316001)(76176999)(65816999)(54356999)(50986999)(81166006)(8676002)(110136004)(38730400002)(4326008)(21480400002)(6246003)(25786009)(7416002)(5660300001)(5890100001)(568964002)(7736002)(2906002)(512874002)(305945005)(3846002)(88552002)(42882006)(6116002)(2950100002)(6916009)(6666003)(229853002)(59896002)(75432002)(53936002)(189998001)(6486002)(54906002)(77096006)(8656002)(90366009)(4001350100001)(83506001)(84326002)(33656002)(66066001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR14MB1649;H:[10.20.179.71];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN6PR14MB1649;23:aQGyMeror4GPefQ5Y/3T3C33HA/jQbICFopDBq1m/?= =?us-ascii?Q?hdMwk8sCbVXTOVN9lzrLL5hn/sPTPjQv0GNSSJl4lQMSqQjkj2/Vb9T0Aqu4?= =?us-ascii?Q?Xh+wOwwEVEGmymTbh1RxKVf3g+sT31NRQcdl+ip//6LH+807YFeldqX80vxg?= =?us-ascii?Q?YTwyAU7qvg3T6A/PYdjZKQCl6T+EJRIvqUowuIp3+AkooOk+Wibdfl2lwvnW?= =?us-ascii?Q?b0GMRIqSWF53fAgzEXA63Nhz6BxW3hlsNOu0u7oVTR+cvcfKBcH8aI8WYfY5?= =?us-ascii?Q?lNP7GI9gczDVRnW/2v/eDKuBLnxC5Gg8FHOWjbO2CH9kRAumStQ+wp455nL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GysFO2i35ArDDxaWkFiQekYPww6Oa2VA9E?= =?us-ascii?Q?/T8U9a8YSXdRY9xkRSKWQ+8S4ovJpHYfHVJ6JGlCIFtqFz5oypzWdS2tX2i9?= =?us-ascii?B?Zz09?= X-Microsoft-Exchange-Diagnostics: 1;BN6PR14MB1649;6:RdlJYnMyDEzTwuUQf04tT3OJGnGb07fQ+KEwARZ/umblgrL/JzeXsPNSqU7av6FbHIQtM41lt82UKB68ma5lR6GEHBp6Hi55BdcMH5PpS3ysbOob8AgJspqGzmNKXASbwJukdkTRUOOjD8nNLEHhNHoM7uSsRjE3OMvZ1WHv4+QrVPO12azdUf+KCiUAJyzBF5icB5Uq5yf00hfy4lA/7AlBIsfxOlLUYxcHR+8iSm3ESVa79Eszj9zClayBW4d9jVKmW2vrTw36PKYinVUPmu9vadGBQF2onRL8ZXvFjuq8R2mv+DWZsGUlPEjtsbvuPtBy2XGcwi+uyUZhJxTFRHIVeN215qvpsjTNsNy95f3AXojC+UEebxPRWwtFehiDEIMVSBZUJVbOCUXXi0PxVw==;5:pZX5iYGEgw+Z0piKtnWCvIbprGcGe9W4VBRlAAizIUSG2nzGw6MglGIzJDVmhdYWVBFKM3RLEIGVRGbBh7t0L8ROkxbxfIepdn3MQLurrDs62QvM+qH5QKw/oD1MEFUa7vcQfsr5kAA1o8QOrWhk9g==;24:rspInmX9wLf2VO0thDVi7MipebwiMM0/AZ+6OwiHC6KH3nsENA3T6KSjSR/P90hFPJK1pzp7r/PJh9XevikZpPn7NZNauyNGz9OUdj5Ra1E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR14MB1649;7:wK8+sTJkB06pv/tLz47XHNpuKbYvTDPVanNF2/tZBBpn91ur/LvZXo04xDGrtxXYfhNwF5pDUrax0xL63/Dy09oqRJxwqPytjln8SJ3D9F4aMrmQXEEjMkvodthcdOCBJG+oWnVEpblMldEdhP5Gpj8EqgzALhAhCUvbS84ZGxE3qgwVXBfzfKJ0QPIib8PhCREtKU9ippkp06LWzb9uiKt/Sc7AEYI/imvNPFkvB+Nc/JUjT16IxhPiDJYoVRNXZDQMIQMTr0B/UBqpYUAt/xBp8kncLb4sLNUAqTNh/Yffmt3ylLTdybjsbFZjVzzKMttIcQVNasjrDlRJxpVT8w== X-OriginatorOrg: cs.rutgers.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2017 14:22:30.0238 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR14MB1649 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2147 Lines: 73 --------------enig5D705F49D9F339D812D23E26 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Kirill A. Shutemov wrote: > On Mon, Mar 13, 2017 at 11:45:00AM -0400, Zi Yan wrote: >> From: Naoya Horiguchi >> >> Introduces CONFIG_ARCH_ENABLE_THP_MIGRATION to limit thp migration >> functionality to x86_64, which should be safer at the first step. >> >> Signed-off-by: Naoya Horiguchi >> --- >> v1 -> v2: >> - fixed config name in subject and patch description >> --- >> arch/x86/Kconfig | 4 ++++ >> include/linux/huge_mm.h | 10 ++++++++++ >> mm/Kconfig | 3 +++ >> 3 files changed, 17 insertions(+) >> >> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >> index 69188841717a..a24bc11c7aed 100644 >> --- a/arch/x86/Kconfig >> +++ b/arch/x86/Kconfig >> @@ -2276,6 +2276,10 @@ config ARCH_ENABLE_HUGEPAGE_MIGRATION >> def_bool y >> depends on X86_64 && HUGETLB_PAGE && MIGRATION >> =20 >> +config ARCH_ENABLE_THP_MIGRATION >> + def_bool y >> + depends on X86_64 && TRANSPARENT_HUGEPAGE && MIGRATION >> + >=20 > TRANSPARENT_HUGEPAGE implies MIGRATION due to COMPACTION. >=20 Sure. I will change it to: +config ARCH_ENABLE_THP_MIGRATION + def_bool y + depends on X86_64 && TRANSPARENT_HUGEPAGE + Thanks. --=20 Best Regards, Yan Zi --------------enig5D705F49D9F339D812D23E26 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJY1SuhAAoJEEGLLxGcTqbM0BUH/iMBTNr7Nrc154brgXZ6qd1t sbS9UaaYsC3OwKMr34x5aW2pbSIsN4m3+fVX2y3BjbuNeUsE0V7ZgHzF7jrYj4Ve 9iEye/HtJYdzSwG460h/YrMyqmdYZ8qhUc5so6s0AwC9SByssNxob7PZkosZQOMj 1INE77dg+4mdHnrziSbhCdvHjAOvtf4AuedGPqcVQURU3NGVNo0R8EbfRNfAaR+L 0sf6yjmbACBSeDSkTFSZ6ZjEtuR5tvacVlQ28kaDs9dd3M49SQ56h0Sj2jO/gRDP mZsOhZUzUIwR9eYJsB5yKnyc76Yp+iNXzz+PfMu5AMMXgXeUQIshJQcHzMyIzZA= =BHEx -----END PGP SIGNATURE----- --------------enig5D705F49D9F339D812D23E26--