CPU stress test can fail on systems with low memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Fix Released
|
Medium
|
Maciej Kisielewski |
Bug Description
This has been seen before, but here's a fresh example of the failure. On systems with low memory and higher numbers of cores, the CPU Stress Test that uses the tool "stress" can fail due to lack of memory.
Consider these two results:
https:/
https:/
These are essentially the same computer. The difference is that the failing system has 4 cores and 1.8GB RAM available while the passing system has 4 cores and 7.7GB available. The failing run seems to indicate this in the output of 'stress':
stress: FAIL: [3498] (495) hogvm malloc failed: Cannot allocate memory
stress: FAIL: [3478] (395) <-- worker 3498 returned error 1
We need to tweak the algorithm that tells stress how much memory to consume.
tags: | added: ce-qa-concern |
tags: | added: scripts |
affects: | checkbox → plainbox-provider-checkbox |
Changed in plainbox-provider-checkbox: | |
assignee: | nobody → Maciej Kisielewski (kissiel) |
I think it blindly uses half a gig per core, but it should be total/cores instead i guess