On 4/29/15 9:55 , G B via smartos-discuss wrote: > How does memory get allocated to an OS zone if max_physical_memory is not > explicitly declared in the json file during zone installation? > I have a small netbook I use to test certain things and it has 2G of memory. > I already had one zone running with 512M of memory, then I created 10 other > zones without the setting. Each of the 10 defaulted to 256M. Therefore, > with those 10 and the original 512M zone, it totals 3G of memory in a 2G > machine. > I'd have assumed that it would have stopped creating them when it reached 2G > but it didn't. Would someone please explain to me how this works?
The default value is described in the vmadm(1M) manual page. It says the default is 256 MB. The property there is a cap, it's not an exclusive amount of memoery (except in the case of KVM because it makes its usage of it at the beginning of time and never lets it go). vmadm doesn't stop you from overprovisoining resources. That is left to the administrator to select and enforce a policy. In this case, if, for example, none of your VMs actually are using that amount of memory, then the fact that it's overprovisioned won't actually come back to bite you. If you do, and you don't have enough swap, then it'll definitely allow you to get into a hurting place. Robert ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
