Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6616629rwr; Tue, 2 May 2023 03:05:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/hNiW2LGnyYc+tcn1V7W04QKIpbc4rvG8pYRU9szhxxPFXfBrXbYGO2Z2HR2dKuQSU3u4 X-Received: by 2002:a05:6a00:1a88:b0:63b:6149:7ad6 with SMTP id e8-20020a056a001a8800b0063b61497ad6mr21720493pfv.34.1683021939138; Tue, 02 May 2023 03:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683021939; cv=none; d=google.com; s=arc-20160816; b=asG1dFZosK26kFpT0MVjusZtRQQ9FSCIc4SsyygWUMP/n/pqCci05DvEqFqSn+jxsA PUlKYgQH6bYOXuosXOCvlFxqI/ziBcuYu6kUyxe1OoN8QwUFWIv34SmdCVHpz489VS00 Ya5w/iJaG3zoyrPXiuXLR7f1SAxRuQb9iodtlXjNt0zlTL/Tko4GFKOWSxiakTS0AqeZ 1puUDVfeH9OZyEgVoPL5xhjOnzAeY4KcdyELnzdLB0ZHfpkBjdCXK4WAISalrcTxf98+ qa+hmAGwT9AWHMnnlWtsL4R3++ccp7tj7RrNkyLbwXxYA2cAVGjX50vF1Py0n/2CGbb7 0vHw== 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:dkim-signature; bh=EQGFmprAkf6SOGmZcALNchoLIXzx1I6PSxS66a6jet8=; b=bgDVatHed/uM7gRuv07lCrXh3XODXBiJQASRKT2gbmlee+fT8IzMtWKLfB2rKljZZp ujCaONj+n6c9hd6UwP/6lPmwKGmy7HcpJU/J+GuD25lcCjzxZKfOSTsvfvDq4CaFrg2R XFgG56yS/6N/rLRyoElLjsBNr8NKbOMoXtobAvTOVejjAy86dKhrVROjv+JOGextABAt 2GY5KdmwmIoq5NLdr+th9ouJPtGFOBzCb/iObLlEeMCsFds162hzfoa5IQv9drYcH05X 2HUh6nrW96uZQx2rmMJypsrbqKf8QYC4fbgwTKD7znAObxRUygKPpHIG/lD/fDIj4y1X 5/Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xQ6JaecB; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020aa78425000000b0063b88f52220si30147908pfn.144.2023.05.02.03.05.20; Tue, 02 May 2023 03:05:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xQ6JaecB; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233554AbjEBKAw (ORCPT + 99 others); Tue, 2 May 2023 06:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbjEBKAu (ORCPT ); Tue, 2 May 2023 06:00:50 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA4FDF9 for ; Tue, 2 May 2023 03:00:49 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 639BD1F8BE; Tue, 2 May 2023 10:00:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1683021648; h=from:from:reply-to: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=EQGFmprAkf6SOGmZcALNchoLIXzx1I6PSxS66a6jet8=; b=xQ6JaecBwap2jvpIJ31SWlM85SFeS5pVbSmJrTo8OcH8F+BJl7Bn+3GZHGG4pRq3YgMFK7 UTSSsOlEhV5ox5haOFuEl/z9ln+zEQ49zYyjI0uz11RCqGbHwtULOI+FNLc+VdR6ZC9bTg /5k3CGJ3kuqBHRJ+CFo/uavxNGinkOQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1683021648; h=from:from:reply-to: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=EQGFmprAkf6SOGmZcALNchoLIXzx1I6PSxS66a6jet8=; b=FquHuOLlZRQgEkHms/NYY7NkRXmeTQlbefmtFXMHofFnlEWcLdee1WSLeDp4v9FRmyYbwh GUYS/XhGVKDhFeDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4681C139C3; Tue, 2 May 2023 10:00:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id fqmEEFDfUGTlZwAAMHmgww (envelope-from ); Tue, 02 May 2023 10:00:48 +0000 Message-ID: Date: Tue, 2 May 2023 12:00:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 1/1] mm: change per-VMA lock statistics to be disabled by default Content-Language: en-US To: Suren Baghdasaryan , akpm@linux-foundation.org Cc: torvalds@linux-foundation.org, lstoakes@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@android.com References: <20230428173533.18158-1-surenb@google.com> From: Vlastimil Babka In-Reply-To: <20230428173533.18158-1-surenb@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 4/28/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 Acked-by: Vlastimil Babka > --- > 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.