Add memory swappiness to linux spec

Signed-off-by: Zefan Li <lizefan@huawei.com>
This commit is contained in:
Zefan Li 2015-07-06 10:53:26 +08:00
parent d803cc18a3
commit 09dff758c4
1 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,8 @@ type Memory struct {
Swap int64 `json:"swap"`
// Kernel memory limit (in bytes)
Kernel int64 `json:"kernel"`
// How aggressive the kernel will swap memory pages. Range from 0 to 100. Set -1 to use system default.
Swappiness int64 `json:"swappiness"`
}
type CPU struct {