Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6208577rwb; Tue, 9 Aug 2022 10:56:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR5FOgYWsT/64B6RyrrBGfwoJ49jfNup7c5d+mbP0aQWuozynjfEZ5l/8IjET8LJTa4pxb/V X-Received: by 2002:a17:906:5d0f:b0:732:fb97:780d with SMTP id g15-20020a1709065d0f00b00732fb97780dmr1838780ejt.269.1660067793541; Tue, 09 Aug 2022 10:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660067793; cv=none; d=google.com; s=arc-20160816; b=Ncb4Kl3cdj8jhj9eZanDnAZndZphfCkCA8pPBaRZoTVoUC3cZu3obiyKQHpxinEwln iNkLJQmRKvxXwP/QHzBDBEb5e7s0gQEvgQQDmg2R1DgXzGOXQQwQhNi38+UAKKoUTUcJ tFYOP5EjLe8UmsuQED5IcqmVeY7iW+O57vtMztTMSzaSTedh/jwihqFFf03yGi2JW5by lV4jsjjV7jwoQD3YGH9D/kG5K9WX+kRO9LDvhsNW6mk19jy7j4qRU6YQqueN/12JG4gE MY8FGAfL+fZigIMv0Cd3Iw28hBRyzkVgtirslSZszPAmg/3keabY5Gpn1jNelS0ySxzs iE6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lFEcIZhh+NenTSRU7B/sMYILulgZi/8rIFBk+LzpRmQ=; b=QJrWRZpPmjeliDvvpAHc2MCFBA+Ayb6bDQXnQh/GgqCzBEbtwTt26pZx+efCwR75eX 1thVh5TCk2OR+u6Xcle3euDS6u4DfJeH1w3peWfbY9hEESNSHfv+rW/0o4inBVdO082I RK+OxcuUPM+Kx4vgzyArS8CfR5sA3dpFAoj4vrT9jWKfLKZWUx2C5EYWnkEpmz37niIV T7LqCShTKSHWX/w3cOy9puJKm0UwXAErbtG4zgkK4a2wApucMeDmif0+yTUIKOlpw0Pi 8wGQnVzQdbrGQQw48vKTpjbQ57GrmWAL7XlS7ZaL/8zy2+pBkt1/Z29u/EkTFtYtAht/ P+AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=hCKZz65G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr18-20020a170907721200b00730c7c6322dsi2358247ejc.932.2022.08.09.10.56.08; Tue, 09 Aug 2022 10:56:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=hCKZz65G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244737AbiHIRtl (ORCPT + 99 others); Tue, 9 Aug 2022 13:49:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233963AbiHIRtj (ORCPT ); Tue, 9 Aug 2022 13:49:39 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A43D237D2 for ; Tue, 9 Aug 2022 10:49:38 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6BAC62106D; Tue, 9 Aug 2022 17:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1660067376; h=from:from:reply-to: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=lFEcIZhh+NenTSRU7B/sMYILulgZi/8rIFBk+LzpRmQ=; b=hCKZz65GvVqfSrk6l/fpsc+ohWE0XY45aNVjv4o6e6l8IUTF5PYoEpSLr+h0aSYj/fmX/+ HnDnJfjImCZOVXmk9qGmskkywQakiOxthgG0hcENAdwg+F1G137nshnL/y4cTppeXF9Y87 mVRPpiUpxUYf3NCq8DJhhzQ2Lro0av0= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2F33613AA1; Tue, 9 Aug 2022 17:49:36 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2/9wCjCe8mLUJgAAMHmgww (envelope-from ); Tue, 09 Aug 2022 17:49:36 +0000 Date: Tue, 9 Aug 2022 19:49:34 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Tejun Heo Cc: Vasily Averin , Greg Kroah-Hartman , Alexander Viro , linux-kernel@vger.kernel.org, kernel@openvz.org, Shakeel Butt , Roman Gushchin , Muchun Song , Michal Hocko , Johannes Weiner Subject: Re: [PATCH 0/3] enable memcg accounting for kernfs objects Message-ID: <20220809174934.GC10478@blackbody.suse.cz> References: <0414cab3-32d6-c60a-d3c8-96fc72064ba0@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 09, 2022 at 07:31:31AM -1000, Tejun Heo wrote: > I'm not quite sure whether following the usual "charge it to the allocating > task's cgroup" is the best way to go about it. I wonder whether it'd be > better to attach it to the new cgroup's nearest ancestor with memcg enabled. See also https://lore.kernel.org/r/YnBLge4ZQNbbxufc@blackbook/ and https://lore.kernel.org/r/20220511163439.GD24172@blackbody.suse.cz/ Michal