Incorrect RAM size

Bug #2051933 reported by maasuser1
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Status tracked in 3.6
3.5
Won't Fix
Medium
Unassigned
3.6
Triaged
Medium
Unassigned

Bug Description

lshw log from target machine:
```
        <lshw:node id="bank:0" claimed="true" class="memory" handle="DMI:0021">
          <lshw:description>DIMM DDR4 Synchronous Registered (Buffered) 3200 MHz (0.3 ns)</lshw:description>
          <lshw:product>9ASF1G72PZ-3G2R1</lshw:product>
          <lshw:vendor>Micron Technology</lshw:vendor>
          <lshw:physid>0</lshw:physid>
          <lshw:serial>D09AE522</lshw:serial>
          <lshw:slot>DIMMA1</lshw:slot>
          <lshw:size units="bytes">8589934592</lshw:size>
          <lshw:width units="bits">64</lshw:width>
          <lshw:clock units="Hz">3200000000</lshw:clock>
          <lshw:hints>
            <lshw:hint name="icon" value="memory" />
          </lshw:hints>
        </lshw:node>
        <lshw:node id="bank:1" claimed="true" class="memory" handle="DMI:0023">
          <lshw:description>DIMM [empty]</lshw:description>
          <lshw:product>NO DIMM</lshw:product>
          <lshw:vendor>NO DIMM</lshw:vendor>
          <lshw:physid>1</lshw:physid>
          <lshw:serial>NO DIMM</lshw:serial>
          <lshw:slot>DIMMB1</lshw:slot>
          <lshw:hints>
            <lshw:hint name="icon" value="memory" />
          </lshw:hints>
        </lshw:node>
        <lshw:node id="bank:2" claimed="true" class="memory" handle="DMI:0025">
          <lshw:description>DIMM [empty]</lshw:description>
          <lshw:product>NO DIMM</lshw:product>
          <lshw:vendor>NO DIMM</lshw:vendor>
          <lshw:physid>2</lshw:physid>
          <lshw:serial>NO DIMM</lshw:serial>
          <lshw:slot>DIMMC1</lshw:slot>
          <lshw:hints>
            <lshw:hint name="icon" value="memory" />
          </lshw:hints>
        </lshw:node>
        <lshw:node id="bank:3" claimed="true" class="memory" handle="DMI:0028">
          <lshw:description>DIMM DDR4 Synchronous Registered (Buffered) 3200 MHz (0.3 ns)</lshw:description>
          <lshw:product>M393A2K40DB3-CWE</lshw:product>
          <lshw:vendor>Samsung</lshw:vendor>
          <lshw:physid>3</lshw:physid>
          <lshw:serial>47541ECB</lshw:serial>
          <lshw:slot>DIMMD1</lshw:slot>
          <lshw:size units="bytes">17179869184</lshw:size>
          <lshw:width units="bits">64</lshw:width>
          <lshw:clock units="Hz">3200000000</lshw:clock>
          <lshw:hints>
            <lshw:hint name="icon" value="memory" />
          </lshw:hints>
        </lshw:node>
        <lshw:node id="bank:4" claimed="true" class="memory" handle="DMI:002A">
          <lshw:description>DIMM DDR4 Synchronous Registered (Buffered) 3200 MHz (0.3 ns)</lshw:description>
          <lshw:product>M393A2K40DB3-CWE</lshw:product>
          <lshw:vendor>Samsung</lshw:vendor>
          <lshw:physid>4</lshw:physid>
          <lshw:serial>47541C45</lshw:serial>
          <lshw:slot>DIMME1</lshw:slot>
          <lshw:size units="bytes">17179869184</lshw:size>
          <lshw:width units="bits">64</lshw:width>
          <lshw:clock units="Hz">3200000000</lshw:clock>
          <lshw:hints>
            <lshw:hint name="icon" value="memory" />
          </lshw:hints>
        </lshw:node>
        <lshw:node id="bank:5" claimed="true" class="memory" handle="DMI:002C">
          <lshw:description>DIMM [empty]</lshw:description>
          <lshw:product>NO DIMM</lshw:product>
          <lshw:vendor>NO DIMM</lshw:vendor>
          <lshw:physid>5</lshw:physid>
          <lshw:serial>NO DIMM</lshw:serial>
          <lshw:slot>DIMMF1</lshw:slot>
          <lshw:hints>
            <lshw:hint name="icon" value="memory" />
          </lshw:hints>
        </lshw:node>
      </lshw:node>
```

```
>>> mem = 8589934592 + 17179869184 + 17179869184
>>> mem / 1024 ** 3
40.0
```

It should be 40GB RAM in total. But it shows 2 strange values (39.8GB and 39.75GB) in the Web UI.

MAAS 3.4.0-14321-g.1027c7664

Revision history for this message
maasuser1 (maasuser1) wrote :
Revision history for this message
Björn Tillenius (bjornt) wrote :

Can you please attach the output of the 50-maas-01-commissioning commissioning script?

Changed in maas:
status: New → Incomplete
Revision history for this message
maasuser1 (maasuser1) wrote :

Hi Björn, thanks for reaching out. Attached is the log file.

Revision history for this message
maasuser1 (maasuser1) wrote :

```
    "memory": {
      "nodes": [
        {
          "numa_node": 0,
          "hugepages_used": 0,
          "hugepages_total": 0,
          "used": 1252884480,
          "total": 42681237504
        }
      ],
      "hugepages_total": 0,
      "hugepages_used": 0,
      "hugepages_size": 2097152,
      "used": 1477681152,
      "total": 42681237504
    }
```

```
>>> 42681237504 / 1024 **3
39.75
>>> 8589934592 + 17179869184 + 17179869184
42949672960
```

Revision history for this message
Björn Tillenius (bjornt) wrote :

Thanks. We use LXD to get the memory information, so we have to poke the LXD team about his problem.

Changed in maas:
status: Incomplete → Triaged
importance: Undecided → Medium
milestone: none → 3.5.x
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.