From nobody Tue Dec 20 09:13:18 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NbrTV3Xl3z1GH2B; Tue, 20 Dec 2022 09:13:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NbrTV31sMz3Ps6; Tue, 20 Dec 2022 09:13:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671527598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nnA/mKUAq/0f3LhAbR/CyQUWUN+Si673W3qs1khZOsk=; b=S6ZxXS2CbfDq3FU7XXICL+uh9E9+mwqi2v3K3TqV1m0LUXxTEFpdgAZzXiKUa0HxzrZFkR 3pt6A7sAPMNbEYZ7iu7OK6CV/35mXGAf2BFnHZdXZdGU4AT8fRgPFlrEyx8Lx0oE/uVty4 VeR8w9M5W/GU2zFQ7r5ccidRiy49VmoCwjau0DfYpvILBBdj3muNCU4XGpSWaN+mqZqxMZ bu8ChDB4oojrxaJ8WoN19roWAQQLjAYbPTezGwCBjuFBc4nwEh6DFFeDjx/BIBaTldgCwc iCJslbIaQc6WjEFMzGUoYLLNzwQwdseNNaPChJhWhbSTeDIA5LeULT/WNXvfEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671527598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nnA/mKUAq/0f3LhAbR/CyQUWUN+Si673W3qs1khZOsk=; b=fF/l+iun9cC5OgScq9tTBJrl4fLYKuZ6vzp4lLrNBzOZY4e2DSNPBdV3lqNwb8FQ2SILmK o5qRvTw3dLu5lu49GxNu/jqbtlBrpzwjl/Zw/AWHu58cuuInrcPueKboQKP/vDZZjooCK+ xXoqfCJf/BQ8qSZMxqwXX5j4FT/YwJIS+IhW7rwXFziDY/wkPn3rvmFCRLz2Ys8ulVLOCm qVDmO5MuE7u1biPfVflpLbBacFgPw/kdFWBVnYXyQ7/NqgJB21QXwMpzbp9DALTk7uk4V6 lDE4uVPnYhWtZe6dKcGlvOCn06zcMMPnRhoQmXLpqO8D5Gua1TcUC379vSgBAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671527598; a=rsa-sha256; cv=none; b=ODLgX4I4Y4urB61d9yVvcQzsYetdMkeF5sh5xv5c5ojm6u9Lfbnv43KtYwYgp34p3E9sm/ Npe7iICKliXIuGegQnExmWZb2CeL2hCk2XTnv3OuAXG3kJOvjZkYCP8DYr9N/EO4bxkPq7 oipayeQQpKALK7Vg83ZB8WwLU8ZwjRjZXXA4LNMg5YI/yG+pv3NnaQORtsOx0Q1U37Ikgs LaiMxRMQVF5yVstLKABWJjeLFazw6ltFFBL24cABWgZ1kbjK1C6dABpZ5OM5ds1fZj6vWe S0Mo975v7Wq61ksQFkx+vPYh8E8ZbEerjDBEGh/3IOB3RWNabzGOrkg5UwdG8w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NbrTV24YmzVrL; Tue, 20 Dec 2022 09:13:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BK9DI91005288; Tue, 20 Dec 2022 09:13:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BK9DIV4005287; Tue, 20 Dec 2022 09:13:18 GMT (envelope-from git) Date: Tue, 20 Dec 2022 09:13:18 GMT Message-Id: <202212200913.2BK9DIV4005287@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Peter Holm Subject: git: eeabf9cb937a - main - stress2: Fix long run time List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pho X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eeabf9cb937a8a98b17a434cc79f755fe01b0d03 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pho: URL: https://cgit.FreeBSD.org/src/commit/?id=eeabf9cb937a8a98b17a434cc79f755fe01b0d03 commit eeabf9cb937a8a98b17a434cc79f755fe01b0d03 Author: Peter Holm AuthorDate: 2022-12-20 09:12:01 +0000 Commit: Peter Holm CommitDate: 2022-12-20 09:12:01 +0000 stress2: Fix long run time --- tools/test/stress2/misc/forkbomb.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/test/stress2/misc/forkbomb.sh b/tools/test/stress2/misc/forkbomb.sh index 73a3c5f37fe2..caaaa27db281 100755 --- a/tools/test/stress2/misc/forkbomb.sh +++ b/tools/test/stress2/misc/forkbomb.sh @@ -81,7 +81,7 @@ volatile u_int *share; #define R4 4 /* fork failed */ //#define DEBUG -#define MXFAIL 100 +#define MXFAIL 2 #define MAXPROC 40000 /* Arbitrary cap */ #define PARALLEL 200 @@ -93,7 +93,7 @@ test(void) alarm(1200); atomic_add_int(&share[R1], 1); while (share[R1] != PARALLEL) - ; + usleep(100); atomic_add_int(&share[R2], 1); for (;;) { @@ -103,6 +103,7 @@ test(void) if ((r = fork()) == -1) { atomic_add_int(&share[R4], 1); atomic_add_int(&share[R2], -1); + usleep(arc4random() % 100000); break; } }