Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp632721pxb; Mon, 7 Feb 2022 21:33:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJMS1gidG6qn6q4htlSvE0/h3MOJzxK367UewpCIfPN/M/gqkFY8LTKCYRNuizH4tF7qgv X-Received: by 2002:a63:2c8c:: with SMTP id s134mr2242850pgs.390.1644298393217; Mon, 07 Feb 2022 21:33:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644298393; cv=none; d=google.com; s=arc-20160816; b=bATXvhqbJG78nb4QLdCzPirtULu3LQDS6YG+iADvzw1yXK3RkYVKDEk1Puo0ZhNovQ 4hn21cg5ZDU/0XPIQL3gHojURnHfjehsxBx1RV4zdvrIm+Kjo8yvRYZtXpI9vHEXe4jq HhJ8DI9klwvPV9mLu3I0iyFULia4RHbOQAk0L/rJ923dOL6l0sg22soua1ka46zppIEW NJhNnARdO79UyAYOhU8xudDpnbGdkDW2wAk2mkgivbw6Du/D57+P4hVsQDp7IiN07hNR 8ef/WjDDT5jpEblIfuY50SnVyNx0IE1pelNO79WDoCxdjMwV6oROiS6f74xTx6ze51T1 hRwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xdXo3UNhhAZQEWfXFXwJRGDag8ngLp+DN0iBJUTJzWI=; b=fWGT6LX+evMo0JZMBqWxMHghx98T0A14OF9H/XnhQEdBJ4UGTU+Ov5hwna1EvQNu1C pUnjMh1IRBcwGGzjYia/SvFuymQNnfP55W7ISBZ1GyPIqAiNsaW2BUMloRn+pOCJjHiZ g3gRVzIhkZm5QtbVU9Ng4h9M5x9P9q23nZf9bdV/g+sit7mSaMkpmLzfdic5lttiOY6F WYpug2xsC0e8zwGORZFY0ttKcRq8qxMaECpB4x6vXzmdlMYP4uT5QMENCxxkjN5QDShz x9q8mkO7BS/jIrWColx376/ZLHTZzF1P31H53FE0v9ktZJauyQNOAlD1+lcatexwYyzy wYUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="oR/CVOlj"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k15si14831542pga.245.2022.02.07.21.33.00; Mon, 07 Feb 2022 21:33:13 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b="oR/CVOlj"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344566AbiBGIQs (ORCPT + 99 others); Mon, 7 Feb 2022 03:16:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244831AbiBGIQd (ORCPT ); Mon, 7 Feb 2022 03:16:33 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8616C043181 for ; Mon, 7 Feb 2022 00:16:32 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id 4B7AECE0EDB for ; Mon, 7 Feb 2022 08:16:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15B42C004E1; Mon, 7 Feb 2022 08:16:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644221787; bh=Kdxt9TG6w4mznLHfPVGseD6vMZkNjtF5T6/d0pfwnqw=; h=From:To:Cc:Subject:Date:In-Reply-To:From; b=oR/CVOljIOBGcSA1HZSzszU3jy5etyzW/C2sR8e6qItzw0s1DGNsrFmgDsY8Dq6AW SXvRTPOvoes2IKsG1ZFNYXApkr+k19WDWTz7qamlRjHETmS+GvqIrWW4K9+aZTB0U1 uu0oFDRmnPUcuot6Rzl99A8xPKWOLojPxWaJlOgOz0LLndc7kvF/Ln1upevFaRB0K2 dv2Ro/VK1Dok48c9CYaPtHuDOpUPQDqFwMDGcJ43JB9ax4wptBT402FqMXS+ZDrwpp rOskMr/ipInl9t3nGDmvgQUQ2fIUOj1vPKw47jUASAhUAaiUfgxGQ4045aN7lsjDQk sbfPa2tBO607g== From: SeongJae Park To: Pedro Gomes Cc: SeongJae Park , Steven Rostedt , Ingo Molnar , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/damon: Add option to monitor only writes Date: Mon, 7 Feb 2022 08:16:25 +0000 Message-Id: <20220207081625.3579-1-sj@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Fri, 4 Feb 2022 12:11:44 -0300 Pedro Gomes wrote: > On Thu, Feb 3, 2022 at 10:39 AM SeongJae Park wrote: > > > I think this would be better to be implemented as another monitoring primitive > > based on the virtual address space monitoring primitives, e.g., vaddr-writes? > > Then the implementation would be simpler and changes to other files will be > > minimized. For the user space interface, we could use a prefix to target_ids > > debugfs file. For example, > > > > # echo "vaddr-writes $(pidof workload)" > $debugfs/damon/target_ids > > I will do that. Thanks! > > > > This patch also adds the actions mergeable and unmergeable to damos schemes. > > > These actions are used by KSM as explained in [1]. > > > > Please do that in a separate patch, and also update the document > > (Documentation/admin-guide/mm/damon/usage.rst). And, what's the expected usage > > of the action and benefits? > > The idea is to use this action to all areas that are not written too frequently, > this way KSM can save more memory without too much overhead. > But I have to test it better and collect some data to see if it really > makes sense, > perhaps it is better to leave this patch for later. > I would like to know your opinion on this, do you think it makes sense? Yes, that idea makes sense to me :) Thanks, SJ > > > -- > Atenciosamente, > Pedro Demarchi Gomes.