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 C131AC19F2D for ; Tue, 9 Aug 2022 17:56:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245343AbiHIR4g (ORCPT ); Tue, 9 Aug 2022 13:56:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245699AbiHIR4X (ORCPT ); Tue, 9 Aug 2022 13:56:23 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8569818384 for ; Tue, 9 Aug 2022 10:56:22 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d16so12002190pll.11 for ; Tue, 09 Aug 2022 10:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc; bh=zCnPcB2cpu3/GqNUc9bJk7MfZepcOxE6mZ2WJIEyIjM=; b=gg8paTCMt+q6jyhnsYUhBlckZmrl8YnEgxZyG6Gm9dfbrV4sWx+QagkrGUnJIOfXdR HCzFnNFypJqbb7Zg6fy3QZUIh/uqv/0TA+hZxYn/4/Dm0H3M/hjQy1jdmDP9nWJiS/7D vDxzXjjEY8/cWpdLHTpoRFKzSQHWyLvIvZkzGYv9cH9fHeNOb8+gsJ5qGScgp2P0GNjf VBdx0KxxvWwVIE3hNQdJSKHQoE1jH28h+TwzRuP5oLeAB+RSMFLTb0WymXHYZWujPlgB polocVOXmv74dBFHgq/Bpzs1cyUopdo+Xyl+Ndovj9mB9icrkGlNzBudqgEvjnzGz7HH +Bkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc; bh=zCnPcB2cpu3/GqNUc9bJk7MfZepcOxE6mZ2WJIEyIjM=; b=x6h9ZTju1+d97q9GLr6m4i71C0kyF1e4c1EfdKlPbS1neImoT+RCaC9cpJtDyzOvPH 8vSCYvGH7jacDO2/Ajx3+3XPvkxSobdveylXPQTo+rnetnM5ernKskNZqQdkQumHGBtO 9R9r/GpjyVSfIKoBDY16Drwj16QpCqkyEYkhJ1ed3NwSxdrKcXac+dYFGMiUWRg94ZtK mUZgF1rv047mJrOTaEQ7kzzBcZ2HeFjaYAteBbl0/fGJIwXgdtLfBlpI3FPDqr2i6uEu k2zrUM4S7odFK5+rxBGwqp3/L7pAKa7JYV3FkiZ4Ik7YgdspMobD8NhoPeSOTUxH9hIp Bt/g== X-Gm-Message-State: ACgBeo039uFsiAemzbAslF1nL3TZmSp3oYOqV+Rah1VwT8lEokd3kiDY DxaIEbH7od1yo5SBnnGw2Go= X-Google-Smtp-Source: AA6agR7n4TtUo2yz0zotuygajOoq8vM1Qm3lrFiSzCIxsqzyL3R10gmFRWrp4YDrVXD9WqBqzi3U0g== X-Received: by 2002:a17:90b:2791:b0:1f3:c48:19d5 with SMTP id pw17-20020a17090b279100b001f30c4819d5mr26574553pjb.219.1660067781942; Tue, 09 Aug 2022 10:56:21 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id x16-20020a170902ec9000b001637529493esm11246279plg.66.2022.08.09.10.56.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 10:56:21 -0700 (PDT) Sender: Tejun Heo Date: Tue, 9 Aug 2022 07:56:20 -1000 From: Tejun Heo To: Michal =?iso-8859-1?Q?Koutn=FD?= 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: References: <0414cab3-32d6-c60a-d3c8-96fc72064ba0@openvz.org> <20220809174934.GC10478@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220809174934.GC10478@blackbody.suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Tue, Aug 09, 2022 at 07:49:34PM +0200, Michal Koutný wrote: > 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/ Ah, thanks. Vasily, can you please include some summary of the discussions and the rationales for the path taken in the commit message? Thanks. -- tejun