From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (unknown [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id CC75A80266 for ; Mon, 31 Aug 2026 23:14:52 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 67VNDW6h031311; Tue, 1 Sep 2026 02:13:33 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 67VNDW6h031311 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="bsb1wGXk" Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 67VNDV87031303 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 1 Sep 2026 02:13:31 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 67VNDV87031303 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-484362cb000so222228f8f.0 for ; Mon, 31 Aug 2026 16:13:31 -0700 (PDT) X-Gm-Message-State: AFuF++nWy0WiHHN7i0u+75TYfnq+V0D5e+01a7WMF+7kIhDsm1SR7Ovx iE1fji0ae6IA3STetwMmxu+tEB/hNP4fURRkKGYdHvnTtWJN9wb70dShGYWxsl9cheZ6Z9tuIf5 q76y7bk9a9yma/HDhcBRwHDmB84gY4cfRUFbRAcjNbBD+JpU+9Ge/EA== X-Gm-Gg: AYBFou3TPSGKSYmB1c85ca5kNM1hHFKmGtPrN6Nh0g47+rls/nRolt1axzN45QCgnkZ M+vZCw+/3O6xOvuJr9fx2T1XUgsn3D3GwUqGn3u4tFF3zM8OPRQsyyGD1uAwlr3H9ztXmziWT8j NAkGdsuFw1CIRXpf4KTMiOlGdCkrdKEVuMjg+DQjvvPaHyFX/6C6SMfA1TMjNmVrnUv2UsQ3MtF NKAM1DncnxkiNmFZUvdNMOoXBlXwVq+P3CGInTWLDScthGRojQWBPEe9PAU011qDDMCuizBQFKX amjAjTvaYJIfRLSfy0+Etqpt1f4gJnFhL9hBV4yaxUYV9UjEv2i0JUB41VpY1g7TDSn43/+O/IW 2BiavD3pXfPDuIRAW2MQwJgr3 X-Received: by 2002:a05:6000:41c2:b0:482:dd86:348 with SMTP id ffacd0b85a97d-48441fc951amr2675470f8f.4.1788218010735; Mon, 31 Aug 2026 16:13:30 -0700 (PDT) X-Received: by 2002:a05:6000:41c2:b0:482:dd86:348 with SMTP id ffacd0b85a97d-48441fc951amr2675400f8f.4.1788218010295; Mon, 31 Aug 2026 16:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1788218010; cv=none; d=google.com; s=arc-20260327; b=REEjQ4wVo3VOp5iRmEl9bmC8dJ+PllfdAfPpB1WzD0+I7QJ9tdyuCmRWb8lyOEm4MR 2hOIb79f2l7NZx8P4gQAnDUUdm3ra9P3UDZS6ow/79o/b2UgR/u3usCr1/He90R3m5cl v7OBESc2yR03nSRfqfyoCkK4ClzgQCbiNErYLArt5h7ySoo4lBfHTMimtMQS7cjEtzno wgOwlxOb53s0cz22z7r/I75z7ePa+NB5m0UU+MLjMCoOezgYekB6hIGK/75XXzlaWqNN eXlLbCz9KiG5MnoEckSSkeo+U/1HnA33H2FnMH1dJpko5mMjufvz9m4vrsy0eQmVtfx1 lyDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=DtzIMlteiRZr1EqF/hefJKzF9HauREHwsYAJfNkQk0o=; fh=WpT6aB7RBAGHZeWZzqAr71yzRFbPTYkPWKsRagLn48Q=; b=D3rG7DN0JNCbTlh9wBu1mY8siH6xwTbaFBDy/5SNo05EQTmLq4tP4qbuuixBYXdVwX Ni/OFoqnR/jnthX8en4QQ7g/ZD0+PdUitiCWFgW5x18XmmMFdBWVYc7J6wEi22L2IDtQ MCf4gjksDEAWqDzBbpxFpbZdmNSCgqTLAFO/Ojt1Pd5sIoLeUVMy1vPfsxWxT6yXMBrr 0WJfLLSEMGAJMBn55/FpTK4SoMQb+yIiBxHE+I6AOwkv5IuqtDfuD0cLL+C06Jj999mx 5G4X6A4ZyoecId/zfs6bmHHOhqUCmBEPzm+hpPuv6X9I3Av0fnGKOp4iVnOxUaVmniVS vS+Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=bsb1wGXk; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-48442d71d91si937413f8f.161.2026.08.31.16.13.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 16:13:30 -0700 (PDT) Received-SPF: pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=bsb1wGXk; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=DtzIMlteiRZr1EqF/hefJKzF9HauREHwsYAJfNkQk0o=; b=bsb1wGXkvagw oAMc68nJReMqUCiQ5zvTFy5ETPYw6Qw6BJvmM9nLkz3mLAqWHqs2XOYWwN59uBFaOkcwtYyefaTfw TVHZlio2PA8f+lL/D0dSwx+QssouIJ2J6JD4FZ2Dsr+aEx1EJrrG7/VtAIPaXTgwqO9n6QJx1ha61 aEa2gYzcFBnWZ0Pz1bryB7bkEmoDzDVH77jDs2l8H/l/2mayZILU+rfCZvZP5uAaMYA+/35v6n1vj Eog9Mc58Rj5qWuEEag3LkjBsfPEnElD8HtfA5rKvLfuURLzQTM5ClT5uNXUP56aPIigaWIQxFjVMn /Qg0bbm4u8xHw5j1jyY5NA==; Received: from ch-vpn.virtuozzo.com ([130.117.225.6] helo=LekKit-T14) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1x1B9b-00ADGd-03; Tue, 01 Sep 2026 01:13:20 +0200 From: Eva Kurchatova To: khorenko@virtuozzo.com Date: Tue, 1 Sep 2026 02:13:25 +0300 Message-ID: <20260831231328.1644755-1-eva.kurchatova@virtuozzo.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH vz10 v2 1/2] ms/selftests/damon/damon_nr_regions: set ops update for merge results check to 100ms X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org From: SeongJae Park damon_nr_regions.py updates max_nr_regions to a number smaller than expected number of real regions and confirms DAMON respect the harsh limit. To give time for DAMON to make changes for the regions, 3 aggregation intervals (300 milliseconds) are given. The internal mechanism works with not only the max_nr_regions, but also sz_limit, though. It avoids merging region if that casn make region of size larger than sz_limit. In the test, sz_limit is set too small to achive the new max_nr_regions, unless it is updated for the new min_nr_regions. But the update is done only once per operations set update interval, which is one second by default. Hence, the test randomly incurs false positive failures. Fix it by setting the ops interval same to aggregation interval, to make sure sz_limit is updated by the time of the check. Link: https://lkml.kernel.org/r/20250225222333.505646-3-sj@kernel.org Fixes: 8bf890c81612 ("selftests/damon/damon_nr_regions: test online-tuned max_nr_regions") Signed-off-by: SeongJae Park Cc: Shuah Khan Cc: Signed-off-by: Andrew Morton (cherry picked from commit 695469c07a65547acb6e229b3fdf6aaa881817e3) https://virtuozzo.atlassian.net/browse/VSTOR-132453 Feature: fix selftests Signed-off-by: Eva Kurchatova --- tools/testing/selftests/damon/damon_nr_regions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/damon/damon_nr_regions.py b/tools/testing/selftests/damon/damon_nr_regions.py index ddd258da6946..2ed12281cea2 100755 --- a/tools/testing/selftests/damon/damon_nr_regions.py +++ b/tools/testing/selftests/damon/damon_nr_regions.py @@ -113,6 +113,7 @@ def main(): attrs = kdamonds.kdamonds[0].contexts[0].monitoring_attrs attrs.min_nr_regions = 3 attrs.max_nr_regions = 7 + attrs.update_us = 100000 err = kdamonds.kdamonds[0].commit() if err is not None: proc.terminate() -- 2.55.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel