Gentoo Archives: gentoo-user

From: cal <cal@×××××××××.technology>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] /proc/meminfo
Date: Tue, 27 Apr 2021 05:17:22
Message-Id: 9bd57a6e-f2e0-d2d9-f7d7-c89ab2cd1040@mail.meme.technology
In Reply to: Re: [gentoo-user] /proc/meminfo by thelma@sys-concept.com
1 On 4/26/21 10:14 PM, thelma@×××××××××××.com wrote:
2 > On 4/26/21 10:09 PM, cal wrote:
3 >> On 4/26/21 8:56 PM, thelma@×××××××××××.com wrote:
4 >>> My new PC has two 8GB sticks so total 16GB RAM
5 >>> but cat /proc/meminfo
6 >>> MemTotal:       14230648 kB
7 >>>   Shouldn't it show 15GB+ ?
8 >>>
9 >> The kernel takes up some RAM, although I wouldn't expect 2GB worth.  You can check that with `dmesg | grep Memory:`.
10 >>
11 >> 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.
12 >>
13 >> cal
14 >
15 > Thanks for the input. I forgot to mention that this AMD is CPU +GPU, so is it possible that GPU take some RAM?
16 >
17 > dmesg | grep Memory
18 > [ 0.065475] Memory: 14159016K/14587784K available (16397K kernel code, 2527K rwdata, 3968K rodata, 1172K init, 1552K bss, 428508K reserved, 0K cma-reserved)
19 > [ 1.553492] amdgpu 0000:09:00.0: amdgpu: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
20 >
21 >
22 By CPU+GPU, you mean the GPU is integrated into the CPU die? If so,
23 then yes, it is likely sharing system RAM. Elsewhere in dmesg probably
24 says how much. You can also probably find this in the BIOS somewhere.
25
26 cal

Replies

Subject Author
Re: [gentoo-user] /proc/meminfo thelma@×××××××××××.com