Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2784240rdb; Mon, 5 Feb 2024 18:57:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyT5AmorwUe1krrL0d8OG1S3TXaa9yfFN9+McQOVPAxNTp7FNwjfm5kf9jfsaX1nUV6MwK X-Received: by 2002:a05:6214:21ef:b0:68c:8ebd:6593 with SMTP id p15-20020a05621421ef00b0068c8ebd6593mr815156qvj.14.1707188226816; Mon, 05 Feb 2024 18:57:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707188226; cv=pass; d=google.com; s=arc-20160816; b=EpcyIFUvQVTnxKN70iYaM0mJRUV76KuO4csV9LHxs3xzd0kEuS8k+xjiL86d4wPTCs ndEQTJFipOv1LcnLQodzhgqSAMwWZ3QyU5qzPeFT6gs1eyYFjPpBIA0aEUoV8fnBpqIl hnslgjKQrt0xhh68FpNcywnIffGuTi1BqCRm/h0o9a/lcJoJsKbQBIOCL8rnc1sTePDf oJZNq9+uVgr2S4IVnj+3u/QzGdhi+acEcOlZ/jggZB6XT/vihLfff64nHqnr2NalSt17 ISoSjSDMoHWUtxBchNeCIjxFbMooLp/d4vgaJkg6ScRpKo7M69l+orOs4N0w/HwWCniN meGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7QBo0swOcSJxdQpLdDbud/KPHSgsa8hass03pqwHsyA=; fh=340NZm7/WbUqD7Mn3bqUfSBf8Ge92j6QRQkBhAzx5Ns=; b=0hMgBJNyX/QGiGbmDWpOmMVrbWioXDyRGDOwluBHNTMkkOoFBzQ4RqUclBokKBsIOK 4NLw3wyv0JTgsIbqts1gHCNxYc/fL6TK1+iU6gUcWgahSxwES0dUpoM5EHB+7S4GoMe/ pL1oa0Y0mpQP+m78Dm3e/pF2TuDgoOhtdoILM3ld+XQymlBB0peK1UnVqe6OwM1VuvnX RuSKQ6e6+LqmrP8kmuAr9gmVgfp0JeqQ2Ol8TBH4onOLcHFWY5YoZFLBR1l7ALeJhFhW Kj2fvnrHnz2tM97oNu14Ds6m5fUGcRKNwFvXdSGqDckzYFPSNxVZmFIhxEmT29yXNkyl BHiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ntZ8TfnI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54227-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54227-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXdOpZa4QTsBET/VMyRKdf/LyvNmAtmkNxoxSOtu/kx2209VPieZ1I5shr1U0V3E08jul8oIQJeW996QXgfhqDRKYCEuk7QQbdt79HOGw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gv6-20020a056214262600b0068cb0e2e9aesi945438qvb.580.2024.02.05.18.57.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 18:57:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54227-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ntZ8TfnI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54227-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54227-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8EF531C2210B for ; Tue, 6 Feb 2024 02:57:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F7346EB71; Tue, 6 Feb 2024 02:57:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ntZ8TfnI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95F6A1E87E; Tue, 6 Feb 2024 02:57:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707188221; cv=none; b=OYhE8Vj6rW8BoNJ5OuxpxBNKQ8Tz4goISZvMb2Txs+shkQzuAxvQ26LrPKZPjJXgs88wR0UJTyx0Zs1/DKRUVb5bsF7gJ01c1is5xUF4jsCOsgtgLK4UbKrkiEJYSx436wD0ev65s8az6idT+EENbDQYrym20/3dmdDhRlCB0m0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707188221; c=relaxed/simple; bh=HmtNX7BbgjVirQJOWQ5+9UqPhN2PgLjMAc9W23kPAGg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IFoUC1NB+aFsB2DzgcTV14zp3MhGItH5NkmQqHCx1wG3IbQNxfHp15oMETpcJO9umL8q6CceAf1cyrg7LCsmvbKy4y1Qror0YuiHHQncyWfrjEkLndCwf5NJnL/HnPOK+VQJJa78TAlhr1j+p4Aajq4+KEvYG+bxmZ+nxc2xKXI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ntZ8TfnI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 871AEC433C7; Tue, 6 Feb 2024 02:57:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707188221; bh=HmtNX7BbgjVirQJOWQ5+9UqPhN2PgLjMAc9W23kPAGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ntZ8TfnIyqeLdw9lHRGoflP8j9Cmq15Ar3I9cWYWl5PHrhn8ZjhVmB2bTIdwIlby/ vdF3xBbqUIy59dcd21K8BrhHr+69chx1qc3W/b2/js/LAIgeshG88kHFmkKzkkz2MW Ce3gg5Whv3WEkI1H6SgxNwsx5Z0MI3JPdt94c5wBTuE0ALuwE4LO5iQUdmnIQ3TET1 Czz2m7bwwGu3clopjmL+JtMZq97yGWJpEy49DzlfJc9sz6srK1XJ23UI6PJQKEda+4 62hRdjER15h+TII6l1orz6Lxq+nGxo2z4uKD7/MGS2zu6r6rKRHsVx1wReCgHQIXIC ko6fADKzdamGQ== From: SeongJae Park To: cuiyangpei Cc: SeongJae Park , akpm@linux-foundation.org, damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, xiongping1@xiaomi.com Subject: Re: [PATCH 1/2] mm/damon/sysfs: Implement recording feature Date: Mon, 5 Feb 2024 18:56:59 -0800 Message-Id: <20240206025659.203155-1-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240129121316.GA9706@cuiyangpei> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Cuiyangpei, On Mon, 29 Jan 2024 20:13:16 +0800 cuiyangpei wrote: > On Sun, Jan 28, 2024 at 08:28:04AM -0800, SeongJae Park wrote: > > On Sun, 28 Jan 2024 17:13:00 +0800 cuiyangpei wrote: > > > > > On Fri, Jan 26, 2024 at 12:04:54AM -0800, SeongJae Park wrote: > > [...] > > > > So, 'update_schemes_tried_regions' command is firstly handled by > > > > 'damon_sysfs_cmd_request_callback()', which is registered as > > > > after_wmarks_check() and after_aggregation() callback. Hence > > > > 'update_schemes_tried_regions' command is still effectively working in > > > > aggregation interval granularity. I think this is what you found, right? > > > > > > > Yes. > > > > If I'm not wrongly understanding your point, I think the concern is valid. I > > > > think we should make it works in sampling interval granularity. I will try to > > > > make so. Would that work for your use case? > > > > > > > It's much better than working in aggregation interval. > > > > Thank you for confirming. I will start working on this. > > > > Great, looking forward to seeing the progress. Just sent a patch[1] for this. I also updated DAMON user-space tool, damo, to use this improvement[2]. I hope that to help others who using DAMON with their own tool to easily understand how they can get the improvement from this patch. Also, please feel free to ask any questions and/or help. [1] https://lore.kernel.org/r/20240206025158.203097-1-sj@kernel.org [2] https://github.com/awslabs/damo/commit/75af3a1c0b3e79cd3207f0f8df5b5ac39f887450 Thanks, SJ [...]