Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3308708pxf; Mon, 22 Mar 2021 03:25:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKXCFCsKw4/f1XZrmR4L6aLe+zLyWbbbMPRJpEZUpMBnfYs4vsvE1TtqGEoeW77hRa7eyp X-Received: by 2002:a17:906:90d8:: with SMTP id v24mr18210891ejw.547.1616408721097; Mon, 22 Mar 2021 03:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616408721; cv=none; d=google.com; s=arc-20160816; b=iI7o2jVUr10gy5SDUKAzGXyz7HzwF7V/bN1caGrkeN+AJtccBbLCJYkdtJ2poi9DGe CZ6VJiJlPKLT9L+ATbAGjFjISMQyxBBSzAcH1jiPBDTNoz+Jd2nELN6w9jt7H0TXF0m5 dmZVlXPZGaLFdp2YM40M27OMN4g1n4dZ1OzDa6t+c81jVUaPLvSIxPyHRDs3YqlkXf7z +sYD7qRVfF8kOP1U/TdC5Dmq7lJInhzxdusvefdcDoIROjdo8GeiEyFeIj2LXrtNKG0c XTczQjFTXQ2wx6ntHPcaI6hCLAoL2lG/XSCv1Cs4s/8F4uXmbWYtwHFNoAM/XPZyecps bJVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=PHyv67mFF0q9e2n6OS6u06sznq/lMgh8w2TFvfTiRoM=; b=S+LkmA/1P0X9UQhXpzGT9/K9MsQbs5yBvZEGT3pubg+ImCzfRoqx2U+XBdc3bg9cnI OjBrwXlHQrfwqfz96mPYCrk2erYypxjlZxVlXvmX7UxBw0LWgHHoA5+PYgI01HWDW2MM jfu4i/0AavfzbWlZa2GFvYd3/HGuLDJLQlPNoGtnfLljX1SgRHa7iuQEsI0euBOFlXaT M493WQrg4VB/u0xNGZ5yFcRPMhGvaI1hzu8vlq8sZQHLK+QmX1MW+NxxzyEkonTg6Awj fV8hTxmXX7UZgq/uKCppUdW/F17zRZf/lSTXIYzdUYp8XvudM/1WMewZNd39aRhJ2s9t oMuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n19si10404043edr.388.2021.03.22.03.24.59; Mon, 22 Mar 2021 03:25:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229941AbhCVKWz (ORCPT + 99 others); Mon, 22 Mar 2021 06:22:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:47364 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbhCVKWp (ORCPT ); Mon, 22 Mar 2021 06:22:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9B37DAD71; Mon, 22 Mar 2021 10:22:44 +0000 (UTC) Subject: Re: [PATCH v4 1/3] mm/slub: Introduce two counters for partial objects To: Shu Ming , Xunlei Pang Cc: 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 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> From: Vlastimil Babka Message-ID: <2ad0539f-2c38-714e-330e-7709bb07ebac@suse.cz> Date: Mon, 22 Mar 2021 11:22:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >