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 6A42EC77B73 for ; Tue, 2 May 2023 15:59:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0677F6B0074; Tue, 2 May 2023 11:59:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F34D16B0075; Tue, 2 May 2023 11:59:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DFACA6B0078; Tue, 2 May 2023 11:59:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by kanga.kvack.org (Postfix) with ESMTP id C44216B0074 for ; Tue, 2 May 2023 11:59:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683043173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k1xWxQUPrqXW2bGySEuDkOkWRAsXj0s5JI7VBrKLuwQ=; b=EMjYYIyOw9zt97TFAWrUkXkMyKOIZ57218ZFZVDpNFul0MWZ2v+vu6xGLPHxL11hxw8qVq SAGxMQxq2cNO0nNNZjT/7QxUC4WzWWND+EfkED3zeC8DOm+jib0vuovwgAuNQptM0KO8dU JMmsj8rLDGjpnZx0vDIJ9NY7LpILy/A= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-518-ExXgnPbCOA-uQcmgNJpV4Q-1; Tue, 02 May 2023 07:27:44 -0400 X-MC-Unique: ExXgnPbCOA-uQcmgNJpV4Q-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-2f625d521abso2157976f8f.3 for ; Tue, 02 May 2023 04:27:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683026863; x=1685618863; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=k1xWxQUPrqXW2bGySEuDkOkWRAsXj0s5JI7VBrKLuwQ=; b=g5TnRLEQvWF4TvAFw8FHMhrnks1BMmQYpnfEe1Ze/m3+0GsfPU7zHkUTjjzOvAxMhP 0LtUsChefH5NLEzy0UMtgub6vSv1q5Hs/XOLyDrJHldBorm5OLfFuelS55qg49dHa0O+ SIFPe40GAfryGe8kaHvbyAvduvlI0nRaYxPLNYdFpoaUrszooqzhHz819c6COvI3d84w TICFceDi9LcezZmUJmdl4Ax/MJ4K9D0uqaatlbI2RCfmtU94f48mumf+4LKkqwcSEMnR u8heKzZm8cBECgTIOLYgjzlmEsuWfKG0GMeDQBJhA1Ipr5uB1A5U1mPwzRl71ft7KF+G UqDg== X-Gm-Message-State: AC+VfDw8WPJOb+dXUmZfPOZOgP54FyLD5FZIlVzvrvfIBcP7TwwIm1RJ nRf/DKZNQNAiwNF5MMcMtj+xcPUpm1DTSIrAYedWnXv63yig5k5HUNnSMrYOmEhjeBWed+Og2MW sU5cAG04TUdgQoWKDMtY= X-Received: by 2002:adf:fac8:0:b0:306:36ee:3c17 with SMTP id a8-20020adffac8000000b0030636ee3c17mr1491308wrs.71.1683026863591; Tue, 02 May 2023 04:27:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4BZQJgC+V3WzGUyoEJ6zZCSeZcJ7b9ZWkx8TUXcEPQ1lZk5m3i7yEcnB6gve9DXP+2P5Jswg== X-Received: by 2002:adf:fac8:0:b0:306:36ee:3c17 with SMTP id a8-20020adffac8000000b0030636ee3c17mr1491293wrs.71.1683026863240; Tue, 02 May 2023 04:27:43 -0700 (PDT) Received: from ?IPV6:2003:cb:c700:2400:6b79:2aa:9602:7016? (p200300cbc70024006b7902aa96027016.dip0.t-ipconnect.de. [2003:cb:c700:2400:6b79:2aa:9602:7016]) by smtp.gmail.com with ESMTPSA id p17-20020a056000019100b002fda1b12a0bsm30878929wrx.2.2023.05.02.04.27.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 May 2023 04:27:42 -0700 (PDT) Message-ID: <5574983a-3b32-f519-9012-a66b319fc6a8@redhat.com> Date: Tue, 2 May 2023 13:27:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 1/1] mm: change per-VMA lock statistics to be disabled by default To: Suren Baghdasaryan , akpm@linux-foundation.org Cc: torvalds@linux-foundation.org, lstoakes@gmail.com, vbabka@suse.cz, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@android.com References: <20230428173533.18158-1-surenb@google.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20230428173533.18158-1-surenb@google.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: On 28.04.23 19:35, Suren Baghdasaryan wrote: > Change CONFIG_PER_VMA_LOCK_STATS to be disabled by default, as most > users don't need it. Add configuration help to clarify its usage. > > Fixes: 52f238653e45 ("mm: introduce per-VMA lock statistics") > Suggested-by: Linus Torvalds > Signed-off-by: Suren Baghdasaryan > --- > mm/Kconfig.debug | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug > index 6dae63b46368..a925415b4d10 100644 > --- a/mm/Kconfig.debug > +++ b/mm/Kconfig.debug > @@ -274,6 +274,12 @@ config DEBUG_KMEMLEAK_AUTO_SCAN > config PER_VMA_LOCK_STATS > bool "Statistics for per-vma locks" > depends on PER_VMA_LOCK > - default y > help > - Statistics for per-vma locks. > + Say Y here to enable success, retry and failure counters of page > + faults handled under protection of per-vma locks. When enabled, the > + counters are exposed in /proc/vmstat. This information is useful for > + kernel developers to evaluate effectiveness of per-vma locks and to > + identify pathological cases. Counting these events introduces a small > + overhead in the page fault path. > + > + If in doubt, say N. Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb