Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2375363rwr; Fri, 21 Apr 2023 08:05:52 -0700 (PDT) X-Google-Smtp-Source: AKy350aupqU11fTeW7E+v13XV2eEC2hpVj9K4ENG8Ksct6vP32/q20Z3S9syt59GorIjVISmn7DT X-Received: by 2002:a05:6e02:1609:b0:325:f635:26c5 with SMTP id t9-20020a056e02160900b00325f63526c5mr3610055ilu.3.1682089552594; Fri, 21 Apr 2023 08:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682089552; cv=none; d=google.com; s=arc-20160816; b=acY/6Z8bXT7g/RRksMpwghInILybn/Ty1FYq6sVsvRXUHMhYQyaRyP0C8GFqtl9Okl Sz6XQFom9e6UdiBN/RvZuK60wrCSyxljqo3nvWvG34A/ZLcXBV8Y/d9JF6oL44iRL9I2 KdK+p+GvYkMxt7xojUZvy6QgUr7/WGJhRprKZYDQIPU7aqckzhFkyqUgtlQVkR9z94xq 6SJvt3lyC29M2fTc6UEpok3zvl3IZ3YHyZL3OLykQDiAaJ9ysFu87s2LcxtG9suPKj7x qCtf2wbrzlNBJm7pOenB2TVD8ESEwoi/ou7KgW6yUs/S0lFMSTuAZk/9WNd1GkmjTADE LEzw== 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=m+HAhtJ6SwJGqYj7xmRd1xMtpV96EzQAbNAKDtjSuek=; b=E67xeSEeX3DoFB5Zw3VXjSY5ofKMF9G1EpjTGJjAhnQIxMXFOspFpZYET05E2PJc/m bcbp/ksXI6ZVo76gTd4/VjnaU0c5GAJkrfcczKiXPs9lmidLEp0oLBiiyAF765QCuYIe S2JH5P0IvSU/EYCTIl0dPW2NnDy+OPhfC3nYA/b4vZ0C5TMz/Uq55Q4SJ17GJ03j309d Y5xxAH8znwT9gG4Lum7VulEJ1CK9PmJv/hOG5GYDspCr0vB5rivLFgTuiBwKHLloRlTv ubBGw2wGxQ0iRRnKSf2CsFqARFUzgBYooXsW5H7qIEIkfnA3VtbiOTO1nBP3ItearhBF ZzlA== 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 o20-20020a02a1d4000000b0040fa6395ccasi3684895jah.55.2023.04.21.08.05.38; Fri, 21 Apr 2023 08:05:52 -0700 (PDT) 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 S232869AbjDUO5E (ORCPT + 99 others); Fri, 21 Apr 2023 10:57:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232215AbjDUO5C (ORCPT ); Fri, 21 Apr 2023 10:57:02 -0400 Received: from outbound-smtp18.blacknight.com (outbound-smtp18.blacknight.com [46.22.139.245]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C764D324 for ; Fri, 21 Apr 2023 07:57:01 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp18.blacknight.com (Postfix) with ESMTPS id BDD041C3F9C for ; Fri, 21 Apr 2023 15:56:59 +0100 (IST) Received: (qmail 4981 invoked from network); 21 Apr 2023 14:56:59 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.21.103]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 21 Apr 2023 14:56:59 -0000 Date: Fri, 21 Apr 2023 15:56:57 +0100 From: Mel Gorman To: Johannes Weiner Cc: linux-mm@kvack.org, Kaiyang Zhao , Vlastimil Babka , David Rientjes , linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [RFC PATCH 25/26] mm: page_alloc: disallow fallbacks when 2M defrag is enabled Message-ID: <20230421145657.fnpjqkuyquy3z24t@techsingularity.net> References: <20230418191313.268131-1-hannes@cmpxchg.org> <20230418191313.268131-26-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20230418191313.268131-26-hannes@cmpxchg.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tue, Apr 18, 2023 at 03:13:12PM -0400, Johannes Weiner wrote: > Fallbacks are already unlikely due to watermarks being enforced > against MIGRATE_FREE blocks. Eliminate them altogether. This allows > compaction to look exclusively at movable blocks, reducing the number > of pageblocks it needs to scan on an ongoing basis. > > Signed-off-by: Johannes Weiner Conceptually this could be fun if a GFP_NOFS allocation cannot migrate enough memory to free one pageblock and there are no pageblocks available of the correct migratetype. Fallbacks might be unlikely but never being able to fallback is a livelock risk, no? -- Mel Gorman SUSE Labs