How do you turn off the inactive ram facility within OSX?

Joined
Nov 13, 2010
Messages
2
Reaction score
0
Points
1
Location
Leeds, United Kingdom
Your Mac's Specs
MB PRO, 2.66 i7, 8GB RAM
Hi There,

I have a problem with OSX where I am trying to use Virtualbox to load a Solaris instance and a Oracle VDI. The problem is that guest OS sees the inactive RAM as being used and unavailable.

is there a way of turning off the inactive RAM feature within OSX?

Please help!

Martin
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
First off, don't mess around with memory management in OS X. It's one of those things that is best left to the OS to manage. Second, once you start a VM, the memory that you set for it in VB will be allocated to it and inactive memory will be used if need be. I say this because, as Apple notes, inactive memory will be allocated to another application if it's required.
 

bobtomay

,
Retired Staff
Joined
Dec 22, 2006
Messages
26,561
Reaction score
677
Points
113
Location
Texas, where else?
Your Mac's Specs
15" MBP '06 2.33 C2D 4GB 10.7; 13" MBA '14 1.8 i7 8GB 10.11; 21" iMac '13 2.9 i5 8GB 10.11; 6S
If you want more memory for your virtual machine, then you need to head for settings in Virtualbox and adjust the amount of your memory you want to allow the VMs to use.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
One other thing - if this VM is essential to your job (or something else) and you need to have a particular amount of RAM allocated to it, consider putting more RAM in your machine if you find yourself running low frequently.
 
OP
M
Joined
Nov 13, 2010
Messages
2
Reaction score
0
Points
1
Location
Leeds, United Kingdom
Your Mac's Specs
MB PRO, 2.66 i7, 8GB RAM
inactive RAM reply

Hi There,

The problem is more that the Oracle VDI engine (OSX -> VBox -> Solaris + VDI) looks back at its host and looks at the RAM available to VBox. When the base OS does anything it just allocates the RAM to inactive (great for 99% of OSX life I guess). With this the VDI package on solaris gets worried that there is no free RAM in the host and throws a wobbler, hence can inactive RAM be turned off.

Thanks


Martin
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,765
Reaction score
2,105
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Technically Solaris or any guest OS doesn't and shouldn't know that it's operating in a virtual environment within VirtualBox or any other software..they just use the amount of RAM allocated to it..

Should the guest OS use up all the allocated memory and OS X wants to allocate more but there is no more free RAM then it might start swapping to the HD..

Regards
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top