From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 13:05:48 2022 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) From: Tobias Geerinckx-Rice To: guix-patches@gnu.org Subject: [PATCH] gnu: Add stress-ng. 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-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) * 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 23:39:21 2022 Received: (at 53057) by debbugs.gnu.org; 7 Jan 2022 04:39:21 +0000 Received: from localhost ([127.0.0.1]:42782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5h28-0001OW-RE for submit@debbugs.gnu.org; Thu, 06 Jan 2022 23:39:21 -0500 Received: from mail-qt1-f173.google.com ([209.85.160.173]:46896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5h24-0001OF-HO for 53057@debbugs.gnu.org; Thu, 06 Jan 2022 23:39:19 -0500 Received: by mail-qt1-f173.google.com with SMTP id v7so1167396qtw.13 for <53057@debbugs.gnu.org>; Thu, 06 Jan 2022 20:39:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=iexnTeXU63E4fv0AVdVV4w4IPGmmqre1OunR2Vdhbe4=; b=NgqQ4QSN663WlLS1cm+0nq3YLtv7ZOfSaTKWSRuNkTDHPU3+g+xWelLFyp1rTh9KXx QFakfq2uKZUd73/Nw0CL/EPrRP3jVaYR/afhg11hGrw/1opwniKRYGZb9NDwJ6VmszR2 xcK5Qw2BuU3rGcXNjbgzDb3+MxxXn6ClWivRVERTmntdTMH75MDSGJjeGC2JLnva5od6 KOSC5Vq06Lxu09j5Oj37Czd88JZ5RN2e/K92Nho2e8jy/qyx6UhYhwvcV7nI1tlKzvIG 3vb6Fv8rp2EbuxCsBmjnw027XrU8mESoDL1e7v71ehzxUsYTv68Q1ePsjqrCCxONu9vG 6GIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=iexnTeXU63E4fv0AVdVV4w4IPGmmqre1OunR2Vdhbe4=; b=ONIy59Y7qAIPmK5L/+gEUfWSLB4iZItQ2pOED1supbCP+IUeXyDGP1yFvTczqXTP0O fIYRH5JNMlaphHf5sKoKICIrKWHzaMMG4olTKTymPFsCZvpwl2YTnJKZiqCbFdUCPX1m +Hmevwa8878uEo+INHzK39jO8GvEq2APYCPyKPRu/i9V2n6Rso6+bOO1U8hbGq2jBH3N ImdTAh147gVvnV2WRBrSkuRrCgPPKQgd3KMOseUp0s0i4bnSTW26bQENUs95v6F5HUUl d3WxtuNgdPpsdNqE0BlFYK3t9d/6gdF8swgLhfCu/Q2dquzTOWFEY82bXswHoRo54rXT bC2w== X-Gm-Message-State: AOAM530mDkBdSh4XK6aP61Z3/wyYS2h/HPEXAwClcpl43Z3GQ6JnjxA7 yvlK1jfzH6oXEsYcw/QE0gWh08G8jsDUnA== X-Google-Smtp-Source: ABdhPJwWBAf6C9UNUIENlFDvdUonY4bTWwVA/pv6bOunLs2s3jN/h+IUbYoILvsaC+PzgU27yxlF8A== X-Received: by 2002:a05:622a:281:: with SMTP id z1mr53665895qtw.247.1641530350770; Thu, 06 Jan 2022 20:39:10 -0800 (PST) Received: from hurd (dsl-10-146-199.b2b2c.ca. [72.10.146.199]) by smtp.gmail.com with ESMTPSA id n11sm2796290qtk.44.2022.01.06.20.39.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 20:39:10 -0800 (PST) From: Maxim Cournoyer To: Tobias Geerinckx-Rice Subject: Re: bug#53057: [PATCH] gnu: Add stress-ng. References: <20220106180636.31164-1-me@tobias.gr> Date: Thu, 06 Jan 2022 23:39:09 -0500 In-Reply-To: <20220106180636.31164-1-me@tobias.gr> (Tobias Geerinckx-Rice's message of "Thu, 6 Jan 2022 19:06:36 +0100") Message-ID: <878rvsqhw2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 53057 Cc: 53057@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Tobias, How timely! :-) Tobias Geerinckx-Rice writes: > * 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))))))))) This looks good and works good too! My only comment is that this should honor parallel-tests?. Reusing the check phase but overriding the test-target argument should do it: modified gnu/packages/admin.scm @@ -2289,15 +2289,15 @@ (define-public stress-ng (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) + (lambda* (#:key tests? #:allow-other-keys #:rest args) (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))))))))) + "ptrace ")))) + (apply (assoc-ref %standard-phases 'check) + `(,@args #:test-target "fast-test-all"))))))) (inputs (list keyutils kmod Otherwise, LGTM! Feel free to push with such adjustment. Thank you! Maxim From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 07 00:00:32 2022 Received: (at 53057-done) by debbugs.gnu.org; 7 Jan 2022 05:00:32 +0000 Received: from localhost ([127.0.0.1]:42801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5hMd-0001zj-6C for submit@debbugs.gnu.org; Fri, 07 Jan 2022 00:00:31 -0500 Received: from tobias.gr ([80.241.217.52]:32906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5hMI-0001zD-HL for 53057-done@debbugs.gnu.org; Fri, 07 Jan 2022 00:00:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=rBsBJ+I4I+Md+ OwmuDTEZp+RoEybrNVDaK5UYBsUJms=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=kukQU5CRkn3UqxyEfiEiY0yyeZao1I1pu1l7v9 UVpHc2pjz1mmt1rdKcyxh737ouoQu8R6TqHX0uNfKC/qpfVWtjAjczmfWe9ktRIFpTghXk J+LslgPb7RiuP4IkCYSq2YwWMQoJs3aB7e2n8sJpZTRk0VgCzPAzRxm6kuKikuXpzb07Xb xjV//anIdUuS2DKhUp3EPbFlPl3Nkd+s52p2XYEV74C848ulwbW4eHP91EhC1jXnEA80SX BgQpPDrijO1JcF187QthvTz9wt3Usn70YQ7s7EvgbJ85bAKoAfHnxSNrplfcE/pG43sUqV smpJX2VTuVTZVNGTEiU4o8EQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 9bacebf8 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 7 Jan 2022 05:00:03 +0000 (UTC) References: <20220106180636.31164-1-me@tobias.gr> <878rvsqhw2.fsf@gmail.com> From: Tobias Geerinckx-Rice To: Maxim Cournoyer Subject: Re: bug#53057: [PATCH] gnu: Add stress-ng. Date: Fri, 07 Jan 2022 05:48:03 +0100 In-reply-to: <878rvsqhw2.fsf@gmail.com> BIMI-Selector: v=BIMI1; s=default; Message-ID: <87ee5k5ed9.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53057-done Cc: 53057-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Maxim, Maxim Cournoyer =E5=86=99=E9=81=93=EF=BC=9A > + (apply (assoc-ref %standard-phases 'check) This is a trick I've forgotten before=E2=80=A6 sigh. Thanks for pointing=20 it out! Pushed as 046322189b62981fca6baab4e758e6878eab0758. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYdfJAg0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15rUsA/1NPWaTfRT+6HScljUhASexMVfgIF/cLLIFtL4dq prnsAQDYbt95wVT7juV872TWOdJE1j+PCJpdoP9iVxCoExooCg== =isKZ -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 11:32:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 04 Feb 2022 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator