Bug 200949 - [NEW PORT] benchmarks/stress-ng
Summary: [NEW PORT] benchmarks/stress-ng
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-18 08:15 UTC by luca.pizzamiglio
Modified: 2015-09-25 15:14 UTC (History)
1 user (show)

See Also:


Attachments
The patch to add the new port (5.10 KB, patch)
2015-06-18 08:15 UTC, luca.pizzamiglio
no flags Details | Diff
Poudriere output, FreeBSD 10.1, amd 64 (29.80 KB, text/plain)
2015-06-18 08:15 UTC, luca.pizzamiglio
no flags Details
Poudriere output, FreeBSD 10.1, i386 (29.86 KB, text/plain)
2015-06-18 08:16 UTC, luca.pizzamiglio
no flags Details
Poudriere output, FreeBSD 9.3, amd 64 (27.19 KB, text/plain)
2015-06-18 08:16 UTC, luca.pizzamiglio
no flags Details
Poudriere output, FreeBSD 9.3, i386 (25.21 KB, text/plain)
2015-06-18 08:17 UTC, luca.pizzamiglio
no flags Details
Poudriere output, FreeBSD 8.4, amd64 (27.21 KB, text/plain)
2015-06-18 08:17 UTC, luca.pizzamiglio
no flags Details
Poudriere output, FreeBSD 8.4, i386 (25.47 KB, text/plain)
2015-06-18 08:17 UTC, luca.pizzamiglio
no flags Details
Patch recreated following reviewer's suggestions (5.46 KB, patch)
2015-07-17 14:16 UTC, luca.pizzamiglio
no flags Details | Diff
Updating the patch adopting the version 0.4.20 and removing the FreeBSD 8 support (4.49 KB, patch)
2015-09-25 13:44 UTC, luca.pizzamiglio
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description luca.pizzamiglio 2015-06-18 08:15:00 UTC
Created attachment 157850 [details]
The patch to add the new port

stress-ng is a new set of synthetic benchmarks that exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

It provides: over 90 stress tests, over 50 CPU specific stress tests that exercise floating point, integer, bit manipulation and control flow and over 20 virtual memory stress tests.
Comment 1 luca.pizzamiglio 2015-06-18 08:15:48 UTC
Created attachment 157851 [details]
Poudriere output, FreeBSD 10.1, amd 64
Comment 2 luca.pizzamiglio 2015-06-18 08:16:12 UTC
Created attachment 157852 [details]
Poudriere output, FreeBSD 10.1, i386
Comment 3 luca.pizzamiglio 2015-06-18 08:16:32 UTC
Created attachment 157853 [details]
Poudriere output, FreeBSD 9.3, amd 64
Comment 4 luca.pizzamiglio 2015-06-18 08:17:05 UTC
Created attachment 157854 [details]
Poudriere output, FreeBSD 9.3, i386
Comment 5 luca.pizzamiglio 2015-06-18 08:17:30 UTC
Created attachment 157855 [details]
Poudriere output, FreeBSD 8.4, amd64
Comment 6 luca.pizzamiglio 2015-06-18 08:17:54 UTC
Created attachment 157856 [details]
Poudriere output, FreeBSD 8.4, i386
Comment 7 Dmitry Marakasov freebsd_committer freebsd_triage 2015-06-26 14:04:59 UTC
Won't it be better to make the while patch conditional to 9.x instead? __FreeBSD_version >= 900000 conditionals may also be removed, by the time I commit this 8.4 would reqch its EoL.
Comment 8 luca.pizzamiglio 2015-07-02 19:50:23 UTC
Hi Dmitry,
I simply used the #ifdef pragma because it was easiest to me. But a part of the patch (#if defined(__STDC_IEC_559_COMPLEX__) and logl redefinition) is relevant to 9.x as well.

All specific 8.x modifications will be removed, when 8.4 will reach the EoL.
Some patches will be upstreamed (binary number are gcc specific) as well.
I prefer to leave the patch so, because in the future it will surely change.

At the moment I'm on holiday, so I can reply with big latency
Comment 9 luca.pizzamiglio 2015-07-17 14:16:32 UTC
Created attachment 158909 [details]
Patch recreated following reviewer's suggestions

Adapting the port following the suggestion of the reviewer.
Now the 8.4 modifications are applied as extra-patches if needed.
I've also updated the version of stress-ng to 0.4.12, as I were here.
Comment 10 luca.pizzamiglio 2015-09-25 13:44:53 UTC
Created attachment 161374 [details]
Updating the patch adopting the version 0.4.20 and removing the FreeBSD 8 support

I recreated the patch, removing any support to FreeBSD 8 (discontinued), improving the quality of the patch for FreeBSD 9 (using long double math functions implemented in libstdc++) and upgrading to the version to 0.04.20

I hope it could be committed soon
Comment 11 commit-hook freebsd_committer freebsd_triage 2015-09-25 15:14:24 UTC
A commit references this bug:

Author: amdmi3
Date: Fri Sep 25 15:14:20 UTC 2015
New revision: 397826
URL: https://svnweb.freebsd.org/changeset/ports/397826

Log:
  This stress test suite will stress a computer system in various selectable ways
  It was designed to exercise various physical subsystems of a computer as well
  as various operating system kernel interfaces.

  WWW: http://kernel.ubuntu.com/~cking/stress-ng/

  PR:		200949
  Submitted by:	luca.pizzamiglio@gmail.com

Changes:
  head/benchmarks/Makefile
  head/benchmarks/stress-ng/
  head/benchmarks/stress-ng/Makefile
  head/benchmarks/stress-ng/distinfo
  head/benchmarks/stress-ng/files/
  head/benchmarks/stress-ng/files/extrapatch-Makefile
  head/benchmarks/stress-ng/files/extrapatch-stress-cpu.c
  head/benchmarks/stress-ng/files/patch-stress-cpu.c
  head/benchmarks/stress-ng/pkg-descr