Received: by 10.192.165.148 with SMTP id m20csp357667imm; Fri, 20 Apr 2018 07:55:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/aoHjBaN39o5Nd5rWV9Tcxg51TTsWReVBKjqboFyTQ/lsoknBo4NVi5Im6UE3vi7dn4s6W X-Received: by 2002:a17:902:a70b:: with SMTP id w11-v6mr10460527plq.353.1524236123125; Fri, 20 Apr 2018 07:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524236123; cv=none; d=google.com; s=arc-20160816; b=WCew0QlB5GnjEAabCmRBZtJBQ5O6Hztn5WaBvG/tlYreDn+O+vGgThf7HqhFg8GKLz 5ByWKrwQ4AV3tZyb6h5jA7UGm7kBtnA//GxwexUmoWsKgpvlvCe0++qsOJi75qe/Y+la PdPqq9eiB1xK/txsFmjp6erXUbwcSEkOS7nVUAwcfIH8rMndbu1hi720jLFxRxu0TOXo z+RRvwcTBvT820X21CQICWuAxvspM2Bsf/OdcDoxHWwjl7Aoe4nc4BcqSQXyelMRJaHU Pz9jFhYPdz+NGxuxgm5RFyEwD1kr8YrQgYpvROqC5gsigjGstfBWPyuEaT7+GHdQFu9S QdgQ== 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 :arc-authentication-results; bh=CCf3jeSUy400tfEWzvy2yt294XvoRcOQBNVHK8/wtvo=; b=KfGXmH0GG1028UlrczqdXIoUbWNs3u/bhS/2IdoxbfQyM1V5omHcs91Xxk1N20EkU/ 7B3RRVgvpitpN1WO51qZzDttA6xVYQj86DCnRflHykTLkCUIUMXbIHbpqUjOt7T8Ta5w Of33pvUZ3IrWJMcyDJMNx4OoRqp6EOg/mxNm8NTHudMfAaSACQfcTasiukY2sOZtLPxu Q9rEorFNykCrJC3FEARNHrxi1i4ZNMIjwn7vj2kFXLnagUBi1/f8G38bpf0TTN7IwvNQ Hrs/f5O3a5ifqdkY4HE2G2/zBTKyV6fMKo9oJKkFvnYRKLOWerfkW9xkNDusgl9HR81o gdqA== ARC-Authentication-Results: i=1; mx.google.com; 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 w10si4634434pfi.88.2018.04.20.07.55.09; Fri, 20 Apr 2018 07:55:23 -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; 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 S1755407AbeDTOx4 (ORCPT + 99 others); Fri, 20 Apr 2018 10:53:56 -0400 Received: from resqmta-ch2-06v.sys.comcast.net ([69.252.207.38]:48978 "EHLO resqmta-ch2-06v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755234AbeDTOxz (ORCPT ); Fri, 20 Apr 2018 10:53:55 -0400 Received: from resomta-ch2-18v.sys.comcast.net ([69.252.207.114]) by resqmta-ch2-06v.sys.comcast.net with ESMTP id 9XQAfgAj9fzGc9XQAfmd42; Fri, 20 Apr 2018 14:53:54 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-18v.sys.comcast.net with SMTP id 9XQ9fSGaJU3ED9XQAfZeJU; Fri, 20 Apr 2018 14:53:54 +0000 Received: by gentwo.org (Postfix, from userid 1001) id 378D91161657; Fri, 20 Apr 2018 09:53:53 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 35216116047F; Fri, 20 Apr 2018 09:53:53 -0500 (CDT) Date: Fri, 20 Apr 2018 09:53:53 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Michal Hocko cc: Vlastimil Babka , Mikulas Patocka , Mike Snitzer , Matthew Wilcox , Pekka Enberg , linux-mm@kvack.org, dm-devel@redhat.com, David Rientjes , Joonsoo Kim , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] SLUB: Do not fallback to mininum order if __GFP_NORETRY is set In-Reply-To: <20180419110051.GB16083@dhcp22.suse.cz> Message-ID: References: <20180419110051.GB16083@dhcp22.suse.cz> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfLG2F4Q8peAuO9L/0cRlAM3/YH8XqExASWsBtksX6eak3NvWqD5t+hUULQxECxskI+klYVaDpfpbPuSA5YxoGlceEJEyvIMIq5Yuzg1mBvdAhOmff9xU PrqA0wP5Y7XhaS0/3iSG4b6i5tuUPBYzXVAFIZDTn9xs5GWQ+3kYmB6BbbGUVHxxksBJ/nopgYVLgWuAgpwRGrSAGg3IoCiAmdmItSCX/fGwvDiKysvppEdc hdcBsMazBdqZ6m839+FOBTgC4+rlaqxuw0EkMryz8ENJnf3zZAgPGTM9LJQaOHztpUu7C5p6kXq0QLTqp3lMk7yvIL7PQOwIDUUoCNIA+9TQolC2+ptSeFOZ p42obiwNxiqdIgY518UYKBulGJjldBD9AVf+z0G+ucCD4ZkOIMm9zQmLh6SvBJS4tzSkqVqeY8c3gGimShL2fqakGWAwwC1JSmoqpEPE+uAUQroMSED1COrV fR8a0aT7cslM0Cr6SZJsDCTbKCcLQLzBmgCsxQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Apr 2018, Michal Hocko wrote: > Overriding __GFP_NORETRY is just a bad idea. It will make the semantic > of the flag just more confusing. Note there are users who use > __GFP_NORETRY as a way to suppress heavy memory pressure and/or the OOM > killer. You do not want to change the semantic for them. Redoing the allocation after failing a large order alloc is a retry. I would say its confusing right now because a retry occurs despite specifying GFP_NORETRY, > Besides that the changelog is less than optimal. What is the actual > problem? Why somebody doesn't want a fallback? Is there a configuration > that could prevent the same? The problem is that SLUB does not honor GFP_NORETRY. The semantics of GFP_NORETRY are not followed.