Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2403222rdb; Thu, 21 Sep 2023 18:55:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWhV165NY8mpJAo5Xtm3DZdrBKQMlm3LlFIm7pQ1JVBZOgMtvcHW6IUD2rAM30NTc2oNko X-Received: by 2002:a05:6a00:17a8:b0:690:ca4e:661e with SMTP id s40-20020a056a0017a800b00690ca4e661emr8066387pfg.19.1695347710896; Thu, 21 Sep 2023 18:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695347710; cv=none; d=google.com; s=arc-20160816; b=JOAgKVJcl4YJZ1irSjEcanQyWYMfP3jbs25ZYxjkw/W3r1LlatDL19zhhwd7YwSyan mhxSYuVqVtISe1M1ve5G0ZTTS4csRqn/BZX0ipo3ROILC4H4PeqlinLqPRPVdgE9myA8 FQDaf5wwv9cWsJO3kVzUVV+mc8BSjocxIydcqDBOClzB+juey1QKKE24wZEsZNaz7gtu 7oDt1sQdZj1TjMI4VG2hsElEv9HCIQiL0Ch+3acmK5oHbl85MmDfAacTKvHTqND4Jrr0 kYcQpWHIj17nmfIJf56GP/zW4LI7tp99jv6/H4A/FLrfcHmOIdB4/yqOkzoUMNSARoZd zCHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=fLGs7OXmy6Db9JK9jubesh6HRVExf18uMBd5GaPNIu4=; fh=jFpMLalc6cvHBy3rDpdQHsyhibsfSiFLF8QOLxwQ1Vo=; b=CHWBwr6ZkwFPM3wg9jXYe2S/S6TeKf7UsSMolCWGNq5226Z4LdeMHwf9DbwGc3Q0C4 rhQ/AoHdm7Ys6tHHOA1/0mrFPVNRboaUYkASnZAIiPAmgMOXT/hfOuDLVBMyVjfSzA6P nDjiJUUYJ3YXI3ZS8t9Yi6aLP4I++PZRCcU9eYNCMwO+XVj70Lg2EuZC/PV6i5lERBMv XblgEaV97TCzG/k6tOyjumXPYwHnLNg2AzMi3++EPBCYkwyUmqNO3PhsGBv2ZNnfifOd ejuVIkrx2suI1+C+VwZ0Frxvg4R0immEkZVIGu70b3I6ntwWBr7wOZNMtA58x18KWThy p2/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=EmOPQtjp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id d63-20020a633642000000b00577f4d85fd7si2505920pga.316.2023.09.21.18.55.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 18:55:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=EmOPQtjp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 7625783294F5; Thu, 21 Sep 2023 10:07:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230197AbjIURH2 (ORCPT + 99 others); Thu, 21 Sep 2023 13:07:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbjIURHK (ORCPT ); Thu, 21 Sep 2023 13:07:10 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C6DB2101 for ; Thu, 21 Sep 2023 10:03:08 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D63CCC4E772; Thu, 21 Sep 2023 15:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1695311178; bh=XbJgWS2b4Zs6ittxozTQbmeIioM0YEqG8HDmDMXPv/U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EmOPQtjpihFmSGI9lHQLn9ZbTdoa0pDV27Y6p+DgCqQoWSEhawxxqTaWPvbBMcyJx 8UpdnxNbLOTXxxk/BLuxsf5jEk3FvH8kQjP6E9KJ5eR44XXCyBAEdKjkqVSBXXwJJL 9jM2G7bH41H4C/HV/mVrPcN1LEbU5kxxFGjheoTQ= Date: Thu, 21 Sep 2023 08:46:17 -0700 From: Andrew Morton To: "Huang, Ying" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Arjan Van De Ven , Mel Gorman , Vlastimil Babka , David Hildenbrand , Johannes Weiner , Dave Hansen , Michal Hocko , Pavel Tatashin , Matthew Wilcox , Christoph Lameter Subject: Re: [PATCH 00/10] mm: PCP high auto-tuning Message-Id: <20230921084617.b1129a46de247e4a6f0098af@linux-foundation.org> In-Reply-To: <87leczwt1o.fsf@yhuang6-desk2.ccr.corp.intel.com> References: <20230920061856.257597-1-ying.huang@intel.com> <20230920094118.8b8f739125c6aede17c627e0@linux-foundation.org> <87leczwt1o.fsf@yhuang6-desk2.ccr.corp.intel.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 21 Sep 2023 10:07:33 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email On Thu, 21 Sep 2023 21:32:35 +0800 "Huang, Ying" wrote: > > : It's possible that PCP high auto-tuning doesn't work well for some > > : workloads. So, when PCP high is tuned by hand via the sysctl knob, > > : the auto-tuning will be disabled. The PCP high set by hand will be > > : used instead. > > > > Is it a bit hacky to disable autotuning when the user alters > > pcp-high? Would it be cleaner to have a separate on/off knob for > > autotuning? > > This was suggested by Mel Gormon, > > https://lore.kernel.org/linux-mm/20230714140710.5xbesq6xguhcbyvi@techsingularity.net/ > > " > I'm not opposed to having an adaptive pcp->high in concept. I think it would > be best to disable adaptive tuning if percpu_pagelist_high_fraction is set > though. I expect that users of that tunable are rare and that if it *is* > used that there is a very good reason for it. > " > > Do you think that this is reasonable? I suppose so, if it's documented! Documentation/admin-guide/sysctl/vm.rst describes percpu_pagelist_high_fraction.