From patchwork Thu Jun 1 15:59:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1789196 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=FRSjLwy1; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QX9pc64zfz20Py for ; Fri, 2 Jun 2023 02:00:56 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D326D385770B for ; Thu, 1 Jun 2023 16:00:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D326D385770B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685635254; bh=qI/GfSp7j52+5Nf/+9p17QuxUa5BR3v7iFckzQFWWPg=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=FRSjLwy1H+p5kMrwtibvAtXeqnaSbX1fymch5uO6LFjChJ79YrS1b+aHBizCBvssG DjS7kcM0iUHADO+ZOWKoS06cHf6wWmxuf0oF6Ye7JUjs5+Ei8Ig/wiiFz3+xUrMZp1 VlvTT4UCEhrdoy0vfBK0bVgYdpr2RhZr29yVCl9w= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by sourceware.org (Postfix) with ESMTPS id 890A7385700D for ; Thu, 1 Jun 2023 15:59:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 890A7385700D Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-19f54a99cd5so702381fac.1 for ; Thu, 01 Jun 2023 08:59:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685635164; x=1688227164; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qI/GfSp7j52+5Nf/+9p17QuxUa5BR3v7iFckzQFWWPg=; b=GmM30ur3cBlAnHOxPHIPZJ83HyDxOtZGPQ0YnW4PZkiegU/OLCgFHi9cKSNPTJtDvK sp7wmNB/bj05CmcEXDw8/Zy3ddHrtHpw6GTbgGNyyX+GnzbRFglQxfCzE88tqxll5Mx2 3zdKWUuZXNU57KrFzCi1yy4oI8+lZ2gZB0WDDkeXhC4EmSMlGsE7lkwTYVxu+JPR+yvI U7/wHWdLLNXT50gH5ACSRomcGEx2NUrFpeO1CfYj83w/26wVK+IJ4huHIjRmJDVRK8Z8 kbFuA5JpgoettjEBqqLpMaC2Aa/1ub0C4b0q6a9rHNag9iKcI37Oz8N4ETM5QKBtTSHf Sliw== X-Gm-Message-State: AC+VfDz9oemF1yjPyYtpiFW5KIBYGD2myzyVAQ8R4+/kXjHAKwHEl54e 4ogrKi6c/XkC7WQLtMjyDr4SQlTLjiUf9gabtr+suA== X-Google-Smtp-Source: ACHHUZ5+JrYvrfBTm+TeN1n8hzQUWfT0e/K57oTPV3MMpKJHFSMADA0D3PUsYWNjeoQly9/YQGhcig== X-Received: by 2002:a05:6870:d110:b0:19e:d407:a730 with SMTP id e16-20020a056870d11000b0019ed407a730mr6135314oac.35.1685635164322; Thu, 01 Jun 2023 08:59:24 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c1:4dd5:aab5:9e8c:dfc8:7cd]) by smtp.gmail.com with ESMTPSA id ef17-20020a0568701a9100b0017243edbe5bsm1807103oab.58.2023.06.01.08.59.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 08:59:23 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH] stdlib: Tune down fork arc4random tests Date: Thu, 1 Jun 2023 12:59:19 -0300 Message-Id: <20230601155919.296550-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" There is no fork detection on current arc4random implementation, so use lower subprocess on fork tests. The tests now run on 0.1s instead of 8s on a Ryzen9 5900X. Checked on x86_64-linux-gnu. Reviewed-by: Carlos O'Donell --- stdlib/tst-arc4random-fork.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/stdlib/tst-arc4random-fork.c b/stdlib/tst-arc4random-fork.c index a69ec3968f..65d5893f5e 100644 --- a/stdlib/tst-arc4random-fork.c +++ b/stdlib/tst-arc4random-fork.c @@ -30,14 +30,10 @@ #include /* Perform multiple runs. The subsequent runs start with an - already-initialized random number generator. (The number 1500 was - seen to reproduce failures reliable in case of a race condition in - the fork detection code.) */ -enum { runs = 1500 }; - -/* One hundred processes in total. This should be high enough to - expose any issues, but low enough not to tax the overall system too - much. */ + already-initialized random number generator. */ +enum { runs = 10 }; + +/* Total number of spawned processes on each run. */ enum { subprocesses = 49 }; /* The total number of processes. */