Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1475431pxu; Fri, 16 Oct 2020 12:59:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDrONLltbHKQu1S0jm9+YBWxLO8zhf3xnZm4jW1GbLEEd8bHyjvZdvCMR3YKa7bckM+AaX X-Received: by 2002:a50:fd83:: with SMTP id o3mr6000665edt.17.1602878386043; Fri, 16 Oct 2020 12:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602878386; cv=none; d=google.com; s=arc-20160816; b=F9uL738pkqQphbR+vcAbSEvG1x7LyYcMo6OAPGg3VVaj+ihApC1rbtC8rZpucdIM+t mQobMIWgIidyEUtYQVm/KGKI0mdwjSw3W4UhFx2kZgEbMfn7lP59mfYcrpOWuvfk+S9J bfSinkk3g9Kj8Ypfy1BsP5LbFKFBKoAj2VmxOZVyW6IybKDCmInUgicbtuJZH/PUJacb yf3XD5zV3ka8zIgUW1GPgh0BVrBLsChzvwDYCd4sJ8a0+coct5MVw43dXKynbVbn5rAu S41NPICsInA+3lObpf5Rdk35l9CFCavjkBc+Uug5gFhCzzWp2oQeToIAKRo6L+vw0czW Q0bw== 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=S7adOyJQobTs7oFN7R41/ee6ZODNptFcC0aLMfk4q+Q=; b=f5Rvm+fZSkTPNVqb/m7SLjamS99taMGlWfE3LwKHlp/lJvjpVcTd+T0MQUM6WruoNe LNGhi8BoS+2OVPJ2Hr9vSKEokVUVKnjjIJsNUEvMb6tJd5XwLbghkiTO9MLEhE+hXe8r hDIRS247cW+nNGJXrPvoAaYusmQYcVgijmY4tEycMmBRdoKVHPVzkZvMd0ZCfErn5NDc dKxbuc6GKkKMorxjWwUBeIc6l+U+6aROzWtc2q+l3kM+jxl4yfDI7oNqEecpTOJrMHlw PfeYcBsnh3BSgo29arJBVejKvQ4uz1FQcsqbvAvGqK97DEzwkY5NyLSNHB8O5SYEVxrT m5nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=cvs1EqQJ; 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 ba2si2393786edb.503.2020.10.16.12.59.24; Fri, 16 Oct 2020 12:59:46 -0700 (PDT) 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=cvs1EqQJ; 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 S2391977AbgJPR0j (ORCPT + 99 others); Fri, 16 Oct 2020 13:26:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:33292 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391855AbgJPR0i (ORCPT ); Fri, 16 Oct 2020 13:26:38 -0400 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=1602869197; 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=S7adOyJQobTs7oFN7R41/ee6ZODNptFcC0aLMfk4q+Q=; b=cvs1EqQJad6ys0IgBRtNq+qkk7IAGgPYw8pc+utGMKssl6HaCS8gQoJoBHSjjuuEmU1ksy Ds1TvB9F1dI6TZbBH9+Ek+woExdQtDWvp9GT5QRl0QoCdLF2WHvKMhuVxJucc50i5/U3+M k/KNwdhcwmKXqSKlzi+r3bAGjhwnk5k= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 29212AC19; Fri, 16 Oct 2020 17:26:37 +0000 (UTC) Date: Fri, 16 Oct 2020 19:26:35 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Richard Palethorpe Cc: Roman Gushchin , ltp@lists.linux.it, Johannes Weiner , Andrew Morton , Shakeel Butt , Christoph Lameter , Michal Hocko , 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: <20201016172635.GB102311@blackbook> References: <20201014190749.24607-1-rpalethorpe@suse.com> <20201016094702.GA95052@blackbook> <87sgaesba0.fsf@suse.de> <87pn5irz2m.fsf@suse.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xgyAXRrhYN0wYx8y" Content-Disposition: inline In-Reply-To: <87pn5irz2m.fsf@suse.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Oct 16, 2020 at 04:05:21PM +0100, Richard Palethorpe wrote: > I'm don't know if that could happen without reparenting. I suppose if > use_hierarchy=1 then actually this patch will result in root being > overcharged, so perhaps it should also check for use_hierarchy? Right, you'd need to distinguish whether the uncharged objcg was originally (not)charged in the root memcg or it was only reparented to it. (I originally considered only the genuine root objcgs.) In this light, homogenous charing to root memcg looks really simpler but I wonder what other surprises it brings about. Michal --xgyAXRrhYN0wYx8y Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAl+J18cACgkQia1+riC5 qSgBlA/9E7AebKZQjQP9HUGpWS+49sRCns58CiQJhFugbkHlJl5PsgvI9rQs9j6k AhG6e0WZlMb35II+naqx3kNnAYoRiw8xWcuAH+lvWFXKI1saYN4UOjKNzigojTw0 x3fi9bRJveQtpwPY6IwXbiOJkYZnEplEskwiqbY0kCFZMhQlvnBfJIAzegEa5Jty ZCcqYPMxcfczsm3+vtrcHDWBXzujoxp9QPyyNWmRAkIjgTebO3ZmGRieCVmuPTm7 PY1nCA/65amYSsxBPvo+L7U5a4jKOV04pSLg0PeBByJbiy3TEoLi0938arMVg7P5 MT2PdqfzJ5W1T+7zh1SsRWV2/7b05JLVHnLPTL3SlvNIn2GIouSWSnAbdiZvqenB XFafC+4PbL0xTdo5Lrp3pqTgw8kwScNUz/5FnRAdNw7eET2bGRQ46ah3EBQsoqNw kOv07/gipMp3BBNJy6JHV+hSwK8CfOvy45FuyIJ6TAzYKZdOaBVWv4kt2eesHj+I qzGRmmhS1rPcSzMtZU2rBIXcWfy7tgUsPdyEOgx+0VE10O0Vn0qFEWcupTSLYykv 8C301Q+aMnXbFcytJ5dSixD3oxzI5OP3x8VIkyuuoFe9MsRJZuBwBAYS6Vl+Wwd4 fmJBhroGerid+YzHDvvB0zeNr+j4IBjztGGJznC0/Mgm/Bf3rn8= =j9PI -----END PGP SIGNATURE----- --xgyAXRrhYN0wYx8y--