On 11/10/15 6:32 , Haochen Zhang wrote:
> Hi all,
> 
> 
> I’d like to know if I can disable swap in a user zone, just like setting 
> ‘vm.swappiness=0’ in CentOS?

Hi,

There's no direct analogue of this value in illumos. It's my
understanding that setting it to zero on various Linux distributions
doesn't actually mean that nothing will get paged out, just reduces the
frequency.

One of the major differences between Linux and illumos is in this part
of the system, in part because mappings always reserve memory from swap
such that we can guarantee that if we have to page something out, there
is space for it and therefore we don't have to do things like the Linux
OOM killer.

As such, there's a few different approaches that you can take, but I
don't think there's any universal way to guarantee that a user page will
never be paged out.

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

Reply via email to