Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3301129lfo; Mon, 23 May 2022 01:06:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9rs/cQOeUlU9SA0XZSJkri6ACFgcwdYWglqT9PXYgWqli6jRjGX21RYItSdwM8M1pnKd/ X-Received: by 2002:a17:90a:4a03:b0:1df:4583:cb26 with SMTP id e3-20020a17090a4a0300b001df4583cb26mr25427134pjh.173.1653293210974; Mon, 23 May 2022 01:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653293210; cv=none; d=google.com; s=arc-20160816; b=BMh0ZIaxcObapCj03ufNCYQBwbualU9fbu2azDn/HyJ15jxid/4bKQx7vi8iDiYGIm YYDK7xFAR0ZPxo+Da1Um0zA5Gj63MYIe5tZVfvUgm8zDIPvuz204sN7dgUCr3BSXBHeh Ouok00LxQBtxTQvDVr5vvyuFeR+hOxsk6wVJvTJiz4qOgZYbp5ljdslOIAPZhu3eBY9v fDWTJPKMZKEh9UgIVnv3PjnDO58pCdoVEmssGiaL/Ur5BKF8srJwDfkfQ9/r3Ytiz404 v5V5wUA2MKrwLUxZ21GmTowmTHpt27HyJRshGlLuGarsDfufP3j4OYMlC7e+NUZnjzD5 xNPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=7V73RXe3dU41vM2yXc5RdFK0d/D3JpjuPldiMy6fTKw=; b=zBA2CfwEwtDIt5ODEokUjwvn0nNqOSVWX10cwqGYssEUMjour21GCF/51pxBzLeBN2 OJBk6nzCgIZ4G8fexzbRLia/YtZp3sIthbX8yOBfYyFjI8FGmE2x8cNpPJdsgTYRHPx1 SucLMmmPSPahd0xcjJNjw9BC7SXIGDQ5qaSegUQP6DWoclVCQTMLF/AXcOFyjA09iEFQ gtvF5rBAF2exiOfxKHvsDDODap1sRUAZmg/1sDpzuWZaeTu4E/YgB2aAZ3ikyfItTGoF 8W1gLBGk1qdG1EomkVAnlmb6Yzm1RAxXzkR1qc6v0lmi37rGivqPApWbT7wRyhUWMwpl YxVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=Esn+ulXt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e3-20020a17090301c300b00158ba0afc1esi10084053plh.54.2022.05.23.01.06.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:06:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=Esn+ulXt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B004B2218D5; Mon, 23 May 2022 00:06:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240985AbiEUH2y (ORCPT + 99 others); Sat, 21 May 2022 03:28:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235342AbiEUH2w (ORCPT ); Sat, 21 May 2022 03:28:52 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48516166685 for ; Sat, 21 May 2022 00:28:51 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id y32so17691154lfa.6 for ; Sat, 21 May 2022 00:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz-org.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=7V73RXe3dU41vM2yXc5RdFK0d/D3JpjuPldiMy6fTKw=; b=Esn+ulXtp2NG4hm6JqTfL5/p0EfkrSuWUCOO9w7zITqkI+Wwl0e6DtqieOfHEaVUKT CB1xY2oebbxCY3E8LwiqBz+y2Zf2z9agssq/85w0pSqE/4dqYAPZBtarkvx2muFGrykT EZ2UKFoJT8TmJ5oJv7ZyDvNWs08PxumdZ4lgVtdlpMVYHdQqHDUZ0N02osjAQ0fSHNjw Vy049oSifghAwEI6PVkb5XQ8uUEeCz3gQ2UzxnUvmlvpcmm+yyr53Y8OHR04t0s8wPnF e7PcC3M+g8ioR3SvtmreqXQJ3ku+cu9rH1uB4Meyz3/UKxJ5w+ehGz4L4RnJmh6r52bp aosQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=7V73RXe3dU41vM2yXc5RdFK0d/D3JpjuPldiMy6fTKw=; b=ZxVH0CPMCxpcpY0RsTCAxpzrnCQdtEdt3ZbWBsofCiSNqWrAA0Wgcoxk3PmffKRkaI 2swWLUf0DdtUP/FO/ASH/HgZCuFIIRuvMJQHAIQf/4giS4ySPnMfCk7DwOaxACaFgRSf HKYOjj90QJWFNxs0+LWTP5RKbQudGllgRHBCTZYwx0rfFqdW2Wnciu7eRg3WwIP3hqGg BFhIdFzJlijw4ELFUpFvUY2cFdWNYPaiXngw1+Enb9CNluInadi5GQqrwMleTUHC35LS B08g8FOPF4en4J7yE8L3KcUScqH+GXRlkdOX/LYPCgLIBEZlSTGsdMhTTSs/erZlyK1Y 0AmA== X-Gm-Message-State: AOAM533zd9PetMAoMaaUVzp13beFFc8LJmff5kAjBO0Vqr8AQwZMRnmQ BEGq4DCx7BLpOTHADzZWbK3Mgw== X-Received: by 2002:a05:6512:31ce:b0:473:be54:ba76 with SMTP id j14-20020a05651231ce00b00473be54ba76mr9467947lfe.627.1653118129567; Sat, 21 May 2022 00:28:49 -0700 (PDT) Received: from [192.168.1.65] ([46.188.121.185]) by smtp.gmail.com with ESMTPSA id d13-20020ac24c8d000000b00477a61abff4sm953722lfl.63.2022.05.21.00.28.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 May 2022 00:28:49 -0700 (PDT) Message-ID: Date: Sat, 21 May 2022 10:28:47 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 3/4] memcg: enable accounting for struct cgroup Content-Language: en-US To: Roman Gushchin Cc: =?UTF-8?Q?Michal_Koutn=c3=bd?= , Shakeel Butt , kernel@openvz.org, linux-kernel@vger.kernel.org, Vlastimil Babka , Michal Hocko , cgroups@vger.kernel.org References: <20220519165325.GA2434@blackbody.suse.cz> <740dfcb1-5c5f-6a40-0f71-65f277f976d6@openvz.org> From: Vasily Averin In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/21/22 03:55, Roman Gushchin wrote: > On Fri, May 20, 2022 at 11:16:32PM +0300, Vasily Averin wrote: >> common part: >> 16 ~ 352 5632 5632 KERNFS (*) >> 1 + 4096 4096 9728 (cgroup_mkdir+0xe4) >> 1 584 584 10312 (radix_tree_node_alloc.constprop.0+0x89) >> 1 192 192 10504 (__d_alloc+0x29) >> 2 72 144 10648 (avc_alloc_node+0x27) >> 2 64 128 10776 (percpu_ref_init+0x6a) >> 1 64 64 10840 (memcg_list_lru_alloc+0x21a) >> >> 1 + 192 192 192 call_site=psi_cgroup_alloc+0x1e >> 1 + 96 96 288 call_site=cgroup_rstat_init+0x5f >> 2 12 24 312 call_site=percpu_ref_init+0x23 >> 1 6 6 318 call_site=__percpu_counter_init+0x22 > > I'm curios, how do you generate these data? trace_cmd + awk + /dev/hand > Just an idea: it could be a nice tool, placed somewhere in tools/cgroup/... I'm agree, nice idea. I'll try to implement it.