nixpkgs/pkgs/tools/system/stress-ng/default.nix
Tobias Geerinckx-Rice 3467aa462a stress-ng 0.04.04 -> 0.04.05
Changes:
- Ensure maximum sizes don't exceed 4GB-1 for 32 bit systems
- stress-crypt: only use re-entrant crypt_r on Linux for now
- Add perf reference in manual, update date
- stress-vm-rw: zero msg_wr just to be totally safe
- stress-crypt: use reentrant crypt_r to avoid any memory leaks
- stress-zombie: free items on list head on exit
- stress-lockf: free items on list head on exit
- stress-wcstr: fix incorrect wide string size
- Add int8, int16, int32 and int64 versions of mwc*()
- Increase various stressors upper memory limits
- Make --aggressive force more CPU migrations and context switches
- Fix comment for stress_get_ticks_per_second
- perf: enable inherit flag to trace children
- Add the new --getrandom stressor
- Fix sigq options, missing because not using STRESS_SIGQUEUE
- Fix help -h option, was --h, should be -h
- avoid builtins when libs shall be tested
- add stressor for wide character sting operations
- fix string names
- avoid compiler error in stress-vector
- fix EPOLL build
2015-06-03 12:44:07 +02:00

43 lines
1.4 KiB
Nix

{ stdenv, fetchurl, attr }:
let version = "0.04.05"; in
stdenv.mkDerivation rec {
name = "stress-ng-${version}";
src = fetchurl {
sha256 = "1xj3rrcvpjl3sgvl22m0bdrkscxxnipzh4s1ivmrifw7lq2zq1kg";
url = "http://kernel.ubuntu.com/~cking/tarballs/stress-ng/${name}.tar.gz";
};
buildInputs = [ attr ];
patchPhase = ''
substituteInPlace Makefile --replace "/usr" ""
'';
enableParallelBuilding = true;
installFlags = "DESTDIR=$(out)";
meta = with stdenv.lib; {
inherit version;
description = "Stress test a computer system";
longDescription = ''
Stress test a system in various selectable ways, exercising both various
physical subsystems and various operating system kernel interfaces:
- over 60 different stress tests
- over 50 CPU specific stress tests that exercise floating point,
integer, bit manipulation and control flow
- over 20 virtual memory stress tests
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.
'';
homepage = http://kernel.ubuntu.com/~cking/stress-ng;
downloadPage = http://kernel.ubuntu.com/~cking/tarballs/stress-ng/;
license = licenses.gpl2Plus;
platforms = with platforms; linux;
maintainers = with maintainers; [ nckx ];
};
}