Memory allocation question: Linux Guest, Mac Host

Discussions about using Linux guests in VirtualBox.
Post Reply
mark.j.bobak
Posts: 8
Joined: 4. Aug 2015, 21:49

Memory allocation question: Linux Guest, Mac Host

Post by mark.j.bobak »

Hi all,

Host: Macbook Pro, 16GB, runnning 10.10.4
Guest: Oracle Linux 6.7

I have a host system that is a Macbook Pro with 16GB of RAM.

I'm trying to create a Linux Guest with 4 GB of RAM.

When I create the guest, I specify 4096 MB RAM, O/S type Linux, Version Oracle (64-bit). When I load the O/S, and look at /proc/meminfo, I see this:

Code: Select all

[oracle@racattack1 database]$ grep MemTotal /proc/meminfo 
MemTotal:        3785488 kB
Through a bit of trial and error, I determined that if I want my guest to see 4096 MB, I need to allocate 4504 MB in VirtualBox.

Can anyone explain the discrepancy?

Thanks,

-Mark
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Memory allocation question: Linux Guest, Mac Host

Post by mpack »

Strange how you can wait forever for a particular question to be asked, and then two come along at once...

viewtopic.php?f=6&t=69502
Post Reply