Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4762619pxb; Thu, 14 Oct 2021 11:27:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHrdrtIo1VjS5ZzmsSkYSuVSBXO2sxk0OUxb7DRcV9O2Ml6OztenYavMYIkljyNn/z1vPq X-Received: by 2002:aa7:843d:0:b0:44d:2199:3ecb with SMTP id q29-20020aa7843d000000b0044d21993ecbmr6940913pfn.78.1634236028500; Thu, 14 Oct 2021 11:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634236028; cv=none; d=google.com; s=arc-20160816; b=lpBc/DTJVBMLiECTLRbLr7Dws6yJcBmRpQEUy893ciSsUvlUGhjMt9MiQ3H/3fOP6f 6flIL+16zydrz3nm1tVi1Q/4rC/9XxeElUrwcCvyzmpBpsPfWCdnuDdXVE8S2q2DztDF oMVUeulSbsAj9njMof4sC5+p0W82Lv69yHX/OZbQD6PRMOK8K1cWFDruchbE/ZwTx60H amTilJhBAJu33GI6wfCvlmUUC0GUJRhbkmK/XXsOPMGXb0Hv3lkTk5giEEpJiOMPYGu2 BJx3V4JhZL3bFi7Tr2DBSEgJKb0DzHchUsMBSIdnKYxZ5M+4hd4UTulESEfSIYpvNIqH jrjw== 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=hfCwUxPav+5NMXp6E/NQJY5UwNLjQOLziGSbZZ1HUl4=; b=1EKn0g6wjCwpFoEgW752BhAgQW7yd7Akolh2muUFuWpOLkCaEETTN5cjVZojvSDNM4 IZrCQTlS2vgTg4j19QKqqKt7KaEHH7gELwQLrDyp++akvWrYbsyV/IdnxRsyrfi8t9nf YiizFrcjuW1LX5i8fpVIN7mAbPVJZmEBcksSxSNK0kozwFBN+Edf2d68y4UFx+G/rx/K 8fvx1s6ycDbBHDs1iwvF3irlz+mTrjv5p9ShkJEXQnBgBke3de8jn59kgxhTgYGux+WY K6laz63Bd6JFQAiuJldZp5N3GGFTvsOdkNvvZHvKVz++u7aesgvIjULomhCCRkS3CvE+ 9wrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=zskhCKQR; 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 j1si3820737plr.208.2021.10.14.11.26.55; Thu, 14 Oct 2021 11:27:08 -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=zskhCKQR; 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 S230494AbhJNPi3 (ORCPT + 99 others); Thu, 14 Oct 2021 11:38:29 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:50632 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230172AbhJNPi3 (ORCPT ); Thu, 14 Oct 2021 11:38:29 -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 113832199D; Thu, 14 Oct 2021 15:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1634225783; 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=hfCwUxPav+5NMXp6E/NQJY5UwNLjQOLziGSbZZ1HUl4=; b=zskhCKQR7MLMfGBQG9LY4tClO48hLJyuPFIryiADcJuXnMzpI5PNhcLhEuF5wvLph9Qfbq lOG91gsXPBeZp6OkNp8RVvzUJJD2oVWIuASBZZvIXA/zNHibzIfvu+nrZD+euj8d0PfZRp M6upmWMdkaY21VS7Bu1HrAWUrprrN40= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1634225783; 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=hfCwUxPav+5NMXp6E/NQJY5UwNLjQOLziGSbZZ1HUl4=; b=AtVsJG+JtGYst8VgqzZHtsBbJGyCbw4oMCR1gH0Zsm2CMx8Z89cB+729ieNEwejGkqPcSA IbbDBgZHcvTFNACw== 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 D242413D9F; Thu, 14 Oct 2021 15:36:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id nX2OMnZOaGFRHgAAMHmgww (envelope-from ); Thu, 14 Oct 2021 15:36:22 +0000 Message-ID: Date: Thu, 14 Oct 2021 17:36:22 +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 , Linux-MM Cc: NeilBrown , Theodore Ts'o , Andreas Dilger , "Darrick J . Wong" , Matthew Wilcox , Michal Hocko , Dave Chinner , Rik van Riel , Johannes Weiner , Jonathan Corbet , Linux-fsdevel , LKML References: <20211008135332.19567-1-mgorman@techsingularity.net> <20211008135332.19567-6-mgorman@techsingularity.net> From: Vlastimil Babka In-Reply-To: <20211008135332.19567-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/8/21 15:53, 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 >