Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp181230rwi; Tue, 18 Oct 2022 16:06:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5iyh8bgxTc/UwzHL0TyHA6+jhVw0E1Rz+DiK0Lpr+Ed8GLLd25H1q9gwPt9FoIE023OJcm X-Received: by 2002:a17:906:ef8b:b0:791:9980:b7b9 with SMTP id ze11-20020a170906ef8b00b007919980b7b9mr4350018ejb.636.1666134363921; Tue, 18 Oct 2022 16:06:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666134363; cv=none; d=google.com; s=arc-20160816; b=fwmznvBreK4gsNWsce4J/BVzHq9ibcnuG16qNq1ff6qGdvHo2bn+CspI0TpKsXtJN6 NA6TZmHlt5Idf2MksCBtsVPLrkt1tGc7HdBWG5+Sv1XrHpzBsrcGCaZC81XHbvHBTB9M qEJflZcQEPxJQTEvc1snUiFJf8FfjLTYPBKodUz6d2gepxGHR4qI54rTtyU2yKYaNpko uzYpl0tscUMKedy8QVf8HexcKzxGlCpa8F9nhS7kRfLxclU7HW0Lh+khwhqijpozSN2X bf66EhTTJkNfJfy1lU0+p/U/BUxLVFZsc4U5G35mKxxielDGbVi8ajQQE+Rq0eFhwU5Q W6pg== 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=O4+WHcui1muOaNmQ9Od4il6vBqX7LULZhq/r+qaUImo=; b=mPUhb9yT4P/FUOdLxqMfAxbsxbdtidscA37EScVdm/L9shO4QvC4+Kzn0S15PqTcOB b1e8wd+XM8FaWz+dG1covAagGUX2Jl+onc5kWWLBr7kS7jYrRdnAblfb3wXeNoHcgGw4 aJAa9JUq7l7ErvkPIqf+zBlwgonH3oMuz13/TinINVgkVpw9Xwtsc0gUR7yL/D/beUwR uPfAw9MUDZ2uY1l3Dkle+CHAEFJhj0PX74qodKWHEXkU2/C1X6juf+v/bM3oiWV1X+PX dpUtVu62dNKXyPH+mqN8jFvKLWZXKuPGhHOLSbErCBHeLgrTe2QUwN8uDHfRYGxMiMiJ i1zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="kuIsBb/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh20-20020a1709076e9400b0078ddffd9106si14201041ejc.932.2022.10.18.16.05.37; Tue, 18 Oct 2022 16:06:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="kuIsBb/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229752AbiJRWyM (ORCPT + 99 others); Tue, 18 Oct 2022 18:54:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbiJRWyJ (ORCPT ); Tue, 18 Oct 2022 18:54:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DA6BAC4B0 for ; Tue, 18 Oct 2022 15:54:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D8B4A61713 for ; Tue, 18 Oct 2022 22:54:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E655FC433D7; Tue, 18 Oct 2022 22:54:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1666133648; bh=62ein6zk//FYRqXxpk4NDw+VTD3FYrLTczKhbyNmhTA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kuIsBb/jJu+Rb0wN62bc6xOuq8iX6x/+dLOeQscUmPiKFEfN6wELKwD3WtRjcpVbD o1GKVuOj7os7ZJLQpjdXhB/GIczm6coNTWBqodL8slCZlHzaMW9CXDfq2LwsXMfCIW uXnMVPTPd/W+6aejFjGP85YFK6G/gY1hSucfx4LM= Date: Tue, 18 Oct 2022 15:54:07 -0700 From: Andrew Morton To: xu xin Cc: david@redhat.com, imbrenda@linux.ibm.com, jiang.xuexin@zte.com.cn, linux-kernel@vger.kernel.org, linux-mm@kvack.org, ran.xiaokai@zte.com.cn, xu.xin16@zte.com.cn, yang.yang29@zte.com.cn Subject: Re: [PATCH v3 0/5] ksm: support tracking KSM-placed zero-pages Message-Id: <20221018155407.41c993924ec09a64ae966d50@linux-foundation.org> In-Reply-To: <20221018090022.373574-1-xu.xin16@zte.com.cn> References: <20221017165541.6e2d3cebdc1ba13861ea4b2b@linux-foundation.org> <20221018090022.373574-1-xu.xin16@zte.com.cn> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Oct 2022 09:00:22 +0000 xu xin wrote: > >A full description of the real-world end-user operational benefits of > >these changes would help, please. > > > > The core idea of this patch set is to enable users to perceive the number of any > pages merged by KSM, regardless of whether use_zero_page switch has been turned > on, so that users can know how much free memory increase is really due to their > madvise(MERGEABLE) actions. OK, thanks. > The motivation for me to do this is that when I do > an application optimization of KSM on embedded Linux for 5G platform, I find > that ksm_merging_pages of some process becomes very small(but used to be large), > which led me to think that there was any problem with the application KSM-madvise > strategy, but in fact, it was only because use_zero_pages is on. Please expand on the above motivation and experience, and include it in the [0/n] changelog. But let's leave it a few days to see if there's additional reviewer input.