Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2463384ybm; Thu, 23 May 2019 17:59:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXpLWrNAfuhC/3o6VLpTwsC/O0CXzRScDQQIVBc50R5CjV7ytWcLS/BGBcxecAfPazerj9 X-Received: by 2002:a65:550b:: with SMTP id f11mr4496003pgr.311.1558659570615; Thu, 23 May 2019 17:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558659570; cv=none; d=google.com; s=arc-20160816; b=LDbqh+0ghOEoDQw4GEpLq/u4/FQH7VT6Ej8hdQiM92hzRf6Mhw2JZC5Htc2L+Qui7f Ee37hC8uuZlgVcpCzDK6U/Z6wCW3XalB9DsCrbsEzaH//15BO4K7gDmfjsyXUgXSoQiJ NBjTeS7Q7MZ8MQJfuodpAwM5y9aZ0NiiNpBeT4YKe2h4/eLfZmGFhm+ixitrxTbv+ZfR kZ86V1zvPWRaVD8bO9PRI5CYV/Qtqq71nUP20tvgnaeKBnVx3XfwQ93MFvDA8v0ROJud RdAxZS/tuinRmgEGsazhWdYIHS3LXC2ndCuYMWXaj9wUJS/QY8mOZzR/eelB8hjiIrry p2mQ== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=fE1Rg3lQ47GNlTN+vqh5pG95EpB4EK63ZZOQknX+emI=; b=Et48Fy+dJ1x4LiOElfQuLi0ZltgmiEGYP/SxUhIUn1pJUDrjSaI83Bpou7ZoAljEmD xtHX0tHL80QkSJG2z+wBHypL/2j0fsWTdmvRK4oOiYYd1G80RKzW5JBNJjG8VeovXAtT XWZ9vq/CfvBxjNVhXFx85AZ3sHuMD9ATYjibDFGGUOS4lXQ1ySnt5dInhLLg3wtUf6ae wSyT2vYfQC+KQqcKxrt01Tm2xca0OCItGVBi7wcPJmFcp9ut9GBM8MRq6jaanEtM0SFs /4ewfjCVg4nqptfrjU74eeMXHD0iXTaSFmFEkJ3+/IcFMo5hwXhmWqxCqfk/34vCbqnO 1/oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vqbDdCyO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si1883574pfn.266.2019.05.23.17.59.09; Thu, 23 May 2019 17:59:30 -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=@kernel.org header.s=default header.b=vqbDdCyO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731671AbfEXA5k (ORCPT + 99 others); Thu, 23 May 2019 20:57:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:41430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731608AbfEXA5j (ORCPT ); Thu, 23 May 2019 20:57:39 -0400 Received: from localhost.localdomain (c-73-223-200-170.hsd1.ca.comcast.net [73.223.200.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 83AB720862; Fri, 24 May 2019 00:57:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558659458; bh=rxwFvkRmOQ3G9Zun+OPPOUtfAL4LSNfqUCTmRBsD3Oo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vqbDdCyOo/WuyU6rByzMzqY0mLECbjGBEKjm0yfhJCvzkT18gZ4eXDMmUSAy4Mvmy d/1bVl3uabwBPZapVb5pB0twkbf8I6uCNMhK70bjUINQxrrUCtG2fnp3kHsFrRzuH9 R/MjcQhzatl4pRWR1LiaSHTCkCiRrQqEr+hxLLKA= Date: Thu, 23 May 2019 17:57:37 -0700 From: Andrew Morton To: David Rientjes Cc: Mel Gorman , Andrea Arcangeli , Michal Hocko , Vlastimil Babka , Zi Yan , Stefan Priebe - Profihost AG , "Kirill A. Shutemov" , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] Revert "mm, thp: restore node-local hugepage allocations" Message-Id: <20190523175737.2fb5b997df85b5d117092b5b@linux-foundation.org> In-Reply-To: References: <20190503223146.2312-1-aarcange@redhat.com> <20190503223146.2312-3-aarcange@redhat.com> <20190520153621.GL18914@techsingularity.net> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 May 2019 10:54:16 -0700 (PDT) David Rientjes wrote: > We are going in circles, *yes* there is a problem for potential swap > storms today because of the poor interaction between memory compaction and > directed reclaim but this is a result of a poor API that does not allow > userspace to specify that its workload really will span multiple sockets > so faulting remotely is the best course of action. The fix is not to > cause regressions for others who have implemented a userspace stack that > is based on the past 3+ years of long standing behavior or for specialized > workloads where it is known that it spans multiple sockets so we want some > kind of different behavior. We need to provide a clear and stable API to > define these terms for the page allocator that is independent of any > global setting of thp enabled, defrag, zone_reclaim_mode, etc. It's > workload dependent. um, who is going to do this work? Implementing a new API doesn't help existing userspace which is hurting from the problem which this patch addresses. It does appear to me that this patch does more good than harm for the totality of kernel users, so I'm inclined to push it through and to try to talk Linus out of reverting it again.