Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1224695ybp; Fri, 4 Oct 2019 11:18:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsGdHBR0zJnjJtXgkoEcytazzL3vrEUEoKN3AeDEWqxhmGSmsrxY7uV8jFxnLcLeyFmqgl X-Received: by 2002:a50:93a4:: with SMTP id o33mr17317057eda.0.1570213122040; Fri, 04 Oct 2019 11:18:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570213122; cv=none; d=google.com; s=arc-20160816; b=LSbb42rrfaAWy1RuXqo5SIRdrNejyq8JXubOvshSCUFopzDrk7/+G2UsDNKgbb9a7o O2IczJWmmE8WXCbfMarVhroDuRpRZIvNJ1A5tiOvMO8aafFWXz1hszdsQcAc42B22pYe 1WprIF6MLeiy5urmUF4/+VdNjjIVJTriibr4VIQntfrlayIZXKFheuche1IqQCuTB1dy 4VYrzvnBsv7vTTydfURmy0uR8Jep5y5Tyrb0gwiuVV4o4L56rikzWxOnUSnhlyuoOkJw toePbuA4fxNi2XlQrCu7z436YAbvlK0v9yeTqMKy74LLhJbxoL0OpTN7STL0KdLFrRI8 bhkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=Ql3anKlqLg5yve0WzNzTsdKXFFYYc4UNlV1/EYA3gp0=; b=cjDuP3o3aqQljxbO7WqHutAiOxxmg3KAR6zKRo1KCjsktuLvp7P5UgJvi1BXHouk2V iOFLmG1wqKDJLthLEa9H2AsP7gr/EKbESwv2D0hF6ewhzFZQnD+lbYLF3b+dLwet7pjm 7EgbpRU4nCxFsa626CN/EFPkG0oERajqWjDoGM36Me652dunoPgeHAzKOIbHm7JK9Cxp SFy4sJgNWV2C09D423fEtpygMTj9LAb7fI0l9GQJU7jR1CmIFLuMiZfAQ1E1j/4qiDOu NKUGnHuqE1xDsOUkxLGc/FCCZYtk7Y4GTDl35FzreOylEt4hpwnKZdzgTX4C69hfnOh0 vfUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iClBElnd; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f45si4039349eda.345.2019.10.04.11.18.03; Fri, 04 Oct 2019 11:18:42 -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=@google.com header.s=20161025 header.b=iClBElnd; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388148AbfJDSCZ (ORCPT + 99 others); Fri, 4 Oct 2019 14:02:25 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:38555 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729291AbfJDSCY (ORCPT ); Fri, 4 Oct 2019 14:02:24 -0400 Received: by mail-pl1-f194.google.com with SMTP id w8so3477444plq.5 for ; Fri, 04 Oct 2019 11:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=Ql3anKlqLg5yve0WzNzTsdKXFFYYc4UNlV1/EYA3gp0=; b=iClBElndd2SzblF0cS82SmIvLJioWTl5+Vthgw3JYiwkTwrOOHYh6jXgQag+vW+HMA DNInR6Po+RGC7qI28kCUHIexnqXtjH1huvR0toNJn8wlxTm/Ty0leX+8frcQBjCdstOH BhPf9RVfes0+8Le3uSQ3XAkfW7ZmGV3tIcEulfqcr/mh4iD4jxVy99Ywtps2Iu721rgk crR5WAQ9GkKKr7Q+LY3njINIZxE0cf+md/+cOxMdXMnp+FK62hb9ydQnkhSZGfU4+BgR vrN7+1XUBSVIvkSqMaKxxca4osPLzG56dAuCnJAemuILmJsn4/nfOpM81M/VI9b+tXYd N4tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=Ql3anKlqLg5yve0WzNzTsdKXFFYYc4UNlV1/EYA3gp0=; b=RxvvTVAD3VQO76qUqBxTS/sP81GG9TjAfKHo+w6q5QlQoYOJ0I0+6yMKv1lu+lwFlH WB14/2SXANSzPExYCW8DC4pEysZoZP4wkV2LTNFLd28rM2EYNU1K/DwcPK00F5k0JgGF 19lUOUA8WVY3J64ZBFYM5XnPTKpwg7jKxtzASgp+gZurnmM0n12MtlY6J6CzXkHHESg1 CXxsRAQw8AYD1C6Wes5k3819JyKNfjQJYsd0Vv7LA8t/UaAekmOLLLYUq89ssQ2Fnhxj nO87B3J5Dw5+1GAU0KaqD1QOZAuRXy4MoJXWpqJ1UmcN7ABpxNp3pS+NXoT57gyBbaTS NMtQ== X-Gm-Message-State: APjAAAVwB6dboi8qE/ZvLQ8J8tERhOYdmB+8RBPag2/vNcLYcZ+wUq9L rs3w9xdWovtFrQKumIwJp4wm7A== X-Received: by 2002:a17:902:b10d:: with SMTP id q13mr16693850plr.109.1570212143849; Fri, 04 Oct 2019 11:02:23 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id v5sm8531431pfv.76.2019.10.04.11.02.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Oct 2019 11:02:23 -0700 (PDT) Date: Fri, 4 Oct 2019 11:02:22 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Michal Hocko cc: Vlastimil Babka , Mike Kravetz , Linus Torvalds , Andrea Arcangeli , Andrew Morton , Mel Gorman , "Kirill A. Shutemov" , Linux Kernel Mailing List , Linux-MM Subject: Re: [rfc] mm, hugetlb: allow hugepage allocations to excessively reclaim In-Reply-To: <20191004092808.GC9578@dhcp22.suse.cz> Message-ID: References: <20191004092808.GC9578@dhcp22.suse.cz> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Oct 2019, Michal Hocko wrote: > Requesting the userspace to drop _all_ page cache in order allocate a > number of hugetlb pages or any other affected __GFP_RETRY_MAYFAIL > requests is simply not reasonable IMHO. It can be used as a fallback when writing to nr_hugepages and the amount allocated did not match expectation. Again, I'll defer all of this to Mike when he returns: he expressed his preference, I suggested an alternative to consider, and he can make the decision to ack or nack this patch because he has a better understanding of that expectation from users who use hugetlb pages.