Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp74177rdd; Wed, 22 Nov 2023 09:43:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTT+ri850yNHPlbaHA+QYKt0r5dWJOjD4+5C5RyjaaZCwrQjHBIBsJuKoF3MIRIaHcPUoB X-Received: by 2002:a17:902:da90:b0:1c9:d8b6:e7ad with SMTP id j16-20020a170902da9000b001c9d8b6e7admr3231117plx.56.1700674987400; Wed, 22 Nov 2023 09:43:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700674987; cv=none; d=google.com; s=arc-20160816; b=o7014XVfGKji/lSjjkI+6tKK+ks5c9bbxU635RXyYPczY9aDblNGsKcdpjIzSVrK88 z/xJ9St8GI29rUDaMPd21u1/Jn1GzdMVMrxekaT+W6/1aK83FZwY78vTcdcm5AOX+gQG IvhVcRGt9TbgJrpNfZVKjixwmvMXylaKxn+URCmYQ955LzQZMCJIu/ctULVkFt7JxK+h S+LDfNHpsnAbPz8kco7kHGTVxF3w8T2PKIhr80Qf3Y6VxRHADZmOKpbAe1EJww3ljT/p 7r3tylko+CZEvhNHSXmkVmoLd/xLy6mCO/nJk81MSwCVp2cWFeH62DdlTOWbaoggiX7y wZwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:feedback-id:dkim-signature :dkim-signature; bh=4qGVKYT1B7qwrlgMwXg0Fed9QuLJAWFc+73xVSblvWc=; fh=bfQiakWAvDNKtrSkzJPjktKQf8cBmdZZtJcoO52Y1KQ=; b=E/CtM6b5mXeUIQ0IWkD/iiJAHBmFtQt39ropfVk/w6jsKGcpWdWBpMWQZyBvzKwvxs LevX9BYR8sMhQyVM9kBIpPOOfQBNRtYTDviK7LEhUiS+pG41zW+MkUiT5H1GQhZBjqy0 7ChfMd7JD9ovQXW98kwpW3gsc46qINEhgHMsSXFcRHgjbNzqJT9UE4AInMTjsXcbOdfH afOTaYth62U7thKMXoYQbkowDdxfEoQYovUX8xepLP6Fi0wVgptfNPUX4XwByz1DcUCB YxLXbYqULlOZdyXDoWHc03850zo6WT0bYW2bXqYDRCz/x72iXd1+dkiThQIRMTjkxahj 2xog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@devkernel.io header.s=fm2 header.b="yjVY1zX/"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=QB6J1++l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id g8-20020a170902740800b001c9f54d26bfsi12670710pll.516.2023.11.22.09.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 09:43:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@devkernel.io header.s=fm2 header.b="yjVY1zX/"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=QB6J1++l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 3A0648266587; Wed, 22 Nov 2023 09:43:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231830AbjKVRm4 (ORCPT + 99 others); Wed, 22 Nov 2023 12:42:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbjKVRmz (ORCPT ); Wed, 22 Nov 2023 12:42:55 -0500 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6274DD for ; Wed, 22 Nov 2023 09:42:51 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id A70CA3200AB8; Wed, 22 Nov 2023 12:42:50 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 22 Nov 2023 12:42:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devkernel.io; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1700674970; x=1700761370; bh=4q GVKYT1B7qwrlgMwXg0Fed9QuLJAWFc+73xVSblvWc=; b=yjVY1zX/CNOjDgaikV KsgA6T4ZmG6zmYW2MMeR1ZglSZzQgqh+6Ntz9UCLSsXneW2/rJBZbKYMdTPBnKey wymd4Do69W+xJLCgu6xVkpPDVIMSvX3+LtafOwrX4NrILQgnxd89WMe963gaMQXI NpD4DmIYzsDF1YcUx3nH5+jwncBy971m1TkuQuFw26OoDPLO/6ftlP0NgD9MYBR8 B+tJ0uRkvmZys8qPDBInOMnLVsgdhCfCgJ+pQcSyAvza0EVB0ZRp01tVHESvJP93 ynPiftFjFJIPjkqMNnjhJUa/iuJikG0AkIAwGv2J2wjfldOKrNQQVcljCFfpOcCA ebKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1700674970; x=1700761370; bh=4qGVKYT1B7qwr lgMwXg0Fed9QuLJAWFc+73xVSblvWc=; b=QB6J1++lSADjwDoB6VBvueQz7pYTh l3pptE8/mpJrECczilynFgu8hI5KmXWbYqlnE7SqNpf6RTB3gro3vCb6U6gjzNIo aREz4e1jSSydgYiZUstUb3EeLG/mF8Ht1k5yu2k65m5YYGFLmvDkRgYK+FGn3ohj QdwVdqc+L1rekzylds7NrO+Gww6tekCcLKL5FTg4BakG5OFt5D0MesuBXboFioSN 63kw8K2rr9LQ0oROIlhWd7UQwwIM9+8xjsgafl3Rxe2bY71v0FZzx7VMh5H4yw8A /arBxIKldQ9zpx1y0clQjLyImIKpIOrciK25nev74S4sYaG7iQ/7OzsKA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehuddguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvfevufffjgfkgggtsehttdertddtredtnecuhfhrohhmpefuthgv fhgrnhcutfhovghstghhuceoshhhrhesuggvvhhkvghrnhgvlhdrihhoqeenucggtffrrg htthgvrhhnpeevlefggffhheduiedtheejveehtdfhtedvhfeludetvdegieekgeeggfdu geeutdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hshhhrseguvghvkhgvrhhnvghlrdhioh X-ME-Proxy: Feedback-ID: i84614614:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Nov 2023 12:42:48 -0500 (EST) References: <20231028000945.2428830-1-shr@devkernel.io> <20231028000945.2428830-3-shr@devkernel.io> <724f61a5-4d02-4232-ae8f-71f55e73186a@redhat.com> User-agent: mu4e 1.10.3; emacs 29.1 From: Stefan Roesch To: David Hildenbrand Cc: kernel-team@fb.com, akpm@linux-foundation.org, hannes@cmpxchg.org, riel@surriel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2 2/4] mm/ksm: add sysfs knobs for advisor Date: Wed, 22 Nov 2023 09:42:16 -0800 In-reply-to: <724f61a5-4d02-4232-ae8f-71f55e73186a@redhat.com> Message-ID: <87ttpdr8fe.fsf@devkernel.io> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Wed, 22 Nov 2023 09:43:05 -0800 (PST) David Hildenbrand writes: > On 28.10.23 02:09, Stefan Roesch wrote: >> This adds four new knobs for the KSM advisor to influence its behaviour. >> The knobs are: >> - advisor_mode: >> 0: no advisor (default) >> 1: scan time advisor >> - advisor_min_cpu: 15 (default, cpu usage percent) >> - advisor_max_cpu: 70 (default, cpu usage percent) >> - advisor_min_pages: 500 (default) >> - advisor_max_pages: 30000 (default) >> - advisor_target_scan_time: 200 (default in seconds) > > Is there a way we can avoid exposing advisor_min_pages/advisor_max_pages and > just have this internal e.g., as defines? > Yes, we can.