Wrong RAM size shown for server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned | ||
lshw (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Eric Desrochers |
Bug Description
[IMPACT]
System with DIMM size of >32GB aren't reporting exact size value when using 'lshw'.
Giving wrong information to hardware inventory system which may collect data from 'lshw', any hardware certification vendor testing, wrong RAM amount shown in the MAAS UI, ...
[TEST CASE]
* Use system running Xenial with DIMM >32GB of RAM
** sudo lshw -C memory
Output:
...
*-bank:0
product: <REDACTED>
vendor: <REDACTED>
physical id: <REDACTED>
serial: <REDACTED>
slot: <REDACTED>
==> size: 31GiB
...
...
In this case, size should be 64GB, just like 'dmidecode' shows
[POTENTIAL REGRESSION]
Very low, the fix only take care of DIMM size handling to support DIMM gt 32GB.
A test package has been provided to an impacted user, here's what has been brought to my attention:
"
That seems to be working. Dumped a copy of the lshw output to two files, "before" and "after".
$ diff before after
38c38
< size: 31GiB
---
> size: 64GiB
and so on down the line for each memory chip.
"
[OTHER INFORMATIONS]
Upstream bug:
https:/
Upstream commit:
https:/
I'm working on a backport fix for Xenial.
# git describe --contains 6406159
B.02.17~26
# rmadison
=> lshw | 02.17-1.1ubuntu3.5 | xenial-updates
lshw | 02.18-0.1ubuntu6 | bionic
lshw | 02.18-0.
lshw | 02.18-0.1ubuntu7 | cosmic
lshw | 02.18-0.1ubuntu7 | disco
lshw | 02.18.85-0.1ubuntu1 | eoan
[ORIGINAL DESCRIPTION]
Currently MAAS relies on DMI for the info about RAM size.
DMI seems not to be always correct, this results in wrong RAM amount shown in the MAAS UI.
In my case :
......
handle: DMI:0017
- lshw:description:
DIMM Synchronous 2666 MHz (0.4 ns)
- lshw:product:
- lshw:vendor:
- lshw:physid:
0
- lshw:serial:
- lshw:slot:
- lshw:size:
......
full machine yaml : https:/
However product M386A8K40BM2-CTD is actually 64GB:
https:/
I have 12 of those, and on boot it shows me the correct amount 12 * 64GB:
ubuntu:~$ dmesg | grep Memory
[ 0.000000] Memory: 791161372K/
ubuntu:~$ free -m
total used free shared buff/cache available
Mem: 772658 3828 768156 18 672 766751
Swap: 8191 0 8191
-------
/var/log/maas : https:/
ubuntu$ dpkg -l '*maas*'|cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
un maas <none> <none> (no description available)
ii maas-cli 2.3.3-6498-
un maas-cluster-
ii maas-common 2.3.3-6498-
ii maas-dhcp 2.3.3-6498-
ii maas-dns 2.3.3-6498-
ii maas-proxy 2.3.3-6498-
ii maas-rack-
ii maas-region-api 2.3.3-6498-
ii maas-region-
un maas-region-
un python-django-maas <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
un python-
ii python3-django-maas 2.3.3-6498-
ii python3-maas-client 2.3.3-6498-
ii python3-
description: | updated |
description: | updated |
description: | updated |
Changed in lshw (Ubuntu): | |
importance: | Undecided → High |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Hi Alexander,
To confirm, what you are saying is that DMI shows the incorrect RAM size, and hence, since MAAS uses it to detect the RAM, MAAS shows the incorrect value?