Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1586532yba; Fri, 17 May 2019 01:37:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9Xz2vDbavDnUlfTCb2yTaxgR+LVLZ5WKEby4eX7vKq8Wh+22CgI79fLGc86SjzP/p6QT2 X-Received: by 2002:a17:902:a415:: with SMTP id p21mr42186855plq.286.1558082251153; Fri, 17 May 2019 01:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558082251; cv=none; d=google.com; s=arc-20160816; b=GlskPpyILyY0wqLq4RUW4saTm/9DciVTyjrwW5UtlZW72xdlO+LlcaqEKey/NYHwqR H7kH/IoWYhQunmzBP9BrkSiQsIrGBIyyYSyU7I0/Zd54vhBup6soGtPKIROw/Ch6iCuV L2k/kxg/wXrp1qXVLxI8u8byP6UwP3amCcjnhSdvTXbZutHtXmbQsPK7PEU9tLcxJunf XRJYbqd40PlXK54PFqHxrLXcNlDfTuRLwEZrwxJi5o1eWzIzoEmPVGSlF5SsIn6Lx1tD WNnDdIO1N2WdcVbUnF/a5zTdaNmalSBivktP4QE/mV7cdyWYgJ1b3K74jBM1Mi5szX83 OSIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=E30ZwXceSLrrdqkhZETQJSrFB4D6w8xtvQQj0QSh1bk=; b=KYFFFGFXWEHjAaeRRgCcZ9Wtem9b0dNjqwhUrq0UYzn7Al+qh+VOs6zjLlWr0feuqr /q38vb7/2AcmpUXUM+w2Yl80SL0iqE+WYzZoKhPzx4BZKYx8IMbYI3heqmWf+i1O/atg 9nwtiNKnh1W7QRXXONQvPtwNek80V52mG7fdTyw2DNFDjgSWyA2YYpdtseqea8h8THU9 As7jV0ByG5SyrHo22c3Y5YrB0TI5KigR2BjUlh9IzwqBUGX8FjEEr9qYyJU7qTi6/eyP VVLapICer+jfnq1g0/0vDVlFv7C4s4pQFSgthcy0223p2wiJgzAmxm90PIJSH/AVqr79 ApEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bdwPkfc5; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14si7296674plm.18.2019.05.17.01.37.11; Fri, 17 May 2019 01:37:31 -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=@gmail.com header.s=20161025 header.b=bdwPkfc5; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728321AbfEQIAt (ORCPT + 99 others); Fri, 17 May 2019 04:00:49 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:43592 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727520AbfEQIAs (ORCPT ); Fri, 17 May 2019 04:00:48 -0400 Received: by mail-lf1-f66.google.com with SMTP id u27so4621854lfg.10; Fri, 17 May 2019 01:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=E30ZwXceSLrrdqkhZETQJSrFB4D6w8xtvQQj0QSh1bk=; b=bdwPkfc51sJvmJvEEnbkjJeee5dDIVMrgrBcQbEWcuq3Gu7xg4Drx7Sxhgj0S7ifcX MHKOMyvUXD9qL1hCSXPCieoxHNgARijo9pvrnOH2EzfYZqXH5Lz7TJtcVndAOVHo4XZw rUwn3YonVOZFmAV/YnXpExobHSwnuBBeUq0GSrlLVM4UVA1/PVAvsvs3x6QuHTGJ4yyD kKNvUUksj1K0U1tcX4QimvxzelNTM+STaUm5uKCtcO3E7D+UqMhcG3yO+T91qZWg5dD+ Es9SUG2SdeE2D42NKKLasOMtjhLIsUYe12Is80QapjF0rNGGNHdoPyzrhlywFra9vN0d DceA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=E30ZwXceSLrrdqkhZETQJSrFB4D6w8xtvQQj0QSh1bk=; b=Lg94UA4xaWTncgcl46mE0Uv0BFMjDyVEBTEB1MinSTI119HUT0bQB1xZ5NRdH6gQBE sL1z/LfRVu3JxowHy3oDh04xllCh1TI9nBRIoZ0MlHllhWuF6b7caLmijldAHO3aoQzY RtimCxUcl8yYfpQv1XqohBgrWOaLGwxkf6qYYicijSetjXlAzlLP+GXBb1M2srSQYH1c N9ktw/m/YaK6Bjx6NEwVuOhXKu3c4iK74OjqADHGGOdNg8owc9LLegz7yawYPFI5QhQP OmcYmvtseKCGjWk8+mxq1MKqNeRXe3NP6dX4T22lXGdwljbx43RQ0DAsGXMv8lcZ6piW cQzA== X-Gm-Message-State: APjAAAXWlT5faqBNYTMubXvOYgxPaXC1vNhdrp7uxdqPnO5uoPcK3si9 QdUqcGTDWXISJkgUAr1zKew= X-Received: by 2002:a19:a8c8:: with SMTP id r191mr26781060lfe.85.1558080047145; Fri, 17 May 2019 01:00:47 -0700 (PDT) Received: from esperanza ([185.6.245.156]) by smtp.gmail.com with ESMTPSA id a25sm1288972ljd.32.2019.05.17.01.00.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 May 2019 01:00:46 -0700 (PDT) Date: Fri, 17 May 2019 11:00:44 +0300 From: Vladimir Davydov To: Jiri Slaby Cc: Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner , cgroups@vger.kernel.org, Raghavendra K T Subject: Re: [PATCH] memcg: make it work on sparse non-0-node systems Message-ID: <20190517080044.tnwhbeyxcccsymgf@esperanza> References: <359d98e6-044a-7686-8522-bdd2489e9456@suse.cz> <20190429105939.11962-1-jslaby@suse.cz> <20190509122526.ck25wscwanooxa3t@esperanza> <20190516135923.GV16651@dhcp22.suse.cz> <68075828-8fd7-adbb-c1d9-5eb39fbf18cb@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68075828-8fd7-adbb-c1d9-5eb39fbf18cb@suse.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 17, 2019 at 06:48:37AM +0200, Jiri Slaby wrote: > On 16. 05. 19, 15:59, Michal Hocko wrote: > >> However, I tend to agree with Michal that (ab)using node[0].memcg_lrus > >> to check if a list_lru is memcg aware looks confusing. I guess we could > >> simply add a bool flag to list_lru instead. Something like this, may be: > > > > Yes, this makes much more sense to me! > > I am not sure if I should send a patch with this solution or Vladimir > will (given he is an author and has a diff already)? I didn't even try to compile it, let alone test it. I'd appreciate if you could wrap it up and send it out using your authorship. Feel free to add my acked-by.