Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp275453ybx; Tue, 29 Oct 2019 18:19:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwD2p44muEwxbIwNfZiw/rkqu86PKmPXGdYqEQkLhPUYlDnW+f5gcssuvUjsTxsC2XYt+qb X-Received: by 2002:a50:9713:: with SMTP id c19mr29335595edb.206.1572398359724; Tue, 29 Oct 2019 18:19:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572398359; cv=none; d=google.com; s=arc-20160816; b=IkN7+Gwr3JY3s9l6hG2BiHxizp6Bx9RvDMT+F5QqdGgh4ke82P4GRqKaQtmpaPxGlP Pwk1xoVFWS9UZE/XFgZ0T/gr1/RwHyqWkcgYcYIRL/F7uKD0UgXnlH/9GQWuzCCgXBgJ TkJ5nheeqG2uLfoDa1fx9TYPQhb4W/kauMQF9iJQ78JYjk2+gP0/g3V0qM2hWcYpkHO3 oR6HVgEAMzOZzWVVovXNqtW/k28ZAw++edbtTFadu9pUmsH6QY+6KsfnUG/DtS+OrS3Y GTujFpR7Ql5Ep+7kDjAX/pXOsTBiNGemeDIpvP0IvVghA2T03Ro/EykT/E5HNm+GU4AW kOZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LiqlPgdWNA9PRH5nALR1HXVaery8pdVvA3tw4kzK/YM=; b=dWG6ozUScEP7saV29KLtZMi51ir1UniCI0yB41i45fP5qT6aNzaJMnSh+TXpm32qzd e5RsGmh2coPjrUdrVqZmVx7JNHoc+E2LYseI4SbKjuee+3M73Sj7yUm2brFYGfser1yh Sprk8G+wUynQWUomPI9LYJlniniV5uywWlVPTfOPjp9JP/PPRYXQphAec3bOTuaYMWs/ Ffa0P0DWD+Zs5YCvPRdSQs6uTvmcsRYZx56SycA2WNB6kIJw/21xTna3KDM89iXjk0x0 drE3SWL0djX7BRC9X75ThfsYHBmzlzefumYe93IbS4Ca2EEQjYhwKAkKlHsJRpMBF//j 65GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ijhbZvY9; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si196761ejq.437.2019.10.29.18.18.56; Tue, 29 Oct 2019 18:19:19 -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=@google.com header.s=20161025 header.b=ijhbZvY9; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726939AbfJ3BP6 (ORCPT + 99 others); Tue, 29 Oct 2019 21:15:58 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:35308 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726401AbfJ3BP6 (ORCPT ); Tue, 29 Oct 2019 21:15:58 -0400 Received: by mail-oi1-f196.google.com with SMTP id n16so582317oig.2 for ; Tue, 29 Oct 2019 18:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LiqlPgdWNA9PRH5nALR1HXVaery8pdVvA3tw4kzK/YM=; b=ijhbZvY9UqNfl0f+NlEf8kzcArGh2+O1V9Qyky+fDyrgw8qLP+bg/s3HN8MX+NgmFB 6ctonOUgLG+wTHzSpztuBoRdS0j54g1mHoCUILtMOFrbAxGLzGLHrSkzQUTAiFxmFkFj 3K1QzMK204kj5hxRODEPadXlLDnQh7EhcScbGDIYs+Aaoen4DZ3FUeva+HtFFAwiJwXG tCSu1/ACld++aea1lShqC9oBbwZRFkDo+nMkk4b+hkKrL4ZjzXEo0hAkvRq4zJPNmxd/ QpvtC5qB+hCjmQLyhrsoHmf1a/NJM5Lvb3kUurBZu4oxL07nAopxGqf9ctSUP1Y3WxaU JjMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LiqlPgdWNA9PRH5nALR1HXVaery8pdVvA3tw4kzK/YM=; b=DRCjCYwn9qE0br9jJfsojYnKge/ubDQsxG7gku9TN4wBGSWnEfNBTcM0IMtOHTGk5D 51EPdtq3nIxNS9uGQMgiSV0ogzSrPRW1I6u4t+GF8Eov7sN4D8cyeeIdNwMmx3iXNLdx NFCA50Iemca2EkU9f698vDhk2h55TCivG8/9XUeyzQRfJ5/b1VgGIgrp1df8nr6FYpNR L2H6RcQepa04m0B3kUDKK/+VTsdQOMWOgF7wdRuAGkDeJBYsXBbonngMGY1frM3lz005 f3pevoM/RXQfYFidqPo39PRyieVoFQCXDE5smE/xzdv9eRGptm5nBjihpkGXyQvib+r5 mzCg== X-Gm-Message-State: APjAAAXiEIr5ZBPRNdwdWkXRNZmZxODxN3buiAn+IMPxVT8OliYV0H82 hnZbdpfeMqzDYUUMnpjzoP6k1tPynuCJYZN+t8x5cA== X-Received: by 2002:aca:180e:: with SMTP id h14mr6309696oih.142.1572398156861; Tue, 29 Oct 2019 18:15:56 -0700 (PDT) MIME-Version: 1.0 References: <20191029234753.224143-1-shakeelb@google.com> <20191029175459.b3bfed9326559e69acdd2e35@linux-foundation.org> In-Reply-To: <20191029175459.b3bfed9326559e69acdd2e35@linux-foundation.org> From: Shakeel Butt Date: Tue, 29 Oct 2019 18:15:45 -0700 Message-ID: Subject: Re: [PATCH] mm: vmscan: memcontrol: remove mem_cgroup_select_victim_node() To: Andrew Morton Cc: Greg Thelen , Roman Gushchin , Johannes Weiner , Michal Hocko , Linux MM , Cgroups , LKML , syzbot+13f93c99c06988391efe@syzkaller.appspotmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 29, 2019 at 5:55 PM Andrew Morton wrote: > > 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? > Let me check why the link is not working. However you are right that the fix is for a theoretical data race and no need to be backported to stable trees. Shakeel