From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by kanga.kvack.org (Postfix) with ESMTP id 0C0C28E0001 for ; Tue, 11 Sep 2018 04:51:16 -0400 (EDT) Received: by mail-ed1-f69.google.com with SMTP id p51-v6so8086877eda.18 for ; Tue, 11 Sep 2018 01:51:15 -0700 (PDT) Received: from mx1.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id o14si1209851edv.250.2018.09.11.01.51.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Sep 2018 01:51:14 -0700 (PDT) Subject: Re: [PATCH] mm, thp: relax __GFP_THISNODE for MADV_HUGEPAGE mappings References: <20180907130550.11885-1-mhocko@kernel.org> From: Vlastimil Babka Message-ID: <21336327-2465-ba55-e721-4e48f782dff1@suse.cz> Date: Tue, 11 Sep 2018 10:51:12 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes , Michal Hocko Cc: Andrew Morton , Andrea Arcangeli , Zi Yan , "Kirill A. Shutemov" , linux-mm@kvack.org, LKML , Michal Hocko , Stefan Priebe On 09/10/2018 10:08 PM, David Rientjes wrote: > When Andrea brought this up, I suggested that the full solution would be a > MPOL_F_HUGEPAGE flag that could define thp allocation policy -- the added Can you elaborate on the semantics of this? You mean that a given vma could now have two mempolicies, where one would be for hugepages only? That's likely much more easy to suggest than to implement, with all uapi consequences... > benefit is that we could replace the thp "defrag" mode default by setting > this as part of default_policy. Right now, MADV_HUGEPAGE users are > concerned about (1) getting thp when system-wide it is not default and (2) > additional fault latency when direct compaction is not default. They are > not anticipating the degradation of remote access latency, so overloading > the meaning of the mode is probably not a good idea. >