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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EA64C433EF for ; Tue, 22 Feb 2022 16:32:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F421B8D0005; Tue, 22 Feb 2022 11:32:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EF0CC8D0003; Tue, 22 Feb 2022 11:32:20 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DB8D08D0005; Tue, 22 Feb 2022 11:32:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id CE1D28D0003 for ; Tue, 22 Feb 2022 11:32:20 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id A7F1822EE1 for ; Tue, 22 Feb 2022 16:32:20 +0000 (UTC) X-FDA: 79170958440.01.5FCC3A6 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by imf14.hostedemail.com (Postfix) with ESMTP id F04C010000C for ; Tue, 22 Feb 2022 16:32:19 +0000 (UTC) Received: by mail-pf1-f173.google.com with SMTP id y5so12578076pfe.4 for ; Tue, 22 Feb 2022 08:32:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wkYKS56KmhtXgfXrM6izZxQA/GLrP81YYQ2bXmLLfQE=; b=kvzReDMG7IcW5ljWgl+55x1myma1ThEcR1T+vIB+UAd+YFSpE4bNewdOUdCt8URaj9 qYWMi81NixPkm3jtG13hJlg6CMlewCY2e3/55n9zaf9tJGy9+ikBJ6eltap+15HCExuK CIzC4A4BcSndqvrlV24w5d54lAbu7r0IA4iDsjz2J+riQvxT/QhhRQJzIRl8I5MO90B0 Kj4CIkSub2hk7005g1XsqKSyQmZf0Iyrpy5OW9sU5aFWd+MzIrlfYHZwiZtunQE0l2+Z 4xWzV2vpH2NyYNpGL3wZpaMPko57ROHf/ADrgEvnTHLFVra33fUHJH8Ory41P5jBMDPx 5/Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wkYKS56KmhtXgfXrM6izZxQA/GLrP81YYQ2bXmLLfQE=; b=IFcTkpnc4aNojeeV1/eJzCz6yJ+HE3/x/YpzShkBh6tF1CWgYZra0vpaey2+4/yp0v JJoh1Ndxa9OVP1u82/xTg1zxW6ltH0fVBvuz6tgiC+218AOgApykclnzBzRaDbhL/nAr XMOby88omYA5dpQpd5NzKR/RJ2djohGSDczAYBSIC1xVEqtHoEbzQ6CWGJVbzIiDt2DA Xb3MvJeEslc3TqSVbJc99pG13Mxh6pGLoSfOaA8rBeRc+Ha50KhoxS4tFORRSuHfFFmL Y7iD028qmjw38iyrlvav3IjIKXEFBHnhI458mVprHIKU5Yb0OY6gPEiyCGSUuA8+lCFH sNZg== X-Gm-Message-State: AOAM5314V37UERKHWwp9axGsxj5TI+udqWbXxDI/FIAyyHfb8DW6W+Rd ZgUdXA7hPYQjotnKL9BYIyazgaspl2f52I9Xjo+kPg== X-Google-Smtp-Source: ABdhPJz/caLZkZt7hqpO/nlDwUws1v39D/EMnbs9OeBS083Ja+A+0GPb43o9h3jhozGiYjqjN3swum03K6oJ80b4AXg= X-Received: by 2002:a63:f14b:0:b0:374:7b9e:dc8f with SMTP id o11-20020a63f14b000000b003747b9edc8fmr3280564pgk.357.1645547538834; Tue, 22 Feb 2022 08:32:18 -0800 (PST) MIME-Version: 1.0 References: <2f063652-3f53-b0d9-d588-17a15c2d701a@virtuozzo.com> In-Reply-To: <2f063652-3f53-b0d9-d588-17a15c2d701a@virtuozzo.com> From: Shakeel Butt Date: Tue, 22 Feb 2022 08:32:07 -0800 Message-ID: Subject: Re: slabinfo shows incorrect active_objs ??? To: Vasily Averin Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>, Vlastimil Babka , Linux MM , Andrew Morton , kernel@openvz.org Content-Type: text/plain; charset="UTF-8" X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: F04C010000C X-Stat-Signature: tdqehmyqrc3pdzpcntqbctkht39zd9qh Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=kvzReDMG; spf=pass (imf14.hostedemail.com: domain of shakeelb@google.com designates 209.85.210.173 as permitted sender) smtp.mailfrom=shakeelb@google.com; dmarc=pass (policy=reject) header.from=google.com X-HE-Tag: 1645547539-672544 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Feb 22, 2022 at 4:10 AM Vasily Averin wrote: > > On 22.02.2022 13:23, Hyeonggon Yoo wrote: > > On Tue, Feb 22, 2022 at 12:22:02PM +0300, Vasily Averin wrote: > >> Dear all, > >> > >> I've found that /proc/slabinfo shows inadequate numbers of in-use slab objects. > >> it assumes that all objects stored in cpu caches are always 100% in use. > > >> Is it a bug or perhaps a well-known feature that I missed? > > > > This is not a bug.. > > Thank you for explanation, > I think it would be useful to document this somewhere. (Documnetation? man slabinfo ?) > Also I would like to know is it some (fast) way to get real numbers in userspace ? > crash is too fat for this task. > Do you know perhaps some other userspace utility or may be systemtap/drgn script? > > I'm preparing new set of memcg accounting patches, with reparired tools/cgroup/memcg_slapinfo.py > I can get numbers of accounted resources, but I need to understand how may resources was NOT > accounted to memcg but allocated on host. I expected get these numbers from host's slabinfo but > it does not show correct numbers. > If you are just interested in the stats, you can use SLAB for your experiments.