Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18552176rwd; Tue, 27 Jun 2023 19:47:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ52orjzwgDS0aHdI9rcraXY3UcDpad1ilVABfvIgAHp5NyXw+mSDPMDfD+UBCNSrsOlO4DL X-Received: by 2002:a17:907:96ab:b0:992:5cda:69f1 with SMTP id hd43-20020a17090796ab00b009925cda69f1mr1202569ejc.61.1687920420678; Tue, 27 Jun 2023 19:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687920420; cv=none; d=google.com; s=arc-20160816; b=DWoVGP+G6ojb15GbbTAmr6VWVnTNv7IV6Bku4iNu+T9SkfHVb7pAEdNKbT1BLXoMD7 GIQsnoC9Xo0BAv5JEibe2H27a1B4Q9Hlgz0smZDcNd8QMNAIl1ZU4sL/LT1GmUSRjRzg FC79BFCaR2OSxdW4J0Y5753x6vWdBgXxBgpPP7Oiyrl/zZlRLrDqN4F3WzSwWB3dF5zi /yNpbSmUYHryVikxUpZeedVdd9FOCsKIvyA3E09/WZ64m1QjFfZEcrsNIHnQtL762fmd S/XPl1uvleUxkeZ6rt16mqt85d0pr81hIMf6xkzvwMgwNVqdQkjIlOK6gkRsVTr/OQtC 7rXg== 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 :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=CQc17SPLzRjTwAGr1ja5d0JjC/HqzuvDmU2OAIb7yvQ=; fh=hCvO28DYah12pIn0FmQzHhLbr7DLOiYuXT60Zl5RNPE=; b=BCQsq8ytlasmtrs8JlT1xZdXAvL6BIaBs33Ur4UV2k8jwI1D87KcggrTlyOLWzzcfH YpjqKErvZgRIo7VWfn9VD9481cLUi0Sn7b4qDztYcwRMDxETeE1BIih57yf2ron9Zc2M 3SC2FdLrIOY1x0jgr8PLm3vDcEWQjvkDZB9gNivzV4xrQWrjA7wq4Frqt6uoIMnjh4QN WeMbf/99CXquDVqCqoybpDA1Rzlw6hvHQIdJyYaFeqxLIUtf0r2V2kCz35aVErOSp/RG 17GkHmH1aU4ZsAgegae4lfWGT5KGzhM1VesFp05soShTWcCXiuD0SMGCgYM6m58jPAtY TnkQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id os17-20020a170906af7100b0098e19ebc8f4si4362564ejb.678.2023.06.27.19.46.35; Tue, 27 Jun 2023 19:47:00 -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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231366AbjF1CpD (ORCPT + 99 others); Tue, 27 Jun 2023 22:45:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231388AbjF1Cor (ORCPT ); Tue, 27 Jun 2023 22:44:47 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFF43296D for ; Tue, 27 Jun 2023 19:44:37 -0700 (PDT) Received: from kwepemm600003.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QrQnc3x20zMpjM; Wed, 28 Jun 2023 10:41:24 +0800 (CST) Received: from [10.174.179.79] (10.174.179.79) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 28 Jun 2023 10:44:34 +0800 Subject: Re: [PATCH] mm/ksm: delete the redundant ksm_merging_pages interafce in proc To: Andrew Morton CC: , , , References: <20230627133542.2446285-1-sunnanyong@huawei.com> <20230627122201.6e25819493823dfc7cca4741@linux-foundation.org> From: Nanyong Sun Message-ID: <000d6e0d-d4fc-abbf-5764-ab763e5dc8b2@huawei.com> Date: Wed, 28 Jun 2023 10:44:34 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20230627122201.6e25819493823dfc7cca4741@linux-foundation.org> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.79] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 2023/6/28 3:22, Andrew Morton wrote: > On Tue, 27 Jun 2023 21:35:42 +0800 Nanyong Sun wrote: > >> Since the ksm_merging_pages information already included in >> /proc//ksm_stat, we can delete /proc//ksm_merging_pages to >> make the directory more clean, and can save a little bit resources. > Well, this is a non backward compatible change - any userspace > which depends on ksm_merging_pages will break. > > Yes, we could remove this but it will be a lengthy process involving > emitting a "please use ksm_stat instead" message for a few > years before removal. > . This interface was just added last year(Apr 28 2022) in commit 7609385337a4 ("ksm: count ksm merging pages for each process"), it does not have historical baggage. Additionally, as stated in the commit message, this interface is mainly used to query the deduplication effect of the application for the upper application optimization during the development phase, so deleting it would have a very small impact.