Bug 14778

Summary: When running qemu qemux86-64 with 4GB of memory, only 2GB are accessible in the image
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Matthias Schoepfer <matthias.schoepfer>
Component: meta-yoctoAssignee: Anuj Mittal <anuj.mittal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: poky.bs.watcher, poky.watcher, richard.purdie
Version: 3.4.3   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Matthias Schoepfer 2022-04-08 10:10:42 UTC
Using latest honister (3.4.3), when I bitbake core-image-minimal and run qemu with:
runqemu qemux86-64 qemuparams="-m 4096" core-image-minimal
the VM will only have access to 2GB of memory:

root@qemux86-64:~# free -m
              total        used        free      shared  buff/cache   available
Mem:        2032708       43564     1970920         228       18224     1962316
Swap:             0           0           0
Comment 1 Richard Purdie 2022-04-12 08:45:56 UTC
I think this may be fixed with https://git.yoctoproject.org/poky/commit/?id=d38868cfff2f4be2bc9e44951b01785b142d91e4 ?
Comment 2 Matthias Schoepfer 2022-04-12 12:05:57 UTC
I can confirm that applying this commit fixes the issue. 

Thanks!