Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp86244pxb; Mon, 25 Oct 2021 04:26:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMViqjINEWN76V+694NAgJJdG2JSYkNGboLmtEAw2676hCNyVFg9EZ9+49PYeQIXkkS6X0 X-Received: by 2002:a50:e60a:: with SMTP id y10mr25733074edm.233.1635161195456; Mon, 25 Oct 2021 04:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635161195; cv=none; d=google.com; s=arc-20160816; b=nuCma0C/Syf2Opk6lOktkZ0zeJ+pT4F18+WEdE2qrC4a3pii0eN9ZZREcHbZixS8kN c/Yy5ZwHC5Ddd4OPghXwHJyWPsOy4VLvNsyDJEpM20svuFZIHJiZ0Ahd9mJmLeQxM6+F tzptVi8FQHp0T2sOw3vKMMs+bXDFCe0U8S8dRVru86oeilwVxpJ1IinQcvgWnqTUMh2j khEZNGAlC6fQW/obj9zbDK3iho0cULJ51j0oq2SUga1DHRghkPUy+uydqBfkDGUJ8uum 57rgQM7Od/wO4bLRNGYR/iqPFIEFg+9JLTkGZG2eZ2nAjA10Zx6xU5IrFAtyL9O40Tta VYQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=dvcTBX6oFUiC/1bvh2fK775aNJCv8thWhu+QlD3HECg=; b=VG5mN0oQf8YLh1xkguhz9ROZqSxAOqyHVsPTl4rx/aFZUGFG5G0vkx5/aP4tGPjx6a /Cj0gkb6PCbM1YnPAd1dPCTKEDciETQ4V0XLKALrh1qSX/9GhSF2hN+MboFcwCdGUvft PxKU8MwWPmyMyvmZlSq9v5UlVwhpwE1vYMQtaHtrmTqxupIlOX7Bju8RYruB2wbt33Ot VEWrHHCJU3C/ud4mVnhQhc43Wh+ZEY1FyJEyfcKnbZjRsmOMR3J3eCgJMGrvlSSlmFpj knlPlSy2r7DQU/lccNnNuLFJzwgVsRCqGVBnG18BTr7YWQpKoXz3rnsdwZcA/Xx82MJj gB3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=br7qWuII; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si35959201edf.92.2021.10.25.04.26.12; Mon, 25 Oct 2021 04:26:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=br7qWuII; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230327AbhJYKKC (ORCPT + 99 others); Mon, 25 Oct 2021 06:10:02 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:37002 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230070AbhJYKKB (ORCPT ); Mon, 25 Oct 2021 06:10:01 -0400 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-out1.suse.de (Postfix) with ESMTPS id 665F621921; Mon, 25 Oct 2021 10:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1635156458; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dvcTBX6oFUiC/1bvh2fK775aNJCv8thWhu+QlD3HECg=; b=br7qWuIIRODx29onOJW6NpA6ttSJ2eYKlbaHgTq3+Hb+Db1ecrMGkrGd51+PRW6KZRARa7 lzrcGBgwb9uYZLesJSCynPuXtqgJz1V2OrPHXEgqi1K7I768RGmv7MO60y1k8edp8pNULi A9oL4HFac6TMw5zIKdXpGaq0b7a+0v0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1635156458; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dvcTBX6oFUiC/1bvh2fK775aNJCv8thWhu+QlD3HECg=; b=jZiz7y5C/2nCLsiV05LsGbbLZ+WvJo6IptQOTbBZ+UsIXLRKD3MLy0CDVi7Ti5nQbAdBvS 4gafu7l01FFdLdBA== 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 3471013B95; Mon, 25 Oct 2021 10:07:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id W1wKDOqBdmE4ZAAAMHmgww (envelope-from ); Mon, 25 Oct 2021 10:07:38 +0000 Message-ID: <869ffc61-db52-fa00-b796-6780ab16780d@suse.cz> Date: Mon, 25 Oct 2021 12:07:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH 5/8] mm/page_alloc: Remove the throttling logic from the page allocator Content-Language: en-US To: Mel Gorman , Andrew Morton Cc: NeilBrown , Theodore Ts'o , Andreas Dilger , "Darrick J . Wong" , Matthew Wilcox , Michal Hocko , Dave Chinner , Rik van Riel , Johannes Weiner , Jonathan Corbet , Linux-MM , Linux-fsdevel , LKML References: <20211022144651.19914-1-mgorman@techsingularity.net> <20211022144651.19914-6-mgorman@techsingularity.net> From: Vlastimil Babka In-Reply-To: <20211022144651.19914-6-mgorman@techsingularity.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/22/21 16:46, Mel Gorman wrote: > The page allocator stalls based on the number of pages that are > waiting for writeback to start but this should now be redundant. > shrink_inactive_list() will wake flusher threads if the LRU tail are > unqueued dirty pages so the flusher should be active. If it fails to make > progress due to pages under writeback not being completed quickly then > it should stall on VMSCAN_THROTTLE_WRITEBACK. > > Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka > --- > mm/page_alloc.c | 21 +-------------------- > 1 file changed, 1 insertion(+), 20 deletions(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 78e538067651..8fa0109ff417 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4795,30 +4795,11 @@ should_reclaim_retry(gfp_t gfp_mask, unsigned order, > trace_reclaim_retry_zone(z, order, reclaimable, > available, min_wmark, *no_progress_loops, wmark); > if (wmark) { > - /* > - * If we didn't make any progress and have a lot of > - * dirty + writeback pages then we should wait for > - * an IO to complete to slow down the reclaim and > - * prevent from pre mature OOM > - */ > - if (!did_some_progress) { > - unsigned long write_pending; > - > - write_pending = zone_page_state_snapshot(zone, > - NR_ZONE_WRITE_PENDING); > - > - if (2 * write_pending > reclaimable) { > - congestion_wait(BLK_RW_ASYNC, HZ/10); > - return true; > - } > - } > - > ret = true; > - goto out; > + break; > } > } > > -out: > /* > * Memory allocation/reclaim might be called from a WQ context and the > * current implementation of the WQ concurrency control doesn't >