aiol stressor not supported, but ran anyway
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stress-ng |
Fix Released
|
Medium
|
Colin Ian King | ||
stress-ng (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Unassigned | ||
Eoan |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Unassigned |
Bug Description
== SRU Justification BIONIC, EOAN ==
running a stressor that terminates early because it cannot be supported when using the --aggressive option and the -t option will not abort early as expected. It should terminate immediately if all the stressors have completed.
== Fix ==
Upstream fix: https:/
This checks if all the stressor processes have terminated and if so it aborts the --aggressive mode loop.
== Test ==
stress-ng --aggressive --aiol 1 -t 5 -v
Should abort early. Without the fix it will run for 5 seconds if aiol is not supported. With the fix it aborts early if aiol is not supported.
== Regression Potential ==
Small, this affects just the --aggressive mode loop handler when the --agressive mode is enabled with a timeout.
-------
Discovered on 18.04 / 4.15 against both SSD and NVMe drives in this submission:
https:/
Stress-NG spent 4 minutes attempting to run a stressor that "is not implemented on this system"
Running stress-ng aiol stressor for 240 seconds....
stress-ng: info: [130482] dispatching hogs: 256 aiol
stress-ng: info: [130483] stress-ng-aiol: this stressor is not implemented on this system: x86_64 Linux 4.15.0-72-generic gcc 7.4
stress-ng: info: [130484] stress-ng-aiol: this stressor is not implemented on this system: x86_64 Linux 4.15.0-72-generic gcc 7.4
stress-ng: info: [130485] stress-ng-aiol: this stressor is not implemented on this system: x86_64 Linux 4.15.0-72-generic gcc 7.4
...
stress-ng: info: [130737] stress-ng-aiol: this stressor is not implemented on this system: x86_64 Linux 4.15.0-72-generic gcc 7.4
stress-ng: info: [130738] stress-ng-aiol: this stressor is not implemented on this system: x86_64 Linux 4.15.0-72-generic gcc 7.4
stress-ng: info: [130482] successful run completed in 240.04s (4 mins, 0.04 secs)
This did not affect the outcome of the testing, so only a minor issue of confusing output because it actually consumed 4 minutes of runtime on something that appears to not be supported.
the command line that would have been used is found in the disk_stress_ng script in checkbox and is:
stress-ng --aggressive --verify --timeout 240 --temp-path $test_dir --aiol 0 --hdd-opts dsync --readahead-bytes 16M -k
Note, I do not have access to this hardware, it is from a remote submission.
Note this is on a system running an AMD Epyc 2 (Rome) CPU, not an Intel. I presume the AMD CPU doesn't support certain things being tested, hence the message, the question remains why once stress-ng determines that the stressor is not supported it continues attempting to test it.
Also from that system in the cpu stress test:
stress-ng: info: [18239] dispatching hogs: 256 af-alg, 256 bsearch, 256 context, 256 cpu, 256 crypt, 256 hsearch, 256 longjmp, 256 lsearch, 256 matrix, 256 qsort, 256 str, 256 stream, 256 tsearch, 256 vecmath, 256 wcs
stress-ng: info: [18240] stress-ng-af-alg: 41 cryptographic algorithms found in /proc/crypto
stress-ng: info: [18240] stress-ng-af-alg: 116 cryptographic algorithms max (with defconfigs)
stress-ng: info: [18255] stress-ng-wcs: this stressor is not implemented on this system: x86_64 Linux 4.15.0-72-generic gcc 7.4
stress-ng: info: [18272] stress-ng-wcs: this stressor is not implemented on this system: x86_64 Linux 4.15.0-72-generic gcc 7.4
stress-ng: info: [18289] stress-ng-wcs: this stressor is not implemented on this system: x86_64 Linux 4.15.0-72-generic gcc 7.4
stress-ng: info: [18306] stress-ng-wcs: this stressor is not implemented on this system: x86_64 Linux 4.15.0-72-generic gcc 7.4
...
https:/
description: | updated |
description: | updated |
Changed in stress-ng: | |
status: | Incomplete → In Progress |
no longer affects: | stress-ng (Ubuntu Disco) |
description: | updated |
Changed in stress-ng (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in stress-ng (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in stress-ng (Ubuntu Eoan): | |
importance: | Undecided → Medium |
Changed in stress-ng (Ubuntu Focal): | |
status: | New → Fix Committed |
Changed in stress-ng: | |
status: | Fix Committed → Fix Released |
Just to clarify, which version of stress-ng is this? (stress-ng -V will show this)