[Bug 1845005] Re: rmap stressor should return EXIT_NO_RESOURCE when out of free space
Colin Ian King
1845005 at bugs.launchpad.net
Fri Oct 25 09:10:20 UTC 2019
Exits with the correct error code now:
bionic-arhhf$ stress-ng --rmap 10 -t 5
stress-ng: info: [7937] dispatching hogs: 10 rmap
stress-ng: info: [7937] cache allocate: using built-in defaults as unable to determine cache details
stress-ng: fail: [7939] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7940] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7938] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7943] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7941] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7944] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7942] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7946] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: error: [7937] process [7938] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7939] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7940] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7941] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7942] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7943] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7944] (stress-ng-rmap) aborted early, out of system resources
stress-ng: fail: [7945] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7947] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: error: [7937] process [7945] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7946] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7947] (stress-ng-rmap) aborted early, out of system resources
stress-ng: info: [7937] successful run completed in 0.07s
bionic-arhhf$ echo $?
3
3 = EXIT_NO_RESOURCE
** Tags removed: verification-needed verification-needed-bionic
** Tags added: verification-done verification-done-bionic
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1845005
Title:
rmap stressor should return EXIT_NO_RESOURCE when out of free space
Status in stress-ng package in Ubuntu:
Fix Released
Status in stress-ng source package in Bionic:
Fix Committed
Status in stress-ng source package in Disco:
Fix Released
Status in stress-ng source package in Eoan:
Fix Released
Bug description:
== SRU Justification BIONIC, DISCO ==
When running the rmap stressor on systems with small file systems the
fallocate can fail to allocate a large file when running with may
stressors causing the stress test to exit with EXIT_FAILURE. The
correct return is actually EXIT_NO_RESOURCE as there are not enough
resources to run the stress-test.
== Test Proceedure ==
Run rmap on a small file system with many stressors invoked, e.g.
stress-ng --rmap 2048 -t 60
without the fix, the test will exit with a failure. With the fix the
stressor will terminate early with just an out of resource message
rather than a hard test failure.
== Fix ==
upstream commit:
commit 38fd9c6ff96cb7e73f7cb3758bb303d874ad11b5
Author: Colin Ian King <colin.king at canonical.com>
Date: Mon Sep 23 14:11:26 2019 +0100
stress-rmap: don't make fallocate failures a rmap test failure (LP: #1845005)
The rmap stressor should return EXIT_NO_RESOURCE and not EXIT_FAILURE
when attempting to fallocate a file to rmap onto. This makes it a
non-critical failure based on lack of resources rather than a stress
test failure because rmap didn't fail per-se.
Signed-off-by: Colin Ian King <colin.king at canonical.com>
== Regression Potential ==
This is a minor change to a return status and closing of opened
resources. The behaviour is now different on an allocation failure
error type, so applications running this stress test that checking a
specific error return may need updating. This is unlikely as most code
checks for 0 success and non-zero for failure.
---------------------------------------------
The rmap stressor should return EXIT_NO_RESOURCE and not EXIT_FAILURE when attempting to fallocate a file to rmap onto. This makes it a non-critical failure based on lack of resources rather than a stress test failure because rmap failed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/stress-ng/+bug/1845005/+subscriptions
More information about the Ubuntu-sponsors
mailing list