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 X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCC5FC433DB for ; Mon, 29 Mar 2021 01:59:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 46A9161601 for ; Mon, 29 Mar 2021 01:59:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 46A9161601 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B10EC6B006C; Sun, 28 Mar 2021 21:59:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AAE816B006E; Sun, 28 Mar 2021 21:59:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 99CA76B0070; Sun, 28 Mar 2021 21:59:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0057.hostedemail.com [216.40.44.57]) by kanga.kvack.org (Postfix) with ESMTP id 7F0636B006C for ; Sun, 28 Mar 2021 21:59:05 -0400 (EDT) Received: from smtpin32.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 2D77A180AD82F for ; Mon, 29 Mar 2021 01:59:05 +0000 (UTC) X-FDA: 77971253850.32.0CD4811 Received: from mail-vs1-f43.google.com (mail-vs1-f43.google.com [209.85.217.43]) by imf11.hostedemail.com (Postfix) with ESMTP id 11035200024B for ; Mon, 29 Mar 2021 01:58:59 +0000 (UTC) Received: by mail-vs1-f43.google.com with SMTP id l8so4286633vsj.13 for ; Sun, 28 Mar 2021 18:59:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ow1zs3cItHl7OQhkXPkPKnmVcsXMnGDINjd+t2rZz+4=; b=HL7jEOHhxCjXtEUyrATnLBUUV818++rOTkwH9FSMmlW4hKwDk7tg3lnoQyahnT5yrM NByS65qREQytoF26NUwxtzn2ZnuyYr6LUEn6LLrwKnUBIzAESbCcCPKkEdOJLAuwUSNO Mc1GzvOxfALhrseTffBsnjUqzYdWwDaWFD3TwpGzdJU64+xBi2yUeAzofFVt9vOimO9z n0C8fOsibYzDCJboPy93GlMjA+uJSTwZ+RHUhjt2EHgHTy3ue87TtVZTWb+YXUwdZLiG khbvSWc/0HJxt6hU+KzKcTpzKjEvxnrG/L1YPgi+LCsRXu3BGFQHLDDl3tEntdcOYWD7 yrdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ow1zs3cItHl7OQhkXPkPKnmVcsXMnGDINjd+t2rZz+4=; b=kp1YQ5rngGJTH2gPUKNkT3BhW9Dti2MvcLI9EOcwqxJYAi1IAP5RHNABG85n8gSfUX 9Zjr1lk2y18GJU0RcyH9f6UiFGRxtKUfd4AnZemvd6H92zQffyBO8YnAYuU/S+nodXx3 2zbD9CqxPSCtkx+IsAMkBmwSrE/4V+UfzPUCCY/ObJLOrvzCt0WLPkoJd7iDXuW1T06c lQyaZjFJiPSN3EV1dx52kdWEfLrg9WayKsZtBvBCuTycZfJAOtHkcsSjHYaXkGQQGE/W 7vndyF+dIOS4Ex1i9LAIoaxEdLWA+VcmDbKalTtJShMMovmXD2rCDKHqIQNdu5lWLllU ch3A== X-Gm-Message-State: AOAM533/1exiJxkns88A9kXAwlU66WtI8RttG1m3U5q9Dm3IqZqDsZKO 4i4X7sxG+5Uk2kloFsYG++QK1GllCYXEFLGkYss= X-Google-Smtp-Source: ABdhPJwDm1MJIjc3Tvq0XbBfiBsjbrkbM5KG38v/weJPX+6L/VEVRz9N1G94hyEgfLPte3zpGmG8FyMmZKJ8BBzOPds= X-Received: by 2002:a05:6102:3131:: with SMTP id f17mr13277929vsh.30.1616983143979; Sun, 28 Mar 2021 18:59:03 -0700 (PDT) MIME-Version: 1.0 References: <1615967692-80524-1-git-send-email-xlpang@linux.alibaba.com> <1615967692-80524-2-git-send-email-xlpang@linux.alibaba.com> <42b5dba7-f89f-ae43-3b93-f6e4868e1573@suse.cz> <34a07677-3afe-465c-933e-dc9503e9634d@linux.alibaba.com> <2ad0539f-2c38-714e-330e-7709bb07ebac@suse.cz> In-Reply-To: <2ad0539f-2c38-714e-330e-7709bb07ebac@suse.cz> From: Shu Ming Date: Mon, 29 Mar 2021 09:58:52 +0800 Message-ID: Subject: Re: [PATCH v4 1/3] mm/slub: Introduce two counters for partial objects To: Vlastimil Babka Cc: Xunlei Pang , Christoph Lameter , Christoph Lameter , Pekka Enberg , Roman Gushchin , Konstantin Khlebnikov , David Rientjes , Matthew Wilcox , Andrew Morton , LKML , linux-mm@kvack.org, Wen Yang , James Wang Content-Type: text/plain; charset="UTF-8" X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 11035200024B X-Stat-Signature: tu4cksm9hdiafaqstjs5m458amutpwrh Received-SPF: none (gmail.com>: No applicable sender policy available) receiver=imf11; identity=mailfrom; envelope-from=""; helo=mail-vs1-f43.google.com; client-ip=209.85.217.43 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1616983139-62665 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: I am not sure how people are using partial object accounting. I believe it is used as a memory usage hint of slabs. On Mon, Mar 22, 2021 at 6:22 PM Vlastimil Babka wrote: > > On 3/22/21 2:46 AM, Shu Ming wrote: > > More precisely, ss will count partial objects like denty objects with > > "/sys/kernel/slab/dentry/partial" whose number can become huge. > > Uh, that's interesting. Would you know what exactly it uses the value for? I can > think of several reasons why it might be misleading. > > > On Thu, Mar 18, 2021 at 8:56 PM Xunlei Pang wrote: > >> > >> > >> > >> On 3/18/21 8:18 PM, Vlastimil Babka wrote: > >> > On 3/17/21 8:54 AM, Xunlei Pang wrote: > >> >> The node list_lock in count_partial() spends long time iterating > >> >> in case of large amount of partial page lists, which can cause > >> >> thunder herd effect to the list_lock contention. > >> >> > >> >> We have HSF RT(High-speed Service Framework Response-Time) monitors, > >> >> the RT figures fluctuated randomly, then we deployed a tool detecting > >> >> "irq off" and "preempt off" to dump the culprit's calltrace, capturing > >> >> the list_lock cost nearly 100ms with irq off issued by "ss", this also > >> >> caused network timeouts. > >> > > >> > I forgot to ask, how does "ss" come into this? It displays network connections > >> > AFAIK. Does it read any SLUB counters or slabinfo? > >> > > >> > >> ss may access /proc/slabinfo to acquire network related slab statistics. > > >