Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2371600rwr; Fri, 28 Apr 2023 09:25:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5XQ7Eok/W+RN2fBs8LmsRA7kQSNsRJVHPy+qlwFT0HNRzP1kfcA1OwLDT9rOAceRb2/qku X-Received: by 2002:a17:90a:77c3:b0:237:50b6:9838 with SMTP id e3-20020a17090a77c300b0023750b69838mr5758801pjs.45.1682699144811; Fri, 28 Apr 2023 09:25:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682699144; cv=none; d=google.com; s=arc-20160816; b=aWj0ANz36MWHFjckpAXycQznMIq4k3nOTFoJ9b8jTtFYlSrb42YIru5B467sf1rhf5 ENj/UQLrXKWQ6qBScrGYt1PzXjBqSYGbpKwxtWcis6Hcdd+DBMKTD9rR0CtsjPd/htya T2yHlKq1HufyEc/FbgDH1d4pEhujj8d1qR2y3l8+REtRmsaDcW5iHD0fn+vKa9e07mrk Dh0gQcvBRIFKfG+5fSw52U43Aa0ZsmhjSpNQACKxUqUmCVizCm7567HmnkadydeHdInj m1+jhtVN6nl4IiIruJPctt5DEkcnZmrjZHGtX86QqngMovNAtv+XcDJZneJSPOZvkFtH NuIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=YFyJc8+p4qTuozgH/v/B+1NflQRfcLItZsoQOpNrm4I=; b=yIkDmScH+BHaC5OmSBsrOw4JUF9PPlZ+9cN+uGeKOYG97x0zz59ftCVoy877Jh55JY zYTjBHgJWDSBst1odbPnrA76Tj7imL/XZVk23ktewM2VhVKAkMpRPV2ds4IAO1JcUii/ X9k7jHkFDgsIa+KKWK90r2byv+62V6W0IgXRbqGnEnv5wQLczA3W/9NZ0NcRRV6MLvVo xl0mpwBECQrxV37UF3cpL16N24jtBbdhJJXdUBw0QPJ1xxMqpQl6BSrUfPLlMxDcvK9N cZTzFippfIUnhdPeCposgwyL5XylOC9oFwAT5pwtlMF+EM8ZBm/lCkhkBqjAXV291mmS 4X1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=KI6WifT1; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a17090ac38700b00246abe40ca9si23598667pjt.9.2023.04.28.09.25.32; Fri, 28 Apr 2023 09:25:44 -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=@google.com header.s=20221208 header.b=KI6WifT1; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346104AbjD1QSD (ORCPT + 99 others); Fri, 28 Apr 2023 12:18:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346089AbjD1QR5 (ORCPT ); Fri, 28 Apr 2023 12:17:57 -0400 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9997AF4 for ; Fri, 28 Apr 2023 09:17:56 -0700 (PDT) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-54fbee69fc4so833627b3.1 for ; Fri, 28 Apr 2023 09:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682698676; x=1685290676; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YFyJc8+p4qTuozgH/v/B+1NflQRfcLItZsoQOpNrm4I=; b=KI6WifT1huW26vIMkQLL3klATIcHmUITIOLhmKPoBSZAVdw5odSR4lQ7QfzgVL2Sa6 sxnbscyqWPfKsK5XMqqlJdblwIl5wfDje0FeISy/ie3hUuH/dOexjxVSWRpGN9JqF3ro 4MNwZVuy+59IWxX+ch7zlDRFoY5BgvXTavJOX3+x6Q2lRog2uL/q8EdKNYf72eBox+po Yh9BW0u3jMdlKf+GNY7aANIEwQZjscT85ORaOaSIMcTXGg5DbC/ZyKzTsNmSEIN6smK5 tE1ZbfxSG9NQLg//0mv3u6163fclJcSgt3Eu+FIu8sPSd4S0OUqnIGw17uK6AGVUPWQK SVqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682698676; x=1685290676; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YFyJc8+p4qTuozgH/v/B+1NflQRfcLItZsoQOpNrm4I=; b=dVJ7gryrxQCN0gDClwwD6bbI2sDhyZtHkvREfMKBSyyJtUFHKlvJPfBxVxER1FePGl vvVclg7kpZr+XSDrJZSx9rODX7OE8BPRvMrSFde081oebYvu5rp+xolF2SxossPvPyFI 7m4Nnp7BMO0QF6Ddbl0EF/UQyDBQJr99YomDI3p+4wTWxkWHbSSnruTZq64YVGHloPzQ 48OaN8iTcKmxSvXQ/Z40OjIL5uN/6SFOgebh8C4m9cTCoy0itG5urPJnUxVxy5y6Tzgk 7u9+NAfzCHdZFYzzZXXPrVPgqKjDgUwRqfQBCE9I04pvzvOcguSgFxlHBwXCPAeVCvP4 c0oA== X-Gm-Message-State: AC+VfDwsExQHse2dop6SQVAHolg0X6U1WA0DgewOREyDm9bk6DAlV7Rq nThvxKyAFu9ERiatoT2+z1CBIDdMk7rYXgpiaFzohQ== X-Received: by 2002:a81:4ed3:0:b0:540:c99d:efc1 with SMTP id c202-20020a814ed3000000b00540c99defc1mr3296966ywb.35.1682698675470; Fri, 28 Apr 2023 09:17:55 -0700 (PDT) MIME-Version: 1.0 References: <20230427153345.451d86681f9c6775ea579e5a@linux-foundation.org> In-Reply-To: From: Suren Baghdasaryan Date: Fri, 28 Apr 2023 09:17:44 -0700 Message-ID: Subject: Re: [GIT PULL] MM updates for 6.4-rc1 To: Linus Torvalds Cc: Andrew Morton , mm-commits@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Lorenzo Stoakes , Vlastimil Babka Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Fri, Apr 28, 2023 at 9:14=E2=80=AFAM Suren Baghdasaryan wrote: > > On Fri, Apr 28, 2023 at 9:08=E2=80=AFAM Linus Torvalds > wrote: > > > > On Fri, Apr 28, 2023 at 9:03=E2=80=AFAM Suren Baghdasaryan wrote: > > > > > > I wanted these stats enabled by default to be able to identify > > > possible pathological cases and to also let users disable them if the= y > > > can't tolerate even a small overhead in the pagefault path. Should I > > > document this reasoning for the config option? > > > > You should document what the stats actually count (at a high enough > > level for a user to understand), and why anybody would want to keep > > them on. > > > > Honestly, 99% of the time, these are things that *developers* think > > they might want, but that nobody else will ever ever use. > > > > Really, ask yourself if a normal user would ever look at them? > > > > Now, ask yourself whether this might be something that a cloud > > provider would want to look at to gather statistics. > > > > And if it's the latter case, then it should be "default n", because > > the default should be for the people who DO NOT KNOW, AND DO NOT CARE. > > > > The cloud provider will be using a custom config anyway. The default > > is irrelevant for that use. The use that *matters* is literally the > > clueless end user who I bet will never look at these numbers, and will > > never be asked for them. > > Ok, sounds like this should be 'default n'. I'll prepare a patch. Thanks! Should I send a replacement patch for "mm: introduce per-VMA lock statistics" or a followup patch fixing it? > > > > > Linus