I am still trying to find a better way, so I read the source of 
/smartdc/lib/smartos_prompt_config.sh, then find the following comment before 
it create the swap zone:

We cannot allow the swap size to be less than the size of DRAM, lest we run 
into the availrmem double accounting issue for locked anonymous memory that is 
backed by in-memory swap (which will severely and artificially limit VM 
tenancy).  We will therfore not create a swap device smaller than DRAM -- but 
we still allow for the configuration variable to account for actual consumed 
space by using it to set the refreservation on the swap volume if/when the 
specified size is smaller than DRAM.

What is "availrmem double accounting issue"? Does it mean that it is not a good 
idea to install smartos on large memory small disk machine? Or I can just 
ignore it, and set my favorite size of swap?

Best, Si-Qi

> 在 2016年11月26日,20:16,Si-Qi Liu <[email protected]> 写道:
> 
> Dear Ian,
> 
> Thank you for your advice. It works! Though I really don't like this 
> literally get-hands-dirty workaround...
> 
> I pull most memories to make the machine "normal". Then install SmartOS, no 
> problem. Then resize the
> swap zone to 2G and poweroff. Then insert the memories back and boot again. A 
> new problem arises here:
> the svc:/system/filesystem/smartdc:default service fails. I check the log, 
> the reason is the dump zone is too
> small. It seems that the default size of this zone is 1/100 of the whole 
> disk, so it is set to be 1.43G. But when
> the machine has 256G memory, a dump zone should be at least 5.xxG (I don't 
> know how this number comes).
> So I resize the dump zone to fulfill the requirement, and reboot again. There 
> is no problem this time.
> 
> Best wishes, Si-Qi
> 
> 
>> 在 2016年11月25日,17:29,Ian Collins <[email protected]> 写道:
>> 
>> On 11/25/16 10:05 PM, Si-Qi Liu wrote:
>>> Hi,
>>> 
>>> I am trying to install SmartOS on my HP Z820 workstation, which has 256G 
>>> memory and 160G SSD hard disk.
>>> 
>>> There is no problem when I setup the network, the zpool, the root password, 
>>> and so on. Finally, when I press 'y' and
>>> 'Enter' to start to installation, it fail. The reason is quite simple: when 
>>> the installing script create the swap zone, there
>>> is no enough disk space, so it just stop there, and give me a prompt. I 
>>> tried to create a small swap zone by myself,
>>> but I didn't know what to do next. Simply reboot doesn't work.
>> 
>> Have you tried pulling some of the memory just for the install?
>> 
>>> BTW, for a machine with 256G memory, is there necessary to create a swap 
>>> zone? If so, how big should it be?
>> 
>> Once you have installed, you can resize the swap volume.  I'd say yes, and 
>> for this machine, keep it small.
>> 
>> Cheers.
>> 
>> --
>> Ian.
>> 
> 
> 


-------------------------------------------
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

Reply via email to