From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B2D3CC43334 for ; Tue, 21 Jun 2022 08:25:44 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 773A03C949B for ; Tue, 21 Jun 2022 10:25:41 +0200 (CEST) Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 6C4DB3C21D9 for ; Tue, 21 Jun 2022 10:25:31 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 4BB961A002CF for ; Tue, 21 Jun 2022 10:25:29 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 33EA322068; Tue, 21 Jun 2022 08:25:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1655799929; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=O1zLghUx5jnfgMUOs9tAgHJt14RIRZTti+UayVBVRIQ=; b=X6XyFIJPhOi8X8CRG/aySZrXafBPygvl3nOpl2LUDqXYQNWF8um+XNKePcKyNmSoAdv+1U tyV/YFRZUe7zDjpxHIS+r5BGTOZUgZ2X7613HAbvzvGB1fE0abe1ECpIz9hgxfkwO+vi/x OSggW81WBmIzIFnDfzuOvmU1YCQNAoc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1655799929; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=O1zLghUx5jnfgMUOs9tAgHJt14RIRZTti+UayVBVRIQ=; b=hvO7bfwBVfwR/BoPA8JFhtyxI74mT01ZHgit/5HMKWY/NdwVO94yHSJ1f27TvcNn/oGEd/ 8HPpsjA5jvK/4jBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2116D13A88; Tue, 21 Jun 2022 08:25:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8nxFB3mAsWJ5BAAAMHmgww (envelope-from ); Tue, 21 Jun 2022 08:25:29 +0000 Date: Tue, 21 Jun 2022 10:27:36 +0200 From: Cyril Hrubis To: Jan Stancek Message-ID: References: <2873e7f25ac44d2c103a030bfc5f1d30e0fe80a9.1655795105.git.jstancek@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2873e7f25ac44d2c103a030bfc5f1d30e0fe80a9.1655795105.git.jstancek@redhat.com> X-Virus-Scanned: clamav-milter 0.102.4 at in-3.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH] syscalls/migrate_pages03: restore runtime to 5m X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ltp@lists.linux.it Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Hi! > Arches with large pages have trouble completing all loops in 30s, > restore runtime to 5m. Can we please also exit the test when it's out of runtime? The whole point of runtime is that test inner loop actively checks for remaining runtime so that the runtime is capped. Should be as easy as: diff --git a/testcases/kernel/syscalls/migrate_pages/migrate_pages03.c b/testcases/kernel/syscalls/migrate_pages/migrate_pages03.c index c6afb4cce..2866c96e6 100644 --- a/testcases/kernel/syscalls/migrate_pages/migrate_pages03.c +++ b/testcases/kernel/syscalls/migrate_pages/migrate_pages03.c @@ -127,6 +127,11 @@ static void migrate_test(void) tst_res(TFAIL | TERRNO, "migrate_pages() failed"); return; } + + if (!tst_remaining_runtime()) { + tst_res(TINFO, "Out of runtime, exitting..."); + break; + } } SAFE_SETEUID(0); @@ -134,6 +139,7 @@ static void migrate_test(void) } static struct tst_test test = { + .max_runtime = 300, .min_kver = "2.6.32", .needs_root = 1, .setup = setup, -- Cyril Hrubis chrubis@suse.cz -- Mailing list info: https://lists.linux.it/listinfo/ltp