sakaki- / gentoo-on-rpi-64bit

Bootable 64-bit Gentoo image for the Raspberry Pi4B, 3B & 3B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera and h/w codec support, weekly-autobuild binhost
GNU General Public License v3.0
925 stars 127 forks source link

Only 3.7 GIB RAM on RPI4B RAM 4G #99

Closed ykla closed 4 years ago

ykla commented 4 years ago

Hi, I using your pi64 latest system, but only 3.7 RAM I can use, Does it used by GPU? pi64 ~ # free -h total used free shared buff/cache available Mem: 3.7Gi 95Mi 3.3Gi 0.0Ki 270Mi 3.5Gi Swap: 1.0Gi 0B 1.0Gi pi64 ~ #

sakaki- commented 4 years ago

Amongst other things, yes. Try running:

demouser@pi64 ~ $ dmesg | grep Memory
ykla commented 4 years ago

pi64 ~ # dmesg | grep Memory [ 0.000000] Memory: 3581188K/3997696K available (9660K kernel code, 1132K rwdata, 2924K rodata, 1088K init, 935K bss, 154364K reserved, 262144K cma-reserved) [ 242.726493] usb 2-1: Product: TransMemory [ 243.746002] scsi 0:0:0:0: Direct-Access TOSHIBA TransMemory PMAP PQ: 0 ANSI: 6

ghost commented 4 years ago

thats expected.. set gpu_mem to 16 ... the cma allocates memory for the gpu on mesa driver.

sakaki- commented 4 years ago

Closing.