From 09dff758c4fbbf4d299c1d087f0bba8c956058cf Mon Sep 17 00:00:00 2001 From: Zefan Li Date: Mon, 6 Jul 2015 10:53:26 +0800 Subject: [PATCH] Add memory swappiness to linux spec Signed-off-by: Zefan Li --- spec_linux.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec_linux.go b/spec_linux.go index 207f5c88..43436448 100644 --- a/spec_linux.go +++ b/spec_linux.go @@ -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 {