From mboxrd@z Thu Jan 1 00:00:00 1970 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 979354D107 for ; Wed, 20 Dec 2023 22:49:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="Up0pzwUq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63E2CC433C9; Wed, 20 Dec 2023 22:49:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1703112562; bh=5N9o3iTU2A+BSMGF5Y3Bj5SZlPVNVmlqpYu5Af3t0kQ=; h=Date:To:From:Subject:From; b=Up0pzwUqaSdiInc2pt+u/fYgzXz5go+XFkqSq9i9+aFYAZ5WxEs7WHAxaVICFI8kJ eO4cZKE5wzCXBJ4pdkNUOFywwaVSv0ODZ59wwNqtHqvRjgfYJyVs6aWHiuDuPNE7BU MqLCdrF3S8msb6wO8zBIoM3MqcqhS041qvcCbCBY= Date: Wed, 20 Dec 2023 14:49:21 -0800 To: mm-commits@vger.kernel.org,shuah@kernel.org,sj@kernel.org,akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] selftests-damon-add-a-test-for-update_schemes_tried_regions-sysfs-command.patch removed from -mm tree Message-Id: <20231220224922.63E2CC433C9@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: selftests/damon: add a test for update_schemes_tried_regions sysfs command has been removed from the -mm tree. Its filename was selftests-damon-add-a-test-for-update_schemes_tried_regions-sysfs-command.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: SeongJae Park Subject: selftests/damon: add a test for update_schemes_tried_regions sysfs command Date: Tue, 12 Dec 2023 19:48:09 +0000 Add a selftest for verifying the accuracy of DAMON's access monitoring functionality. The test starts a program of artificial access pattern, monitor the access pattern using DAMON, and check if DAMON finds expected amount of hot data region (working set size) with only acceptable error rate. Note that the acceptable error rate is set with only naive assumptions and small number of tests. Hence failures of the test may not always mean DAMON is broken. Rather than that, those could be a signal to better understand the real accuracy level of DAMON in wider environments. Based on further finding, we could optimize DAMON or adjust the expectation of the test. Link: https://lkml.kernel.org/r/20231212194810.54457-5-sj@kernel.org Signed-off-by: SeongJae Park Cc: Shuah Khan Signed-off-by: Andrew Morton --- tools/testing/selftests/damon/Makefile | 2 tools/testing/selftests/damon/access_memory.c | 41 +++++++ tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_wss_estimation.py | 55 ++++++++++ 3 files changed, 98 insertions(+) --- /dev/null +++ a/tools/testing/selftests/damon/access_memory.c @@ -0,0 +1,41 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Artificial memory access program for testing DAMON. + */ + +#include +#include +#include +#include + +int main(int argc, char *argv[]) +{ + char **regions; + clock_t start_clock; + int nr_regions; + int sz_region; + int access_time_ms; + int i; + + if (argc != 4) { + printf("Usage: %s