Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp502613pxb; Tue, 3 Nov 2020 05:26:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxt8yDFt6WwONAWFmssHphxYzpPNr2XF5YZ2J9kbT0ZQD4C+diYpk7R66cijNpg1PUnNhdL X-Received: by 2002:a50:b062:: with SMTP id i89mr11481778edd.248.1604409990980; Tue, 03 Nov 2020 05:26:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604409990; cv=none; d=google.com; s=arc-20160816; b=mf2/H8IzIUdNbr3cg5TAmXWI5jgga+AB5OUA7VssUb5jm8hHgmRqH8qNgrA1VvRXrB pmn3TYxj1e1ZYpd3bQq4Yglo0k51NiaFCq3JsLG7kSo5s0GS9x47ODQ4GHQddqpFkKvm 2e0ASE8Xhjn+NdPIsWq57j3s1jSf+VGoAdl4Hzn0IhMQcy9c6NTsBqRcyX9XerAduj25 LVjIFKVjR+WWOAQqZir4qsGBraaGHI3gN47EQasxMDtSOb2sLPDYGrTquUiwnkrfp/58 COwBnWP5b/vWDsVr7zJe7e3zoZEh+PN4aYTpKdjSIVfFkuMKI7j0BtDiuL7e6ODk/Sne ofjA== 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=VeA9Qsqxu1/i14CMSGPPmW3KXKC7b+HEm7qKKl5XDvg=; b=v4d80tpis8LKZCcMPIOsSorNMnv1gNVZWMheiSoPgWCL4qjsHzTDevIguVdY6L30Wi Bwplq9tq+ndNaW8+Glaa5bxHFJlfKBlQqYxFF9d8IJg6oDiD3SpJeA5ZlpuYRi7/rN58 DCvgmAgYi0pdu4sL4nX3ZhhAD7sLjIVVlaJjFdEDnLepEVO0vr1s80mEPrvkUsnMfGa4 Z5x7Frxlst7/LRG3uJ8ugyFi6veWSt+YsD5BJgSoVgHlcinUsw/Qqj22kVn7OYvsxE8g ICYlrIZzspdStaZDxDIaGhsRHBz760Q/YaXuKe2RWwBWLDv5hiGdIrGp3uOdLU16kmCx 6cxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=Pxo79IfA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj23si13394043ejb.600.2020.11.03.05.26.08; Tue, 03 Nov 2020 05:26:30 -0800 (PST) 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.com header.s=susede1 header.b=Pxo79IfA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729200AbgKCNWY (ORCPT + 99 others); Tue, 3 Nov 2020 08:22:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:56308 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729078AbgKCNWX (ORCPT ); Tue, 3 Nov 2020 08:22:23 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1604409742; h=from:from:reply-to:subject:subject: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=VeA9Qsqxu1/i14CMSGPPmW3KXKC7b+HEm7qKKl5XDvg=; b=Pxo79IfAbvAKkRNNFMbGkHgZWU7zirElkyhd/EpedIl5/ACqkBp91t0MQK0Gwnhw0iiO/G zK20Exyj3tPnz68nn91WwrEvThhmjjygMxsW7/Mzw82amVnPx/GxV7zJaHowJCDqpugz9m IbwhDG6IGCbT463rGcyFKbt3U2zSqXQ= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id DF85DAB0E; Tue, 3 Nov 2020 13:22:21 +0000 (UTC) Date: Tue, 3 Nov 2020 14:22:21 +0100 From: Michal Hocko To: Roman Gushchin Cc: Johannes Weiner , Michal =?iso-8859-1?Q?Koutn=FD?= , Richard Palethorpe , ltp@lists.linux.it, Andrew Morton , Shakeel Butt , Christoph Lameter , Tejun Heo , Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] mm: memcg/slab: Stop reparented obj_cgroups from charging root Message-ID: <20201103132221.GI21990@dhcp22.suse.cz> References: <20201014190749.24607-1-rpalethorpe@suse.com> <20201016094702.GA95052@blackbook> <20201016145308.GA312010@cmpxchg.org> <20201016171502.GA102311@blackbook> <20201019222845.GA64774@carbon.dhcp.thefacebook.com> <20201020162714.GC46039@blackbook> <20201020170717.GA153102@carbon.DHCP.thefacebook.com> <20201020181822.GA397401@cmpxchg.org> <20201021193322.GA300658@carbon.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201021193322.GA300658@carbon.dhcp.thefacebook.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I am sorry but I was quite busy at the time this has been discussed. Now that I got to this thread finally I am wondering whether this resp. other root cgroup exceptions have any follow up. I have seen the issue is fixed in Linus tree by 8de15e920dc8 ("mm: memcg: link page counters to root if use_hierarchy is false"). Thanks for taking care of that! I do agree that this approach is the most reasonable immediate fix. Btw. we have been carrying a warning about non hierarchical hierarchies for years in our distribution kernels and haven't heard of any actual bug reports (except for LTP driven ones). So we might be really close to simply drop this functionality completely. This would simplify the code and prevent from future surprises. Thanks! -- Michal Hocko SUSE Labs