Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10740369rwl; Thu, 12 Jan 2023 01:47:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXtfUzpry6GAyqa292eh/fEkBKbKFbc2ld6P2dY4kmkMi7HtEbaTYhpj+1YD0w82ycWS2ghD X-Received: by 2002:a17:90b:1b06:b0:226:7e5a:fe05 with SMTP id nu6-20020a17090b1b0600b002267e5afe05mr35323591pjb.2.1673516867947; Thu, 12 Jan 2023 01:47:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673516867; cv=none; d=google.com; s=arc-20160816; b=tfHFQWdoEh/hwG8lmv+fInntNd8EXT0wMPp5V/D0529kFhKGK5n4rSyU3qpxsbdncv Nag3z/SN96z2p/jG24XVPNqVCJgQmqfVXTmtUjoR2M0oEMg3uCbY7iziykzq+zm0bmvN mCsnOn9r1dD+rW120H7JGeTfR3cToVARZV21DsXnZ7nsLGLjq1QDU5b14TwSjj5W+ftB qEwe9M30JLnDwPNvO8D+ypA3/sdiFsJjsYgwNMTDmv+gdzShl+JhnhU/kVDHvdaenrJl F+VONa076ehzjd26eHpfJKL7VjCT8K0faHA21gq30oPZWfJdRsS0qPtDmwf/S1vccQT3 GtLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+zB7iY4dT6fnArSFfs6Exhy1Zz39jEh2Ip2A6+A1DLQ=; b=w2BuoKYDbRbuhBllGnqgcovnKmJcQdS1BdFKtNaFoq+KigRl39VFLEQ4kTihKqMYTO x0h6HrrBptYwkgGCHBlKqXC5EJu/j8cVg7Gs7fERJfHlM8ZxJGkZhv6nRyiMHEg4l+uj ZsJaTLVzTedzSS0x71k9IL4WTVOU9rBn7Fd6F5IfuWqK8kJqeRckSvB1nFm8mFDUIVzd 6E8tM9gV9LG9vVmzFWSk+MUVu0/UBU1ts6tk0pC3YSALYjk+PuhrVj6T8DfJKR3bwEZM v4GiFIGHJYmL3kuvNv/xisXxX15CDyXs8yDNFAI7lGcSi9/QXuTzUBESl0CjfzHM4GAk 8ASA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a17090aa40a00b002191a044fadsi19181228pjp.122.2023.01.12.01.47.41; Thu, 12 Jan 2023 01:47:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240069AbjALJmO (ORCPT + 50 others); Thu, 12 Jan 2023 04:42:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbjALJkx (ORCPT ); Thu, 12 Jan 2023 04:40:53 -0500 Received: from outbound-smtp36.blacknight.com (outbound-smtp36.blacknight.com [46.22.139.219]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F512A1A3 for ; Thu, 12 Jan 2023 01:38:16 -0800 (PST) Received: from mail.blacknight.com (pemlinmail04.blacknight.ie [81.17.254.17]) by outbound-smtp36.blacknight.com (Postfix) with ESMTPS id D9FE71F58 for ; Thu, 12 Jan 2023 09:38:14 +0000 (GMT) Received: (qmail 25808 invoked from network); 12 Jan 2023 09:38:14 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.198.246]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 12 Jan 2023 09:38:14 -0000 Date: Thu, 12 Jan 2023 09:38:12 +0000 From: Mel Gorman To: Michal Hocko Cc: Linux-MM , Andrew Morton , NeilBrown , Thierry Reding , Matthew Wilcox , Vlastimil Babka , LKML Subject: Re: [PATCH 3/7] mm/page_alloc: Explicitly record high-order atomic allocations in alloc_flags Message-ID: <20230112093812.x7kgdgvyd2fzrwex@techsingularity.net> References: <20230109151631.24923-1-mgorman@techsingularity.net> <20230109151631.24923-4-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 11, 2023 at 04:36:01PM +0100, Michal Hocko wrote: > On Mon 09-01-23 15:16:27, Mel Gorman wrote: > > A high-order ALLOC_HARDER allocation is assumed to be atomic. While that > > is accurate, it changes later in the series. In preparation, explicitly > > record high-order atomic allocations in gfp_to_alloc_flags(). There is > > a slight functional change in that OOM handling avoids using high-order > > reserve until it has to. > > I do not follow the oom handling part. IIRC we are dropping highatomic > reserves before triggering oom. Something might have changed down the > path but I can still see unreserve_highatomic_pageblock in > should_reclaim_retry. > That comment is now stale and should be removed because I fixed up the OOM oddities. At this point, a series resubmission is needed because a few changelogs have to be updated. -- Mel Gorman SUSE Labs