Bug 14778 - When running qemu qemux86-64 with 4GB of memory, only 2GB are accessible in the image
Summary: When running qemu qemux86-64 with 4GB of memory, only 2GB are accessible in t...
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 3.4.3
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Anuj Mittal
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2022-04-08 10:10 UTC by Matthias Schoepfer
Modified: 2022-04-12 12:05 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!