Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp253728ybx; Tue, 29 Oct 2019 17:56:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwthMP+VXW38j0ecgCTfezTQSW+ZJUV3aJy2tsuqkHe/h0A41yNeK6LTDUMk3XsH3bCmotB X-Received: by 2002:a50:f699:: with SMTP id d25mr28466432edn.72.1572396962369; Tue, 29 Oct 2019 17:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572396962; cv=none; d=google.com; s=arc-20160816; b=qZCezwD9K9mRnLZZs2TMaARgIaizhGZbE5uiBilhrjX2EBsA4TNAmNdpAdGkhP2pAN c4uMSTSNc2sS9mCN9JE8+P0dl698hi1HqA3tZL/5tInO+E5ncN3PIyAhCe+LFFSjPBsx vXK+CHI+yIPCS6kAdrjDFgFjjnHPeaLsUagqDRJrujl3sfcFmQJbTLy7KXnETtjGjtRu ZFMVzuMEJwo4vVp1u7W4PUpH+dqbg0GSIoxxqfu0dGrzInSNpJhaPnAOJCN2tNDu9sJO yBfuMgjGowVOEjHFmeLR/jeXU81ms48melNIL6jC0pNrowgNk5KJUdcLit63etttatdU 6U0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=iD2uSo4cixs4hH/So63Qoo1PM3nTKDOn3JKfudTJ9DA=; b=qApBzAzlwOuVft2T2lCxm1KGQj6CTjMLf6orWrVdoIrJYpdIv6dc32Q41qx3O/Mb5D v7Jcy0TZBk0xoGYr2i8Bp6IXXgYPQr6JRd0o0qvegZeHN4LJIwE9ARAK/jOBd+z+UpUM CMjNXH/RVs2u00cgTuYn/VwJryMGhUXuAYHMVBx6vIOOFsItExVjvf/rbM9Ln29gGC3y 4zaNf/AGGewDUNIQUEbV8FLANUg/ct9d/iZjmgkvr72EkHQPmYyalEnybo7tVf28JHx9 ezXK12Zr2WphKmuSZa1JyihMRHmO8lpZWFIAcvs9X2ek6UTfYhJGfJ5BuP1zK08TrunI TiHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z6JxpYIA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q20si131082eja.359.2019.10.29.17.55.39; Tue, 29 Oct 2019 17:56:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z6JxpYIA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726538AbfJ3AzC (ORCPT + 99 others); Tue, 29 Oct 2019 20:55:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:51812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726108AbfJ3AzC (ORCPT ); Tue, 29 Oct 2019 20:55:02 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A43E220862; Wed, 30 Oct 2019 00:54:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572396900; bh=tFF8Zjgmu+WIIlTlxCMd0FFO5WyZqnXX4sv24/2yUUc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=z6JxpYIAXwYaitOroIOgVkFFJ+fD7w974Y/gOcL+K9o7d1P1lWTu08tW16aKNpUvw y+t/MUhPzHfbuARnFWHe6PZgDfV3SiJMRkW2/CE4taPh37lj9lpTCJutLLoo1fzGnY M/E0EaPON/9wkaV7L85UXF+LEpMHvI7mmNWumlTY= Date: Tue, 29 Oct 2019 17:54:59 -0700 From: Andrew Morton To: Shakeel Butt Cc: Greg Thelen , Roman Gushchin , Johannes Weiner , Michal Hocko , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+13f93c99c06988391efe@syzkaller.appspotmail.com Subject: Re: [PATCH] mm: vmscan: memcontrol: remove mem_cgroup_select_victim_node() Message-Id: <20191029175459.b3bfed9326559e69acdd2e35@linux-foundation.org> In-Reply-To: <20191029234753.224143-1-shakeelb@google.com> References: <20191029234753.224143-1-shakeelb@google.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Oct 2019 16:47:53 -0700 Shakeel Butt wrote: > Since commit 1ba6fc9af35b ("mm: vmscan: do not share cgroup iteration > between reclaimers"), the memcg reclaim does not bail out earlier based > on sc->nr_reclaimed and will traverse all the nodes. All the reclaimable > pages of the memcg on all the nodes will be scanned relative to the > reclaim priority. So, there is no need to maintain state regarding which > node to start the memcg reclaim from. Also KCSAN complains data races in > the code maintaining the state. > > This patch effectively reverts the commit 889976dbcb12 ("memcg: reclaim > memory from nodes in round-robin order") and the commit 453a9bf347f1 > ("memcg: fix numa scan information update to be triggered by memory > event"). > > Signed-off-by: Shakeel Butt > Reported-by: I can't find the original sysbot email. Help? iirc the incidentally-fixed issue is a rather theoretical data race and the patch isn't a high priority thing?