Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] /proc/meminfo
Date: Tue, 27 Apr 2021 05:28:24
Message-Id: 4e943142-a8ac-247d-5142-b1401766d1da@sys-concept.com
In Reply to: Re: [gentoo-user] /proc/meminfo by cal
1 On 4/26/21 11:17 PM, cal wrote:
2 > On 4/26/21 10:14 PM, thelma@×××××××××××.com wrote:
3 >> On 4/26/21 10:09 PM, cal wrote:
4 >>> On 4/26/21 8:56 PM, thelma@×××××××××××.com wrote:
5 >>>> My new PC has two 8GB sticks so total 16GB RAM
6 >>>> but cat /proc/meminfo
7 >>>> MemTotal:       14230648 kB
8 >>>>   Shouldn't it show 15GB+ ?
9 >>>>
10 >>> The kernel takes up some RAM, although I wouldn't expect 2GB worth.  You can check that with `dmesg | grep Memory:`.
11 >>>
12 >>> The other possibility is that your RAM manufacturer used "gigabyte" to mean 10^9 instead of 2^30, meaning that you actually have fewer than 16GiB.  Hard disk manufacturers have been pulling this trick for years; I'm not sure if it's common for RAM.
13 >>>
14 >>> cal
15 >>
16 >> Thanks for the input. I forgot to mention that this AMD is CPU +GPU, so is it possible that GPU take some RAM?
17 >>
18 >> dmesg | grep Memory
19 >> [ 0.065475] Memory: 14159016K/14587784K available (16397K kernel code, 2527K rwdata, 3968K rodata, 1172K init, 1552K bss, 428508K reserved, 0K cma-reserved)
20 >> [ 1.553492] amdgpu 0000:09:00.0: amdgpu: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
21 >>
22 >>
23 > By CPU+GPU, you mean the GPU is integrated into the CPU die? If so,
24 > then yes, it is likely sharing system RAM. Elsewhere in dmesg probably
25 > says how much. You can also probably find this in the BIOS somewhere.
26 >
27 > cal
28
29 Yes, that is the case. So that would explain missing RAM.