Bug 247293 - benchmarks/unixbench: enable parallel benchmarking
Summary: benchmarks/unixbench: enable parallel benchmarking
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: Luca Pizzamiglio
Keywords: buildisok
Depends on:
Reported: 2020-06-16 01:55 UTC by Yuichiro NAITO
Modified: 2020-07-06 00:35 UTC (History)
0 users

See Also:
pizzamig: maintainer-feedback+

unixbench-mp.patch (2.28 KB, patch)
2020-06-16 01:55 UTC, Yuichiro NAITO
no flags Details | Diff
unixbench.log (7.36 KB, text/plain)
2020-07-01 00:22 UTC, Yuichiro NAITO
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuichiro NAITO 2020-06-16 01:55:44 UTC
Created attachment 215596 [details]

I'd like to use unixbench not only for performance measuring but also to create CPU load for multiprocessor in a convenient way.

The attached `unixbench-mp.patch' fixes to create CPU information structure.
`Run` scripts determines if multi processor benchmark should be run from it.

Of course, the structure highly depends on Linux systems.
We can't fill complete same data but at least number of CPUS, CPU model, and CPU architecture can be filled.
They are enough to execute multiprocessor benchmark.

So please apply the patch to Ports tree.
Comment 1 Automation User 2020-07-01 00:18:18 UTC
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/161802943
Comment 2 Yuichiro NAITO 2020-07-01 00:22:27 UTC
Created attachment 216079 [details]
Comment 3 Yuichiro NAITO 2020-07-01 00:23:25 UTC
The maintainer doesn't respond to me.
Does anybody check and commit `unixbench-mp.patch`?
It will show parallel benchmarck result like `unixbench.log`.
Comment 4 Luca Pizzamiglio freebsd_committer 2020-07-04 13:00:19 UTC
Hi. Sorry for the delay, I was quite busy with personal stuff.

I can work on it and commit it.
Comment 5 Luca Pizzamiglio freebsd_committer 2020-07-04 13:13:21 UTC
However, to create CPU load, I can also suggest stress-ng (also available on FreeBSD)
It's a program that stress different subsystem.
This command will create load for all the available CPUs
stress-ng --cpu 0
Comment 6 commit-hook freebsd_committer 2020-07-04 14:49:25 UTC
A commit references this bug:

Author: pizzamig
Date: Sat Jul  4 14:48:33 UTC 2020
New revision: 541217
URL: https://svnweb.freebsd.org/changeset/ports/541217

  benchmarks/unixbench: Add support to parallel execution

  Add support to get the number of CPUs on FreeBSD.

  PR:		247293
  Submitted by:	Yuichiro NAITO <naito.yuichiro@gmail.com>

Comment 7 Luca Pizzamiglio freebsd_committer 2020-07-04 14:57:58 UTC

I bumped the portrevision to force the re-build of the package and the update.

Comment 8 Yuichiro NAITO 2020-07-06 00:35:20 UTC
(In reply to Luca Pizzamiglio from comment #7)
I could confirm your commit.
Tkank you!