Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2485044rdh; Wed, 27 Sep 2023 04:17:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHs68bZjpuJc4PTrdYp0LdKxJaWn4UgHxmYMqPAgdh+gwhDL3LHYk/qNSZTP5obZ2Z2WRCR X-Received: by 2002:a05:6e02:2193:b0:34f:d665:4c2e with SMTP id j19-20020a056e02219300b0034fd6654c2emr2090785ila.30.1695813422025; Wed, 27 Sep 2023 04:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695813421; cv=none; d=google.com; s=arc-20160816; b=Lmfkr2KRIF1we7Nd8KWq1TQVEcjpWu1c1Ud/RfDLJHOZVKYRhbwFvmNP1SnN85gcgw Z4uBIlJ2I/Enk/QoCNi5IwTGo8VXJ6AERvLaeWqQS80ruGxLhgTrVnsmXggN4RrpmfPe xE9gnIYCcS9zVsRz0I+MCWhGuc6gFnzkDOGELDAEGYW8ZbBR9mBym004/Dr1gWwoka7+ S6M9r2lmvWJ2K79bW2D+fo3nU9aP1CubNaaW0pzWBwzt8vTuDRGzTS9AIXll5b8SaOjH F5WGfpqFqBdL6NymbwyZv/QMjee5k4E4TkMEhS30eUqSHRzoZ0+/kOai98ScJFT/K3Yb hqFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=q/ZTPYNPtH4SrQY4cVAUZ68m0I2/9+u1DlsmjX24JFE=; fh=gAT0LmhW99ukHYDGDLrE4J/h9jWDSg8epFRbxAyVpag=; b=q2HgDRJbk9MmbXOwFgwBJYZ6c9OplmFToQ2cN4RWHtK6qZXfN3CAMSe0w569Ir0WHE PzrMzH9yrqBhjvaIKxZ9OY3RcuT3JyOuHm8lfaxTMu1tJqxGWz4Slj9MYZA/kzjXVZQW 43xwcydcCXrMJx1yHTYIb8DZQ1EiHM55pVazfzMWevJ2UQgA/YV1S5lYvJem+xceqPWi ooeGseSCB7cVb3FwSWxxmn8gDZTxvnrCGj08S6CeLtLN8P/cnyk2ZujygaRTPlq7dzHf BqCTeZEICOlcPWW4TUd/OsWpaifDppNMQoeDjmLNutri8eJRnaot/5r5E7SW0TqRccal 7SUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Kv+rO9aT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y63-20020a636442000000b00578e4816c9asi15736764pgb.19.2023.09.27.04.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 04:17:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Kv+rO9aT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 7A842815CD9F; Wed, 27 Sep 2023 02:58:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230513AbjI0J61 (ORCPT + 99 others); Wed, 27 Sep 2023 05:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbjI0J60 (ORCPT ); Wed, 27 Sep 2023 05:58:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77F4B1A5 for ; Wed, 27 Sep 2023 02:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695808658; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q/ZTPYNPtH4SrQY4cVAUZ68m0I2/9+u1DlsmjX24JFE=; b=Kv+rO9aTmZ0kMfkFTXnhbSJumu2fEjBYuObJzrWJBFdMr7aspGm557TRAkEExBAooJ7Td6 Rqt2ZSj6L9o4zjRyxqeyE5G1eNy7FuZJ2g3ii/5hj8jiEioDmWw9/zupbfS8/tBOfoVY2Y /swpGxyQpOghkWEX8kh7LiehyG//Wms= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-249-gF7Fsc1ZPo-5y7O2_0NWXA-1; Wed, 27 Sep 2023 05:57:36 -0400 X-MC-Unique: gF7Fsc1ZPo-5y7O2_0NWXA-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-3233a13b47eso2326291f8f.1 for ; Wed, 27 Sep 2023 02:57:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695808656; x=1696413456; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=q/ZTPYNPtH4SrQY4cVAUZ68m0I2/9+u1DlsmjX24JFE=; b=o9fM0epoYUpyYhZtPQlgvqxX8EjQMqh9hUSWHBiUwigUH7HtjBcrLtzJxSEFFjEiIt IKGTIE9cWn11R2c/lEqOkSjavaeRKxv5yn+nCMt6PW53GEbbmaN3XIzhxFNcHu79KkCq NQmRmsiiuL21hgq4LIKPo1aFiuvJH1dTJTVSiMT9jTn9z03FToKZdkx25I/06z93GEbx hjRIzv3knU3WQfDXIYizUXN+beeO0Wk028Ot6strc0rKlp/CEnqENGFuFuQg1YnYiEp0 THG4FAXDA8hauVbNGyn+PELpeDcvsx656TG+4TmAZ9dRTi5ofetsO+dRCwrdVOFJO5If xnEg== X-Gm-Message-State: AOJu0YzasI5LO5B2B109Un/2tjkKLbQriE0Cs0ypWtU8F+eZdAU46t18 UmHQqVioP1ggoYTx3C0tC97qWZyFGBRk8teqaAOgbwGB+PAdOBMnqH6MWUG9UEMN2YoCYKPN4pT nfUu2Bt46Z8Einl4njws1Emub X-Received: by 2002:adf:fc0a:0:b0:31c:7001:3873 with SMTP id i10-20020adffc0a000000b0031c70013873mr1222264wrr.60.1695808655807; Wed, 27 Sep 2023 02:57:35 -0700 (PDT) X-Received: by 2002:adf:fc0a:0:b0:31c:7001:3873 with SMTP id i10-20020adffc0a000000b0031c70013873mr1222248wrr.60.1695808655379; Wed, 27 Sep 2023 02:57:35 -0700 (PDT) Received: from ?IPV6:2003:cb:c749:6900:3a06:bd5:2f7b:e6eb? (p200300cbc74969003a060bd52f7be6eb.dip0.t-ipconnect.de. [2003:cb:c749:6900:3a06:bd5:2f7b:e6eb]) by smtp.gmail.com with ESMTPSA id m4-20020adff384000000b00321673de0d7sm1385747wro.25.2023.09.27.02.57.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Sep 2023 02:57:34 -0700 (PDT) Message-ID: Date: Wed, 27 Sep 2023 11:57:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v3 1/4] mm/ksm: add "smart" page scanning mode To: Stefan Roesch , Andrew Morton Cc: kernel-team@fb.com, hannes@cmpxchg.org, riel@surriel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <20230926040939.516161-1-shr@devkernel.io> <20230926040939.516161-2-shr@devkernel.io> <20230926140955.8b2627711116339af80731f2@linux-foundation.org> Content-Language: en-US From: David Hildenbrand Organization: Red Hat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIMWL_WL_HIGH,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 02:58:43 -0700 (PDT) On 27.09.23 02:39, Stefan Roesch wrote: > > Andrew Morton writes: > >> 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"? > > Sounds good to me > +1 Reviewed-by: David Hildenbrand -- Cheers, David / dhildenb