Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3917434rwa; Tue, 23 Aug 2022 12:28:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR6O8QApIDYQbreBdntcone1/dCWJG8lzlJJwk9esIJMCxCCh7CgQpENG6OHCCf/at+qZHWU X-Received: by 2002:a17:907:7616:b0:73d:7bbc:f7d5 with SMTP id jx22-20020a170907761600b0073d7bbcf7d5mr698948ejc.179.1661282927806; Tue, 23 Aug 2022 12:28:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661282927; cv=none; d=google.com; s=arc-20160816; b=Aqf9QhijpaComxOG/Ak07WNv3XLtkodqOS6O2y9GHG5nnC1vBk7jD1cnaFLXl2UU0u F1+OMN829q6kcliG92efTOn7AKYsJt8GAzAnNASdCBsCYRQC3P2HA+ikP2+Cxodt3DEY MHmIARb4kWJKwa2jXA4dKmz7G/AXkrGsK1sqQv0oLK4wX3Wo3rsBL2lUNzmxFG2/y9qf 3+fnq72U1ze4/aIMktjhdKr/vE0Vlqxlx/+aBxxLeY/9y+nrp87FqumluTgnaikrUfca ehvXjxMscRYnQIOwZmRggeApmVMOsQSgL43wp6eljOAUsB65wPuWqVqKWAIaP2KaLO7F MXHg== 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:sender:dkim-signature; bh=sr+/MYTdy+Hb+ViTpSI674A/Fgsv5oXGjKt3k8niW6E=; b=q8vM6u8l8e2Mcg+0N3cOB6es3Y6AbjHr+N3hmc4akWVev31xD9HdGVhabAucwVGZG+ RJ7Qp8Ixvb6MX4vEK8y/MXFhAKzBiYJtv2G8hntrPoPyr23aQNmBnL2qCvQg0ZSUuqwm aQJZsFIWECsrUmYF9wnZgUCe5QSN5n0WIM2LocxltOcQcy3ot5N5t2EFmYNk+Qg9VQJ/ lXzTvDMLke9FdkBDEs7doQSZwD5c5kl7fbBJgID97CGKFWhDmpWAVbfs2Ae3/bfpHAX9 Nnx7DdZkEJwRmh0vOynNh0RkB8TeFXN+cAQSqkLLzb6rHfD+gKoFsdH7bS722AXwbxE2 DFzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=F8K1uc4a; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dc6-20020a170906c7c600b0073159d67b74si420470ejb.46.2022.08.23.12.28.21; Tue, 23 Aug 2022 12:28:47 -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=@gmail.com header.s=20210112 header.b=F8K1uc4a; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233206AbiHWSLo (ORCPT + 99 others); Tue, 23 Aug 2022 14:11:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230426AbiHWSLS (ORCPT ); Tue, 23 Aug 2022 14:11:18 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A74946F266 for ; Tue, 23 Aug 2022 09:23:01 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id s31-20020a17090a2f2200b001faaf9d92easo17706933pjd.3 for ; Tue, 23 Aug 2022 09:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc; bh=sr+/MYTdy+Hb+ViTpSI674A/Fgsv5oXGjKt3k8niW6E=; b=F8K1uc4a7GIvY5YEhN3k3CQDZGWvAusCXcTbHH8+tdzRfb/CwXlDJj26VRtrQct2Lz A/xIrxjjnqjvNFqaXgFCYTsm+hndyJD/E3x+T0rC78RVK6eKc30Ovr9uxOSKqtHaMnfH Hvf2xY7Wc5Q/dUIrUeisGkp1ONwdWT4sN6wqUjrcZyySfjgcbSNz4JySvZ4e17bt5LYe xmNQxcnWcYBVUpUNtqPiK+hCqU4KQhZObnn8xx2YsAxRBRIhvqCrILcE1kLcWWebiVdY D4r4sZZl+TH8U973SfKYksBMDBsimN/hnFwVtskI+SKzvsxfMuOnsi6rkKcDnZXviKNn jvSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc; bh=sr+/MYTdy+Hb+ViTpSI674A/Fgsv5oXGjKt3k8niW6E=; b=oL2t3nphINX5I2uH0HqjuwmO6AZ31ZcnSWDN9bkw44VDFOUxlFKJOlOl7lSnEXYMOM VBHj2+NilOM3Nlncu+OtRAbpmiOTDXrgixuDVNRY8KIh3K/wpLNIyyYZvMF76LMoI6AH 6vBXi5tXwMJYH4trvb1cxspYJta48YnyeF6O6Ukkb6RhTNoeS51R6QbpEv70QGZxUKoE X1G9VBoJSOW+yV7RtMX5KO77vHXLyLVwJ3JP4l77T++as1KPFxyb76yhE9O6TWtTMJXj gyoFwB+wHjwUVumwWiejBbIkgyYhEsKOHsLGz1ErZ0E6FPe1iqUEoFh9riM+SoeBVqda Yn3w== X-Gm-Message-State: ACgBeo0aHcPvB2YnQrvS91ITAAMODJLD4LL0lFb3osgg9vSi7dtwcSRe eTvO91RZxilv8aJNSpsvwV/Z4CAxb1U= X-Received: by 2002:a17:90b:198e:b0:1fb:fb8:1072 with SMTP id mv14-20020a17090b198e00b001fb0fb81072mr4017061pjb.51.1661271780957; Tue, 23 Aug 2022 09:23:00 -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 x124-20020a623182000000b00534cb3872edsm10965706pfx.166.2022.08.23.09.23.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 09:23:00 -0700 (PDT) Sender: Tejun Heo Date: Tue, 23 Aug 2022 06:22:59 -1000 From: Tejun Heo To: Vasily Averin Cc: Michal =?iso-8859-1?Q?Koutn=FD?= , Roman Gushchin , gregkh@linuxfoundation.org, hannes@cmpxchg.org, kernel@openvz.org, linux-kernel@vger.kernel.org, mhocko@suse.com, shakeelb@google.com, songmuchun@bytedance.com, viro@zeniv.linux.org.uk, Christian Brauner Subject: Re: [RFC PATCH] memcg: adjust memcg for new cgroup allocations Message-ID: References: <62188f37-f816-08e9-cdd5-8df23131746d@openvz.org> <45a04b75-d61b-4c7a-7169-c971995a6049@openvz.org> <20220817091728.GA23229@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hello, On Tue, Aug 23, 2022 at 03:04:31PM +0300, Vasily Averin wrote: > I would like to properly handle cgroup1 case too. > To do it we can enable accounting for new 'struct cgroup' objects, > and bind them to memcg of creator task. I'm not sure it'd be a good idea to introduce two different behaviors for handling the same thing. I'd just leave cgroup1 as-is. Thanks. -- tejun