ColinIanKing / stress-ng

This is the stress-ng upstream project git repository. 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.
https://github.com/ColinIanKing/stress-ng
GNU General Public License v2.0
1.79k stars 284 forks source link

Output from ? command differs from documentation #40

Closed claybrooks closed 5 years ago

claybrooks commented 5 years ago

Ouptut from 'stress-ng --class cpu?'

class 'cpu' stressors: af-alg atomic branch bsearch context cpu cpu-online crypt fp-error funccall getrandom heapsort hsearch ioport longjmp lsearch matrix mergesort nop numa opcode pkey qsort radixsort rdrand str stream tree tsc tsearch vecmath wcs zlib

Output from 'stress-ng --cpu 0 --cpu-method wrongmethod'

cpu-method must be one of: all ackermann bitops callfunc cdouble cfloat clongdouble correlate crc16 decimal32 decimal64 decimal128 dither djb2a double euler explog fft factorial fibonacci float float32 float80 float128 fnv1a gamma gcd gray hamming hanoi hyperbolic idct int128 int64 int32 int16 int8 int128float int128double int128longdouble int128decimal32 int128decimal64 int128decimal128 int64float int64double int64longdouble int32float int32double int32longdouble jenkin jmp ln2 longdouble loop matrixprod nsqrt omega parity phi pi pjw prime psi queens rand rand48 rgb sdbm sieve stats sqrt trig union zeta

I think the error message from an incorrect param is more in line with the kernel documentation. The ? also has issues with other classes and it seems like some stressors are listed under multiple classes of tests.

claybrooks commented 5 years ago

After reading through the kernel documentation more, I've realized I've misunderstood the term stressor vs cpu-method. Closing non-issue