Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1106574rdf; Wed, 22 Nov 2023 05:58:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IG24SPveqOdQ7gnc59gKWGJvTWUJAgjgLatRazyN8Jh/1gkD/zLeEyOx8vwexeTv7Yy6dhk X-Received: by 2002:a9d:694f:0:b0:6bd:78a:460 with SMTP id p15-20020a9d694f000000b006bd078a0460mr2852226oto.32.1700661511150; Wed, 22 Nov 2023 05:58:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700661511; cv=none; d=google.com; s=arc-20160816; b=EN6eohOF+EVq2yu2Nn4ZokZU1AO0kg0aD4b2A6gde2DHoxSmUOl0D3CrCfjV/hCN2f WWNakLbo2dZDZAcD9mNgx+AQT3QO72C3gDAfwgdJuJpXgsnhGhKlz0H+wLlfn/jP2Qg+ z6WO08WpKuwD47+1G2zWAdQt4bh2NOFkmoekg6m0iVvqGQbWLfgpQda1Ysowx+IrQb1g y0IdVIRJb5sDwXL1Ugtrl+F4gQbaXffaUJLhyIPztS6b9HSQK/gN0L7+OcQUdIyR0FSi 34Dj9UTWRQksOVNoYSmBqQdmRNQiHHd9MaDMaoSC+xGri8qdyKO3KEWfg6/SE23O4AbO b2+Q== 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=4PL01vdipAxXI2et46ovWIE1C2j61g1DsIeVKK4hMJ8=; fh=vaDGyOCxKTFz9BV+7t82y9LzXCI2nuUuH6q+IN3YW+U=; b=WOu7oaf4ezt4Xkkcy2dmZFwndUJFIRmuzPkbq28DbIYjFec+oFkU5cTxU3gJbrbPZn VqiF/XBLn2Pt7dV4zmiZumoyI5IAihTcY6htdfA4dJ83nAn8Z2P/UufgaHJ+l4TQuTDL Y3rakvBXBaDFud1hEGF1dJI/P+8F4Y4yYiYO5oV2j2+Dlo9yevwglo6X127waZlInrOM HRl7ChUKWLwhggTZZwFYMm5snzSOjpk4C/rmEx1UqgGUJVeubqCAGeqGkbGYCNYmqTAx c0lmYeEHbe4xW8hn3UXHIWlheF2Ma3BwVnEesANrsTBSYHoqjdSrodyYGi97cE+il2Eu WqtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=a8PFBE4b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h2-20020a656382000000b005c21adcc5absi9954629pgv.757.2023.11.22.05.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 05:58:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=a8PFBE4b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9556480BE2C6; Wed, 22 Nov 2023 05:56:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343953AbjKVN4b (ORCPT + 99 others); Wed, 22 Nov 2023 08:56:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231613AbjKVN43 (ORCPT ); Wed, 22 Nov 2023 08:56:29 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B774B199 for ; Wed, 22 Nov 2023 05:56:25 -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-out1.suse.de (Postfix) with ESMTPS id 7A1AE21979; Wed, 22 Nov 2023 13:56:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1700661384; 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=4PL01vdipAxXI2et46ovWIE1C2j61g1DsIeVKK4hMJ8=; b=a8PFBE4bG4ry/xym88djaUEBZuMT6DkQChwAEsfDOWoIXWMauOOabCr1VcT2jZ/XMqyOrE 7fj98k6G520QLOvWtK0Dqur9JjfkfdgEXvKy4shV9GKRKT6ig2M2/f0SbhW4x0HUSmQryG wFVgLZoKlK6bFq7HzJJdpMEMVqVQLPk= 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 524FF13467; Wed, 22 Nov 2023 13:56:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qv2DEIgIXmWndwAAMHmgww (envelope-from ); Wed, 22 Nov 2023 13:56:24 +0000 Date: Wed, 22 Nov 2023 14:56:23 +0100 From: Michal Hocko To: Marcelo Tosatti Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Vlastimil Babka , Andrew Morton , David Hildenbrand , Peter Xu Subject: Re: [patch 0/2] mm: too_many_isolated can stall due to out of sync VM counters Message-ID: References: <20231113233420.446465795@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -6.87 X-Spamd-Result: default: False [-6.87 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLY(-4.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[7]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-2.07)[95.48%] X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 05:56:32 -0800 (PST) On Wed 22-11-23 08:26:02, Marcelo Tosatti wrote: [...] > Michal, > > Let me know if you have any objections to the patch, thanks. I do not think you have exaplained how the patch helps nor you have shown it has fixed the described problem. You seem to be very focused on the specific snapshot which I do agree shows that the data is out of sync and that there is throttling happening when strictly speaking it should noti. But (let me repeat) those discrepancies are so small that it is very likely that concurrent reclaimers will be stalled (just take one to isolate those pages) anyway. Maybe this leads to an earlier OOM killer invocation as untrottled reclaimers will be able to conclude there is no progress rather than being throttled on the direct reclaim. That being said I am not saying the patch is incorrect. Nevertheless, I do not think we want to merge this patch without a better understanding what is going on in your specific case and what kind of runtime difference does the patch make in that case. From your previous email it seems like the actual case is mostly memory stress test that manages to fill out the memory to push almost all the file LRU while anon LRU is not reclaimable for some reason. That shouldn't be terribly hard to reproduce. -- Michal Hocko SUSE Labs