[Lxc-users] RAM & swap caps - what isn't allowed?
Trent W. Buck
twb at cybersource.com.au
Thu Dec 16 04:44:39 UTC 2010
twb at cybersource.com.au (Trent W. Buck)
writes:
> Some combinations of RAM and swap caps aren't allowed, and I'm having a
> hard time understanding the pattern (i.e. *why*). From the examples
> below, I *think* I cannot assign a smaller swap cap than RAM cap.
The explanation for this is obvious when I go back to the kernel docs:
memory.limit_in_bytes # set/show limit of memory usage
memory.memsw.limit_in_bytes # set/show limit of memory+Swap usage
Since the latter number includes the former, it obviously cannot be
less. Likewise, if the two values are equal, that should
> Also, is there a way to specify that a container cannot use ANY swap,
> i.e. the swap cap is 0?
...mean no paging out to swap is allowed.
More information about the lxc-users
mailing list