Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp74688rdd; Wed, 22 Nov 2023 09:44:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPf6oTOoq15ea6tWAANPfh3Z8GcUV03kZBwC7RXNqnx+szvNSx/Osz27TpSPY2qg4JGy7B X-Received: by 2002:a17:902:d2cb:b0:1cc:4488:afba with SMTP id n11-20020a170902d2cb00b001cc4488afbamr288965plc.6.1700675040878; Wed, 22 Nov 2023 09:44:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700675040; cv=none; d=google.com; s=arc-20160816; b=gdHJZB0AS6OOWpnXfUep3hF2mReELKGYwrIoOptRlI/eYPKpbWbLYzA42kuGg4Xpti si0N1/3rfJIoMvFtGrGHaIZjslNTvlnYPfWxij3x4mqWNDO62R3jyAXYNjz5yBUx3ezx AytfgKCwxTkcYRwieOZIEkLZv2itEgncrlyLSBw0CXDRtosG6MwPKs6dQQ7qWDMHA6PA k3vH+PQeaXLqc+Z6kp6CRv47pRRDhJTK0PNWy+imHlAXgffrPYmfF2e4p+NOtmC+dr+z qcMzA4HwNxWDSUowflid7FXPPfUnNEhJc9lNBnLk9UnFbSlIxVHELgTKq6YUTggetg3u 0Dwg== 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=HGqIVGUX4u3PtJ0XmRkxpd4ga76lF2lDbzJ+i5QVFks=; fh=bfQiakWAvDNKtrSkzJPjktKQf8cBmdZZtJcoO52Y1KQ=; b=gtgwXZEy5VqQ6Nfu+rVDzlLcRaYzJhLh9LmN4RWmsg7BnH11DHxg8meJYb8to4sbmg evSEiKh0oPilPNmNtlsVRocgwtz/k/m8Lwckmr+ZHUnx3fWg4P1nQ/yNPwW3Yi5d6DyO 8OC9Lq0ZDoCcTL+Pfp0epeusdgtuPCnWTMxt1G2omBiTpO3hijquIsQ+1i6MpLeJb60t iGkjPikDrCLiiKO7kWSq73eakOJSBUgdJzs0oJTCZFoCb6sYKeSaHTKnrWt/aVUTRbEN lTaKVJmwx/GZE6F4ngLJg/yIcY1Lua+FURepR8TxCfAI1L6bwGZZSwJ5DUhZBWxu9jQ+ KDng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@devkernel.io header.s=fm2 header.b=Lhqp2f1K; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=gQ7X9tiI; 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 n11-20020a170902e54b00b001cf64c9b510si5941616plf.299.2023.11.22.09.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 09:44:00 -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=Lhqp2f1K; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=gQ7X9tiI; 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 2F7B58266592; Wed, 22 Nov 2023 09:43:58 -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 S233161AbjKVRnh (ORCPT + 99 others); Wed, 22 Nov 2023 12:43:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbjKVRng (ORCPT ); Wed, 22 Nov 2023 12:43:36 -0500 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06EC31A8 for ; Wed, 22 Nov 2023 09:43:33 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id EB9BD3200A24; Wed, 22 Nov 2023 12:43:31 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 22 Nov 2023 12:43:32 -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=1700675011; x=1700761411; bh=HG qIVGUX4u3PtJ0XmRkxpd4ga76lF2lDbzJ+i5QVFks=; b=Lhqp2f1KdShPl2Jus8 DpvRpkbT3N1ebRoAo07BdizqTIMp2Ejfd7AxIcY1nycwzBFdr6N3wJn7KlqToXVE nAPgsUHSH0g5Of4GfN0z9UlnSWz6E8jYUpgiG5s2iSos5E+MIteBZJzNn+pGeE54 qVnObB3nJRBMTOZT/3BX2xsl/CQNAo0/NZRf3D9vOZ5qd4mZG930C7MSnscFEwOa FIgTC41KNsBKR6XDpCSLawRbdPz2dvHUpS9p4NUs3WUBmdbX+/kiGBxfQZBbI977 l+KohS4pQIopl6WFxW2WxOhmtYGbxRe9eDdlaCLc6gEdA7GdlcHkjG7mwtLwmp3i tgqw== 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=1700675011; x=1700761411; bh=HGqIVGUX4u3Pt J0XmRkxpd4ga76lF2lDbzJ+i5QVFks=; b=gQ7X9tiIr/0YQPbX2tNSU36AJE0/1 0AwevGsbP0k2eyCXphrV9hZw2TkXT+ZWe+GLrc7POmCEOIlM9lvrmCn4P5fFMQ3g WOVdzW/wRf+hBl+5W1AO1riQ8PrtEisimnzYBhaLt4n2faQ4OCzctQqbUs0czMHS LktQWJ0Axw2npGTxdmodcwcho5mJD4hu6QhckbCyWtkxCqqFk+UvXG+q0N03jRXJ 5O0mxHo6kWozWYfvR7boTGylbGnd0aedHqodZJnSW0NjvQKUc3Nu2/InG2P9/qHG lopAdmKxr6ikVIdYh5sFtRHCa+LLWSmjBfYDcifoOO4kQ39yT+XznLJJg== 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:43:27 -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:43:09 -0800 In-reply-to: <724f61a5-4d02-4232-ae8f-71f55e73186a@redhat.com> Message-ID: <87pm01r8eb.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:58 -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.