Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1015273pxp; Thu, 17 Mar 2022 00:27:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg5v43/1gqv7tk/bGC+qG3WG6rNqIcga5Be/5GfIMiOjzETuz6tpL2l08H2te8fk+E73GN X-Received: by 2002:a17:903:1cf:b0:152:338:adb0 with SMTP id e15-20020a17090301cf00b001520338adb0mr3593948plh.130.1647502049257; Thu, 17 Mar 2022 00:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647502049; cv=none; d=google.com; s=arc-20160816; b=YLM1kRY17PZvDKTEAtN+xwh3prkvWdsuEKJL5WQqoYX5+rCo+GH8gDrl/lfjhz/sWc jmm0VePGOkHyOM96ojKfGJI+Ovc47koLFAKAsgO2+fmLizQiPyjvnCbXpWFJSUBqvkUC 1Y93jB8LhYPVJQqtGKLLSYHwDwNvRPyKwV6CyNyxUN2eZ6HwRECN04FIUA7AOUeLN0RE c7aF/ptPo/8A6OPucBaAFZNWjWC2+w+BVnCVwRernBYMXrT5TFD4MlL4KeMO4MyOVZ91 DB0pvO+D3QMMKcrNzaR2kQgtTyd5Oi31ee+sUbUp2SVfzKsTHQgVhoG2sUhj8YgjWMV+ o17A== 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:references:cc:to:subject :reply-to:from; bh=7I9Q8i7cD0KuS6HKnzAEhDXc4FiT0W4hS1AH/26vXyU=; b=Lx/7RKrXHv0aC22JWNU1ZNhoBYYWYrLQrZoKpe6lfaKfJF1Kx7n1T8+AF2YLA6VWKi BLk+W+TWyalOHo+jAyDtZDUa7appcjLFgflQ//dMTCI7UQKVg2xXqJPMR2uXNC4jCkWd /ZDpsJrLAEemz8d8NvKl9kWomUHswzrRLX05VtNGHbwNsrAheq6N43Zfb5yaCYWHQZUH prAMOVEyZSTu5+UPE6b7OFhoZB7yht0o7kB6TA5OE5yupAutKKzLmW5bXcHBpGhVD8Id AXaBWdXtQffQ/Ze5qydOzxhXHNj57MeTb/QKWRCoumeVpcHpgT5cMmjoVZjcFPlyVDV5 7Y6w== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a056a000b4600b004f7918a1e94si3930206pfo.362.2022.03.17.00.27.16; Thu, 17 Mar 2022 00:27:29 -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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230114AbiCQHEi (ORCPT + 99 others); Thu, 17 Mar 2022 03:04:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229998AbiCQHEe (ORCPT ); Thu, 17 Mar 2022 03:04:34 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D35407520A for ; Thu, 17 Mar 2022 00:03:16 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=xhao@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0V7QLPIa_1647500592; Received: from B-X3VXMD6M-2058.local(mailfrom:xhao@linux.alibaba.com fp:SMTPD_---0V7QLPIa_1647500592) by smtp.aliyun-inc.com(127.0.0.1); Thu, 17 Mar 2022 15:03:13 +0800 From: Xin Hao Reply-To: xhao@linux.alibaba.com Subject: Re: [RFC PATCH V1 0/3] mm/damon: Add CMA minotor support To: David Hildenbrand , sj@kernel.org Cc: rongwei.wang@linux.alibaba.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Baolin Wang References: Message-ID: <6e6ef9fa-3916-3449-954d-efd63a959019@linux.alibaba.com> Date: Thu, 17 Mar 2022 15:03:11 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 Hi David, On 3/16/22 11:09 PM, David Hildenbrand wrote: > On 15.03.22 17:37, Xin Hao wrote: > > s/minotor/monitor/ Thanks,  i will fix it. > >> The purpose of these patches is to add CMA memory monitoring function. >> In some memory tight scenarios, it will be a good choice to release more >> memory by monitoring the CMA memory. > I'm sorry, but it's hard to figure out what the target use case should > be. Who will release CMA memory and how? Who will monitor that? What are > the "some memory tight scenarios"? What's the overall design goal? I may not be describing exactly what  i mean,My intention is to find out how much of the reserved CMA space is actually used and which is unused, For those that are not used, I understand that they can be released by cma_release(). Of course, This is just a little personal thought that I think is helpful for saving memory. > -- Best Regards! Xin Hao