Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Less available memory than installed
Date: Thu, 03 Jun 2021 19:03:21
Message-Id: 52191203-bba5-bc5a-7981-88290bb921ea@gmail.com
In Reply to: [gentoo-user] Less available memory than installed by "Toldi Balázs"
1 Toldi Balázs wrote:
2 > Hello!
3 >
4 > In my current PC I have 16 GB of RAM installed. It worked fine until
5 > today, when I upgraded my CPU from a Ryzen 5 1500X to a Ryzen 7 2700.
6 > The system boots up just fine, but when I use the free command the
7 > total memory is only 8 GB. When I looked into the BIOS, it showed me
8 > the correct amount. What should I do?
9 >
10 > Output of some relevant commands:
11 >
12 > free -h
13 >
14 >                total        used        free      shared buff/cache  
15 > available
16 > Mem:           7,8Gi       4,4Gi       874Mi       192Mi 2,5Gi      
17 > 3,1Gi
18 >
19 > cat /proc/meminfo
20 >
21 > MemTotal:        8158220 kB
22 > MemFree:          910036 kB
23 > MemAvailable:    3275008 kB
24 > Buffers:            2848 kB
25 > Cached:          2492392 kB
26 > SwapCached:          260 kB
27 > Active:          1622988 kB
28 > Inactive:        4198676 kB
29 > Active(anon):       9500 kB
30 > Inactive(anon):  3507660 kB
31 > Active(file):    1613488 kB
32 > Inactive(file):   691016 kB
33 > Unevictable:          64 kB
34 > Mlocked:              64 kB
35 > SwapTotal:      16777212 kB
36 > SwapFree:       16775140 kB
37 > Dirty:               732 kB
38 > Writeback:             0 kB
39 > AnonPages:       3326444 kB
40 > Mapped:          1322720 kB
41 > Shmem:            193816 kB
42 > KReclaimable:     160248 kB
43 > Slab:             556240 kB
44 > SReclaimable:     160248 kB
45 > SUnreclaim:       395992 kB
46 > KernelStack:       32704 kB
47 > PageTables:        58964 kB
48 > NFS_Unstable:          0 kB
49 > Bounce:                0 kB
50 > WritebackTmp:          0 kB
51 > CommitLimit:    20856320 kB
52 > Committed_AS:   15151980 kB
53 > VmallocTotal:   34359738367 kB
54 > VmallocUsed:      260776 kB
55 > VmallocChunk:          0 kB
56 > Percpu:            10944 kB
57 > HugePages_Total:       0
58 > HugePages_Free:        0
59 > HugePages_Rsvd:        0
60 > HugePages_Surp:        0
61 > Hugepagesize:       2048 kB
62 > Hugetlb:               0 kB
63 > DirectMap4k:     1638688 kB
64 > DirectMap2M:     6699008 kB
65 > DirectMap1G:     1048576 kB
66 >
67 >
68 >  lshw -C memory
69 >
70 > *-memory
71 >        description: System Memory
72 >        physical id: 27
73 >        slot: System board or motherboard
74 >        size: 7967MiB
75 >      *-bank:0
76 >           description: [empty]
77 >           product: Unknown
78 >           vendor: Unknown
79 >           physical id: 0
80 >           serial: Unknown
81 >           slot: DIMM 0
82 >      *-bank:1
83 >           description: DIMM DDR4 Synchronous Unbuffered (Unregistered)
84 > 2400 MHz (0,4 ns) [empty]
85 >           product: 9905702-120.A00G
86 >           vendor: Kingston
87 >           physical id: 1
88 >           serial: EE963485
89 >           slot: DIMM 1
90 >           width: 64 bits
91 >           clock: 2400MHz (0.4ns)
92 >      *-bank:2
93 >           description: [empty]
94 >           product: Unknown
95 >           vendor: Unknown
96 >           physical id: 2
97 >           serial: Unknown
98 >           slot: DIMM 0
99 >      *-bank:3
100 >           description: DIMM DDR4 Synchronous Unbuffered (Unregistered)
101 > 2400 MHz (0,4 ns) [empty]
102 >           product: Unknown
103 >           vendor: Unknown
104 >           physical id: 3
105 >           serial: 08240800
106 >           slot: DIMM 1
107 >           width: 64 bits
108 >           clock: 2400MHz (0.4ns)
109 >
110 >
111 > uname -a
112 >
113 > Linux GlaDOS 5.10.27-gentoo #4 SMP Thu Jun 3 18:19:23 CEST 2021 x86_64
114 > AMD Ryzen 7 2700 Eight-Core Processor AuthenticAMD GNU/Linux
115 >
116 >
117 >
118 >
119
120
121 Could this be a kernel setting issue?  If you boot some other media like
122 a USB stick, DVD/CD or something, does it show the right amount then? 
123 If it does, could be a kernel setting.  If not, interesting problem. 
124
125 If the BIOS sees it, I doubt it is a hardware issue.  It may not rule it
126 out 100% but not likely. 
127
128 It's amazing that things like this still occur when large amounts of
129 memory has been around for a good while now. 
130
131 Hope that helps?
132
133 Dale
134
135 :-)  :-)