OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
From: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
To: khorenko@virtuozzo.com
Cc: devel@openvz.org
Subject: [Devel] [PATCH vz10 3/3] selftests: kvm: raise the timeout the suite gives each test
Date: Tue,  1 Sep 2026 01:36:24 +0300	[thread overview]
Message-ID: <20260831223631.1637488-3-eva.kurchatova@virtuozzo.com> (raw)
In-Reply-To: <20260831223631.1637488-1-eva.kurchatova@virtuozzo.com>

kvm/settings asks for 120 seconds per test, which mmu_stress_test cannot
meet on any machine. It writes a 128gb guest address space by default,
and the size is settable only on the command line, which the kselftest
runner does not pass:

  not ok 1 selftests: kvm: mmu_stress_test # TIMEOUT 300 seconds

It is not stuck, it is long, and how long depends on how many vCPUs it
gets, which is 3/4 of the cpus of the machine. Measured to completion,
all passing:

  40 cpus, 30 vCPUs    171s
   4 cpus,  3 vCPUs    436s
   2 cpus,  1 vCPU    1094s

Ask for 1800 seconds, which leaves room above the slowest of those for a
machine that is also busy. The cost is that the limit applies to every
test in the suite, so a test that really does hang now takes that long
to be killed; nothing else in the suite runs for more than a few tens of
seconds today.

A timeout given on the runner command line replaces this value
entirely, so it has to be at least as large.

https://virtuozzo.atlassian.net/browse/VSTOR-139672
Feature: fix vz selftests
Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
---
 tools/testing/selftests/kvm/settings | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/kvm/settings b/tools/testing/selftests/kvm/settings
index 6091b45d226b..abc5648b59ab 100644
--- a/tools/testing/selftests/kvm/settings
+++ b/tools/testing/selftests/kvm/settings
@@ -1 +1 @@
-timeout=120
+timeout=1800
-- 
2.55.0

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

      parent reply	other threads:[~2026-08-31 22:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31 22:36 [Devel] [PATCH vz10 1/3] ms/KVM: selftests: Forcefully override ARCH from x86_64 to x86 Eva Kurchatova
2026-08-31 22:36 ` [Devel] [PATCH vz10 2/3] selftests: cgroup: give the O_TMPFILE open in get_temp_fd() a mode Eva Kurchatova
2026-08-31 22:36 ` Eva Kurchatova [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260831223631.1637488-3-eva.kurchatova@virtuozzo.com \
    --to=eva.kurchatova@virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=khorenko@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox