From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oMaFBJUv12E1EAAAgWs5BA (envelope-from ) for ; Thu, 06 Jan 2022 19:06:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GAjyAZUv12F3yQAA9RJhRA (envelope-from ) for ; Thu, 06 Jan 2022 19:06:13 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6D0823A732 for ; Thu, 6 Jan 2022 19:06:12 +0100 (CET) Received: from localhost ([::1]:33920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5X9P-0007Xc-J0 for larch@yhetil.org; Thu, 06 Jan 2022 13:06:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5X9H-0007XM-Tj for guix-patches@gnu.org; Thu, 06 Jan 2022 13:06:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49211) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5X9G-000544-TN for guix-patches@gnu.org; Thu, 06 Jan 2022 13:06:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n5X9G-0003v8-Jr for guix-patches@gnu.org; Thu, 06 Jan 2022 13:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53057] [PATCH] gnu: Add stress-ng. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 06 Jan 2022 18:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53057 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53057@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164149234915048 (code B ref -1); Thu, 06 Jan 2022 18:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jan 2022 18:05:49 +0000 Received: from localhost ([127.0.0.1]:42114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5X92-0003ub-43 for submit@debbugs.gnu.org; Thu, 06 Jan 2022 13:05:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:35310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5X8z-0003uR-57 for submit@debbugs.gnu.org; Thu, 06 Jan 2022 13:05:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5X8z-0007Gz-1m for guix-patches@gnu.org; Thu, 06 Jan 2022 13:05:45 -0500 Received: from [2a02:c205:2020:6054::1] (port=38598 helo=tobias.gr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5X8w-00052Y-RY for guix-patches@gnu.org; Thu, 06 Jan 2022 13:05:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=+XXpxKWLCMewu 4jONhn7hOknvnEOFvsB4tbXSCm1h5g=; h=date:subject:to:from; d=tobias.gr; b=f4QITxFrOfr0VdnMVBJryIMranoHbLXk1XucCyMQJV2nVu7J7cMmyG8voE7dQjbrlCQI Hbl9urIKOJ1JocQcf6d3WYlIPvTBtKezfBAuEoRqEf7/mfTBf+/r73BFnMfWxJcbvQzEiC GBy4qz6cKG10CiQMveR6H2pC97rJNL0KROL4xSuMRXoK17o+E6syjXI2118/TYavHOgueR 1cQMT8oROe/1XLYzxQI8S2shUi7zLhwkpq8T3+rfGsBzJqRNYnaZxbj7kmQkjasRohpJyh j0lSIf13WSUYaJ6nkYBcXEotGJHlaz2ATRWHA7wqdPu3qDP2T826W+nzJVrIwkWQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 2cc87153 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Thu, 6 Jan 2022 18:05:37 +0000 (UTC) Date: Thu, 6 Jan 2022 19:06:36 +0100 Message-Id: <20220106180636.31164-1-me@tobias.gr> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:c205:2020:6054::1 (failed) Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Tobias Geerinckx-Rice X-ACL-Warn: , Tobias Geerinckx-Rice via Guix-patches From: Tobias Geerinckx-Rice via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641492372; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+XXpxKWLCMewu4jONhn7hOknvnEOFvsB4tbXSCm1h5g=; b=JCecaZ508xduaBKceU54/u4vkFEVEm+mIL15bniBrxxZ1uQohzUTFMZa3cPRJvSdkEKkq9 W4626v2wKSd4jdZr3CrYTDUc91PpUDjl1Zg23+W8Fah+FeZ0Hf0aex/ZMR7/NVrCUYO4tz DhJU3AxEpW9dLle/87wMTBKA/ZT8YKuZMy4zuzBNvRHm7a/247GrvdQuHW5LtReJi3amhZ 3mMCHCzQg9iKZL+h2A385B7yV2gZeyKcZ5geNTYpRD56TQm8FA1wMi9MYRs8nUp+BO8Hwn TTqgyaLZ7Tay6HoZlul1m5VDbkL+fI0aJdWJV4VpiH3T/n1G3olq6AoiBhEe8w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641492372; a=rsa-sha256; cv=none; b=kYng0DmOlCd84QzJo+e/Dxx45P+DIiA3RXR/0j2CnAFmkdJghoTA5pnEnFIObZSyDy+/mN vXyE33wpAZuilEbdBW7NpMyTA31SnZB/9fKhHZmGXQCrNZAPFm5YuvlRra/eD6hURBSRpJ inrjICE9sp5q3ej143y1uSUVrI94g3dUvfJgIJut4pst3YibNc8rTRsvDm16KlFrqtmrJd 701S+FoJODfQuY0R7UT6xnrpg/2I+SjEb+9Jg3BpHxN2bhIN+C1kzw+zgjy5e3D4dcvWEf 0LwZPm8NAlo++xQbOe9xUv3zP829CvkTkcKj8nP0Y0ouzhNg/syqKA4cmWZumw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=f4QITxFr; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=f4QITxFr; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6D0823A732 X-Spam-Score: -3.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: TYTD/ME0TAEu * gnu/packages/admin.scm (stress-ng): New public variable. --- gnu/packages/admin.scm | 67 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index d45857150f..6e180ec80a 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -2260,6 +2260,73 @@ (define-public stress system is under heavy load.") (license license:gpl2+))) +(define-public stress-ng + (package + (name "stress-ng") + (version "0.13.10") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ColinIanKing/stress-ng") + (commit (string-append "V" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1z9vjn2131iv3pwrh04z6r5ygi1qgad5bi3jhghcvc3v1b4k5ran")))) + (build-system gnu-build-system) + (arguments + (list #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + (string-append "BINDIR=" #$output "/bin") + (string-append "MANDIR=" #$output "/share/man") + (string-append "JOBDIR=" #$output + "/share/stress-ng/example-jobs") + (string-append "BASHDIR=" #$output + "/share/bash-completion/completions")) + #:test-target "lite-test" + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ; no configure script + (add-after 'check 'check-a-little-harder + ;; XXX Guix supports only one #:test-target. Run more tests. + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (substitute* "debian/tests/fast-test-all" + (("EXCLUDE=\"" exclude=) + (string-append exclude= + ;; Fails if host kernel denies ptracing. + "ptrace "))) + (invoke "make" "fast-test-all" + "-j" (number->string (parallel-job-count))))))))) + (inputs + (list keyutils + kmod + libaio + libbsd + libcap + libgcrypt + zlib)) + (home-page "https://github.com/ColinIanKing/stress-ng") + (synopsis "Load and stress-test a computer system in various ways") + (description + "stress-ng stress-tests a computer system by exercising both physical +subsystems as operating system kernel interfaces. It can stress the CPU, cache, +disk, memory, socket and pipe I/O, scheduling, and much more, in various +selectable ways. This can trip hardware issues such as thermal overruns as well +as operating system bugs that occur only when a system is being thrashed hard. + +You can also measure test throughput rates, which can be useful to observe +performance changes across different operating system releases or types of +hardware. However, stress-ng is not a benchmark. Use it with caution: some of +the tests can make poorly designed hardware run dangerously hot or make the +whole system lock up. + +Compared to its inspiration, @command{stress}, @command{stress-ng} offers many +additional options such as the number of bogo operations to run, execution +metrics, verification of memory and computational operations, and considerably +more stress mechanisms.") + (license license:gpl2+))) + (define-public detox (package (name "detox") -- 2.34.0