Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2427774rdh; Wed, 27 Sep 2023 02:12:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGUHTAsR3358TVaO2XiJvRtlZbUuCLac2DKqqHLzsEfbBxqhuqR9a8WxdrbH+JgkKQDlh1t X-Received: by 2002:a17:902:f688:b0:1c7:2c07:c9ed with SMTP id l8-20020a170902f68800b001c72c07c9edmr133584plg.24.1695805937824; Wed, 27 Sep 2023 02:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695805937; cv=none; d=google.com; s=arc-20160816; b=bbre4dqGO3+2rv8WFhzNQlWqRVKc8uUe5NCs59lMbBkZBt1PB9JT6LHncx9fzO7yZY yjOl2KP/etylGn1Xa7Tlb6AzjhLqjcWsrBjHFMKCRuLwDXlYnuAFoYIEUi0GEPeSsb8k NEeQ7OUMk47XtuB9cJkc8IEIdQWaEH77AaMejhNJbPb2s9+7bShVSRK6J57KtbmqBsRE br7t3RjdPiSjndvVjIuYv7BEUBwz7Ft4R0vyVz454n4ZhPGx3r1w8rIJua0T7cb4tUgh apj4OC+XIXrKcvzVVjT238+Ci+Cc1BqgGUNAxnyCxtbGDgZPBWBIRmwcvOyHTiC/ro/h 8G2A== 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=jbUnDoknKLfLh6/oSgHkAXPSNJm8it6Hr/1uZBFMm/8=; fh=ICqU3+eon5H9radRM8CFlJ3Aettv6N79wszT60E3trw=; b=Dh1HJfQ0q01mlvc9NqB0bq55UPJNZcdRnbYI8ILLh87IaWJRQ2oWiWt5sPgTYiOlLq /2brcbeTgHxmm7B8YFqCQlxxxePQ2Fx0FLHqAXMKTZQQlIlW4EllEsuVlkIVnf073AxV 4fzfoh9JSELA3KpwAreg5LQxCoZ0W3K25xMAqwgJFp/PdyRnOYjScJpymyC8juxiWfkS ni3k/jy9fkQr49rcK45FZbukD97a8rYjZavtW2EvHqVgr8/uW1g0QKMMQYBhp3c4ExWM 0NWHfNBOpGnrVZ6eK3uZJ6LFZaOQJF18jOZr+ZSoNDvzTWWKtgP+FaRWLjd5snmqQ9pe 4Bdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=vX0KbVB0; 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 f4-20020a170902684400b001bbc855a8fcsi14242330pln.488.2023.09.27.02.12.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 02:12:17 -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=vX0KbVB0; 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 5914F80A52A4; Tue, 26 Sep 2023 21:11:56 -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 S229686AbjI0ELq (ORCPT + 99 others); Wed, 27 Sep 2023 00:11:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjI0EKd (ORCPT ); Wed, 27 Sep 2023 00:10:33 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 570C41E3CC for ; Tue, 26 Sep 2023 15:27:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DA64C433B8; Tue, 26 Sep 2023 21:09:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1695762596; bh=wC0dTpJgWtaku1+4SDaNJIe+CBwFB1hfHT9wzrkh5Gw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vX0KbVB0hpSZUkMK5QugE4qB2ANXXob7PmAOhter8MsdV+VgxJtUKpxCGz8nt4dA9 MpPV07PcCNeJgPRGlCFw76/2qQMNkK9jXx5OJsx3j1X4T6XfzKIFgxAc/S4MiTImcU 4RudDUmLe47HNNaHG3EuhLA76aW+LGbTeoMoQ9C0= Date: Tue, 26 Sep 2023 14:09:55 -0700 From: Andrew Morton To: Stefan Roesch Cc: David Hildenbrand , kernel-team@fb.com, hannes@cmpxchg.org, riel@surriel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v3 1/4] mm/ksm: add "smart" page scanning mode Message-Id: <20230926140955.8b2627711116339af80731f2@linux-foundation.org> In-Reply-To: References: <20230926040939.516161-1-shr@devkernel.io> <20230926040939.516161-2-shr@devkernel.io> 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 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 26 Sep 2023 21:11:56 -0700 (PDT) On Tue, 26 Sep 2023 09:13:31 -0700 Stefan Roesch wrote: > > Thinking about it, what are the cons of just enabling this always and not > > exposing new toggles? Alternatively, we could make this a compile-time option. > > > > In general, LGTM, just curious if we really have to make this configurable. > > > > The only downside I can see is that it might take a longer time for some > pages to be de-duplicated (a new candidate page is added, but its > duplicate is skipped in this round). So it will take longer to > de-duplicate this page. > > I tested with more than one workload, but it might be useful to get some > data with additional workloads. I was thinking of enabling it after one or > two releases. We could keep the tunable and make it default "on"?