memory/info should provide better ouput

Bug #1072666 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Medium
Jeff Lane 

Bug Description

currently, the output from a failed run of memory/info looks like this (from a submission):
Difference is 248229888 bytes (11.56%) and greater than the 10% threshold.
/proc/meminfo reports: 1899253760 kB
dmi reports: 2147483648 kB

No one measures their system RAM in kB, this is difficult to read.

Also, there's difficulty in comparing the difference in bytes to the memory reports in kBytes.

The output should be modified as follows:
A: it should default to MB for all numbers, unless the number is < 1MB, in which case it should be kB.
B: The difference line should be the last bit of output if possible. This flows a little better and is easier for a quick scan of the output.
C: since this will be used outside the cert team, perhaps the output should be more explanatory.
"Difference is X (Y%) and greater than the Z% Threshold" is ambiguious.
"ERROR: Meminfo reports X MB less than DMI, a difference of Y%. Only a Z% variance in reported memory is allowed." is more clear in what it's reporting and what the expectation/reason for failure is.

Related branches

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

B and C +1'd. A I don't know about because by changing the units you can potentially hide information which isn't ideal where exact margins are involved like in this test.

Changed in checkbox:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Brendan Donegan (brendan-donegan)
importance: Low → Medium
Revision history for this message
Jeff Lane  (bladernr) wrote :

That works for me... changes incoming.

Changed in checkbox:
assignee: Brendan Donegan (brendan-donegan) → Jeff Lane (bladernr)
status: Triaged → In Progress
status: In Progress → Fix Committed
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.