View | Details | Raw Unified | Return to bug 269602 | Differences between
and this patch

Collapse All | Expand All

(-)b/benchmarks/stress-ng/Makefile (-18 / +14 lines)
Lines 6-55 CATEGORIES= benchmarks Link Here
6
6
7
MAINTAINER=	pizzamig@FreeBSD.org
7
MAINTAINER=	pizzamig@FreeBSD.org
8
COMMENT=	Stress test benchmarks
8
COMMENT=	Stress test benchmarks
9
WWW=		http://kernel.ubuntu.com/~cking/stress-ng/
9
WWW=		https://github.com/ColinIanKing/stress-ng/
10
10
11
LICENSE=	GPLv2+
11
LICENSE=	GPLv2+
12
LICENSE_FILE=	${WRKSRC}/COPYING
12
LICENSE_FILE=	${WRKSRC}/COPYING
13
13
14
LIB_DEPENDS+=libmpfr.so:math/mpfr
14
LIB_DEPENDS+=	libmpfr.so:math/mpfr
15
15
16
USES=		compiler:c11 gmake jpeg localbase:ldflags
16
USES=		compiler:c11 gmake jpeg localbase:ldflags
17
USE_GITHUB=	yes
17
USE_GITHUB=	yes
18
GH_ACCOUNT=	ColinIanKing
18
GH_ACCOUNT=	ColinIanKing
19
19
20
MAKE_ARGS=	VERBOSE=1
20
ALL_TARGET=	# empty
21
ALL_TARGET=	# empty
21
22
22
PLIST_FILES=	bin/stress-ng man/man1/stress-ng.1.gz
23
PLIST_FILES=	bin/stress-ng \
24
		man/man1/stress-ng.1.gz
23
25
24
OPTIONS_DEFINE=		GPU JUDY LIBINOTIFY XXHASH
26
OPTIONS_DEFINE=		GPU JUDY LIBINOTIFY XXHASH
25
OPTIONS_DEFINE_amd64=	INTELIPSEC
27
OPTIONS_DEFINE_amd64=	INTELIPSEC
26
OPTIONS_DEFAULT=	JUDY LIBINOTIFY XXHASH
28
OPTIONS_DEFAULT=	JUDY LIBINOTIFY XXHASH
27
OPTIONS_DEFAULT_amd64=	INTELIPSEC
29
OPTIONS_DEFAULT_amd64=	INTELIPSEC
28
30
29
GPU_DESC=	Enable support for GPU stressor (add GL)
31
GPU_DESC=		Enable support for GPU stressor (add GL)
30
INTELIPSEC_DESC=	Enable support for Intel's IPsec library
32
INTELIPSEC_DESC=	Enable support for Intel's IPsec library
31
JUDY_DESC=		Enable support for (lib)Judy
33
JUDY_DESC=		Enable support for (lib)Judy
32
LIBINOTIFY_DESC=	Enable support for libinotify
34
LIBINOTIFY_DESC=	Enable support for libinotify
33
XXHASH_DESC=	Enable support for libxxhash
35
XXHASH_DESC=		Enable support for libxxhash
34
35
INTELIPSEC_LIB_DEPENDS=		libIPSec_MB.so:security/intel-ipsec-mb
36
37
JUDY_LIB_DEPENDS=		libJudy.so:devel/judy
38
39
LIBINOTIFY_LIB_DEPENDS=		libinotify.so:devel/libinotify
40
LIBINOTIFY_LDFLAGS=		-linotify
41
36
37
GPU_USES=		gl
38
INTELIPSEC_LIB_DEPENDS=	libIPSec_MB.so:security/intel-ipsec-mb
39
JUDY_LIB_DEPENDS=	libJudy.so:devel/judy
40
LIBINOTIFY_LIB_DEPENDS=	libinotify.so:devel/libinotify
41
LIBINOTIFY_LDFLAGS=	-linotify
42
XXHASH_LIB_DEPENDS=	libxxhash.so:devel/xxhash
42
XXHASH_LIB_DEPENDS=	libxxhash.so:devel/xxhash
43
XXHASH_LDFLAGS=	-lxxhash
43
XXHASH_LDFLAGS=		-lxxhash
44
45
GPU_USES=	gl
46
47
MAKE_ARGS=	VERBOSE=1
48
44
49
.include <bsd.port.options.mk>
45
.include <bsd.port.options.mk>
50
46
51
.if ${PORT_OPTIONS:MGPU}
47
.if ${PORT_OPTIONS:MGPU}
52
USE_GL=	egl glesv2 gbm
48
USE_GL=		egl gbm glesv2
53
.endif
49
.endif
54
50
55
pre-patch:
51
pre-patch:
(-)b/benchmarks/stress-ng/pkg-descr (-5 / +15 lines)
Lines 1-4 Link Here
1
This stress test suite will stress a computer system in various
1
stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces. Stress-ng features:
2
selectable ways It was designed to exercise various physical
2
3
subsystems of a computer as well as various operating system kernel
3
    300+ stress tests
4
interfaces.
4
    80+ CPU specific stress tests that exercise floating point, integer, bit manipulation and control flow
5
    20+ virtual memory stress tests
6
    40+ file system stress tests
7
    30+ memory/CPU cache stress tests
8
    portable: builds on Linux (Debian, Devuan, RHEL, Fedora, Centos, Slackware OpenSUSE, Ubuntu, etc..), Solaris, FreeBSD, NetBSD, OpenBSD, DragonFlyBSD, Minix, Android, MacOS X, Serenity OS, GNU/Hurd, Haiku, Windows Subsystem for Linux and SunOs/Dilos/Solaris. with gcc, musl-gcc, clang, icc, icx, tcc and pcc.
9
    tested on alpha, armel, armhf, arm64, hppa, i386, m68k, mips32, mips64, power32, ppc64el, risc-v, sh4, s390x, sparc64, x86-64
10
11
stress-ng was originally intended to make a machine work hard and trip hardware issues such as thermal overruns as well as operating system bugs that only occur when a system is being thrashed hard. Use stress-ng with caution as some of the tests can make a system run hot on poorly designed hardware and also can cause excessive system thrashing which may be difficult to stop.
12
13
stress-ng can also measure test throughput rates; this can be useful to observe performance changes across different operating system releases or types of hardware. However, it has never been intended to be used as a precise benchmark test suite, so do NOT use it in this manner.
14
15
Running stress-ng with root privileges will adjust out of memory settings on Linux systems to make the stressors unkillable in low memory situations, so use this judiciously. With the appropriate privilege, stress-ng can allow the ionice class and ionice levels to be adjusted, again, this should be used with care.
5
- 

Return to bug 269602