Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9651022rwl; Wed, 11 Jan 2023 08:15:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXtzXxPxO9VZRe2g7AP3pwb6e02LHm0XGNn2H4nmWyR7wuiA+raMjZ5nZakRGTRQonqtlq0j X-Received: by 2002:a17:906:99d1:b0:7c0:ff76:dc12 with SMTP id s17-20020a17090699d100b007c0ff76dc12mr46314488ejn.2.1673453744809; Wed, 11 Jan 2023 08:15:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673453744; cv=none; d=google.com; s=arc-20160816; b=ob3bWnpDvIC9oBga9zKVaj5Cr6TOTIHILvbosSgiLx7yhaoGsdC9YyHsMcFYbB2oUV o0RKLXNVN6tn4Cg5IF+u6JjQ05TBq2JAwBFrpsnTwrjLa7875f9yeWMg9HREPlrBOz+G OJSIg4L6dtSv3idiVGrLIrIkhTgYGiD1/63RcreF4peIv0/GhgpzNFAbsD48fJwRbBdo xa4gZLl32WNaF3OHhcdmN9YG5wlkgW0UJMwf3NvYhYZ7t26LAzJhVOmPEW6x/UVRoXLr 2reHRnRMLN8I3JyAexnmz/oBzTCLV42UXlW4QjwIvGKBt+SxkA/Li9HP6Q2QrMFiYtPw kYuw== 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:dkim-signature; bh=RS8PjqU9YFPoIKDDQ9J6v5ILsERDzr/8Ox+dYyD2kcI=; b=F6MDAI9OboAcMkh1igvzs7E4nLl2LUZA1gyJqNLvfuGGq9t4RJvcL1MdNFhgt3s7Mz 3ZcUCLjjZ2vJarm3Gub410qPyLcPF2lJ+EMhxIKOXIgOqElxYZ4cJcJZK2/1CiJhQ97P xLMZKqREqUYVd5oJ27FQ9OEARbyyKNuZg3/wVB5bvXy0aLDoOiPmZF9BP9NHbfByG5qo ZSuzVcp/CTU2lWxVsTtuGzD/T2RZLTvPuvmUIm8g+pmZsfm/QyjCU/moba4/bylwcbhx +bC9RmoSWjWSz+MLuY9Bs/dhVDvKeOMgyMy1PorSzLe/TAFnbbu6ZjFuy6d+tTVsKiHw gTbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=FzMW2nfJ; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a1709064fc700b0084d2eb17555si15959724ejw.579.2023.01.11.08.15.31; Wed, 11 Jan 2023 08:15:44 -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; dkim=pass header.i=@suse.com header.s=susede1 header.b=FzMW2nfJ; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232608AbjAKP6N (ORCPT + 53 others); Wed, 11 Jan 2023 10:58:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234734AbjAKP6G (ORCPT ); Wed, 11 Jan 2023 10:58:06 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF24065EB for ; Wed, 11 Jan 2023 07:58:04 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 68A704D49; Wed, 11 Jan 2023 15:58:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1673452683; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RS8PjqU9YFPoIKDDQ9J6v5ILsERDzr/8Ox+dYyD2kcI=; b=FzMW2nfJRIMKMnVBiHF+x+MY9wIHV7E1dybIbBYHmQCTHYQV872cRsIjep8wyZJM/2eL6c /8Jw/j/bjtA4sDn6hsfj8k4bRDM5kgnldGTArOvrAIkyzSOV/Tn6JOQKR/LZDTGcPC2dk1 KeorY/gg7g1//gx68et/J2CwsDr3IkU= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 3E8CB1358A; Wed, 11 Jan 2023 15:58:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id /fpADIvcvmOvQwAAMHmgww (envelope-from ); Wed, 11 Jan 2023 15:58:03 +0000 Date: Wed, 11 Jan 2023 16:58:02 +0100 From: Michal Hocko To: Mel Gorman Cc: Linux-MM , Andrew Morton , NeilBrown , Thierry Reding , Matthew Wilcox , Vlastimil Babka , LKML Subject: Re: [PATCH 6/7] mm/page_alloc: Give GFP_ATOMIC and non-blocking allocations access to reserves Message-ID: References: <20230109151631.24923-1-mgorman@techsingularity.net> <20230109151631.24923-7-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230109151631.24923-7-mgorman@techsingularity.net> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Mon 09-01-23 15:16:30, Mel Gorman wrote: > Explicit GFP_ATOMIC allocations get flagged ALLOC_HARDER which is a bit > vague. In preparation for removing __GFP_ATOMIC, give GFP_ATOMIC and > other non-blocking allocation requests equal access to reserve. Rename > ALLOC_HARDER to ALLOC_NON_BLOCK to make it more clear what the flag > means. GFP_NOWAIT can be also used for opportunistic allocations which can and should fail quickly if the memory is tight and more elaborate path should be taken (e.g. try higher order allocation first but fall back to smaller request if the memory is fragmented). Do we really want to give those access to memory reserves as well? -- Michal Hocko SUSE Labs