Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1496824ybn; Wed, 2 Oct 2019 17:31:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzIlMiRBNoWDxif/FHLyqfmtak0Yza817PCDzGZMbjDojQMDw8FdMob38g4eG3oSknwoLi X-Received: by 2002:a50:fa98:: with SMTP id w24mr6869162edr.47.1570062674211; Wed, 02 Oct 2019 17:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570062674; cv=none; d=google.com; s=arc-20160816; b=OYkVZCVgdYbQS65ZwdokX603J5Dj4iuE2ORDOBepjq/BXYRy6mTYp0iYLgSzg0k8gO WCIbF1SkPgW/0DtGKqCmPouvfxt7lbu45B/rvlgAIu8pERZYVvcdCeBvSjdhYJFYhr8L a1FwLZdblUMo3JBRPqeD8sLhHeC+osC8VVZ2qjOy8AatU5UPYTjyhuiUlqNIA15M8Vk3 qMvRNY8fSTgq5EOwgvLdwS5BNOdDj1iR1lBPrw+QAbTBr8C9SVuuGa4qBQ8jDHHmgEHJ ZkdJ3XC/HQ4e5proQntGcetvKCLaAEJZnGH3eFUz349yW3EUCASBc/vOuWMcKGKY7FO9 2q+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gZjgSIj0qxyD6RaNtViJgY4xf89RohIDwPAnz/d5hI8=; b=GvigwRBWLFDHqQG7K8lfYYRctC6CZeiEuhh25F/S7KdwfQK6upZiFQG1+IXTDIrbGw X3b+yEYpziJmIGPHNZvq549vtR9t0K/j2KPyMq4+CI/RYAVTZ+sTDN/yiUl11hX/79Xa Bv7opPVgaAQRyoG2bOPyQzrvZQ5Ll9RTgf/Eu50vvjV8YJvJuuAfE4wQWGTSDxLCxVGd FY0IADNqrsNtDgIticglYsa7QVPmwU5jmCxyYJhIS9JjDOK6oE9nm0ut1iYFihWKVuKB h9HHZBd3snkFksNRTHfXqFeFcbo1DEZF9GkVpehPE5E/XJtTzVtp/cqp56suA2kpSTlZ uXgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=XctgwNUS; 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 d1si438353edr.446.2019.10.02.17.30.50; Wed, 02 Oct 2019 17:31:14 -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=@linux-foundation.org header.s=google header.b=XctgwNUS; 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 S1729435AbfJBXiT (ORCPT + 99 others); Wed, 2 Oct 2019 19:38:19 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:37197 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729203AbfJBXiS (ORCPT ); Wed, 2 Oct 2019 19:38:18 -0400 Received: by mail-lf1-f67.google.com with SMTP id w67so359686lff.4 for ; Wed, 02 Oct 2019 16:38:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gZjgSIj0qxyD6RaNtViJgY4xf89RohIDwPAnz/d5hI8=; b=XctgwNUSLJVHyx0l1z7HmbUqXz/kLm2tlmec02aPXrV9Mg4o/2cYv7qFPK2f4824Fy huoPbZKRtlv3H5nyAAxtBbaDGrOWa3y+sAgPN1x/k8UITKbzDoFrTzAhN7+ANuYCBttV 48q8QQY3ufyqk60ntMEla2tbGmOT9eQW9m25M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gZjgSIj0qxyD6RaNtViJgY4xf89RohIDwPAnz/d5hI8=; b=c85tImgTim2pVGOH6vPkY42bdBFr6EJhvJ1Vlp/78gJ/SXb0kUW188rSY5Szk1E6FG Dv74pan/6doQnNrPpux9KKh5OtQoMDPeHF4ohTBlCNGXlbx1ZmUyYSUtrZZgAzVqtyIv ZOf47QFJnhGxxvx6VzWjX96QkkRiiH+Pd9loAlw/5tVym/xM315hRNH9Nl2d1HlTiCFP MRhKm0e7DSoyVxh5D7o3iBHT5Iq+MTC/QZv1Vy8lNfqJ6EKXz6jUdZl8nM/w66diTIpr kqgrTwoXqEz2sPkjO7eI2UbEkRx5TxMnezvhgdm2j3eebaOJ3ko9ZCUBVN95WrfzAOIg F8xQ== X-Gm-Message-State: APjAAAW6/nW+iAXlA6N6MhH239V5p17bojdAWRQIleSY83Olkt8PP8bo w/hURsBjuaTTnOWikizb8B44MZrX2s0= X-Received: by 2002:ac2:4853:: with SMTP id 19mr3753993lfy.69.1570059495433; Wed, 02 Oct 2019 16:38:15 -0700 (PDT) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com. [209.85.208.173]) by smtp.gmail.com with ESMTPSA id q3sm174823ljq.4.2019.10.02.16.38.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Oct 2019 16:38:13 -0700 (PDT) Received: by mail-lj1-f173.google.com with SMTP id y23so619117lje.9 for ; Wed, 02 Oct 2019 16:38:13 -0700 (PDT) X-Received: by 2002:a2e:551:: with SMTP id 78mr4178421ljf.48.1570059493007; Wed, 02 Oct 2019 16:38:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Wed, 2 Oct 2019 16:37:57 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [rfc] mm, hugetlb: allow hugepage allocations to excessively reclaim To: David Rientjes Cc: Mike Kravetz , Michal Hocko , Vlastimil Babka , Andrea Arcangeli , Andrew Morton , Mel Gorman , "Kirill A. Shutemov" , Linux Kernel Mailing List , Linux-MM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 2, 2019 at 4:03 PM David Rientjes wrote: > > Since hugetlb allocations have explicitly preferred to loop and do reclaim > and compaction, exempt them from this new behavior at least for the time > being. It is not shown that hugetlb allocation success rate has been > impacted by commit b39d0ee2632d but hugetlb allocations are admittedly > beyond the scope of what the patch is intended to address (thp > allocations). I'd like to see some numbers to show that this special case makes sense. I understand the "this is what it used to do, and hugetlbfs wasn't the intended recipient of the new semantics", and I don't think the patch is wrong. But at the same time, we do know that swap storms happen for other loads, and if we say "hugetlbfs is different" then there should at least be some rationale for why it's different other than "history". Some actual "yes, we _want_ the possibile swap storms, because load XYZ". And I don't mean microbenchmark numbers for "look, behavior changed". I mean "look, this is a real load, and now it runs X% slower because it relied on this hugetlbfs behavior". Linus