From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5CC4C19F2D for ; Tue, 9 Aug 2022 17:49:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244917AbiHIRtm (ORCPT ); Tue, 9 Aug 2022 13:49:42 -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) 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