Look at modify time to check if kmem limits are initialized.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
This commit is contained in:
Vishnu kannan
2016-07-06 15:14:25 -07:00
parent 9d7831e41d
commit 8dd3d63455
2 changed files with 42 additions and 26 deletions
+6
View File
@@ -227,6 +227,12 @@ func TestMemorySetKernelMemory(t *testing.T) {
helper.writeFileContents(map[string]string{
"memory.kmem.limit_in_bytes": strconv.Itoa(kernelMemoryBefore),
})
helper.writeFileContents(map[string]string{
"memory.kmem.max_usage_in_bytes": strconv.Itoa(kernelMemoryBefore),
})
helper.writeFileContents(map[string]string{
"tasks": "",
})
helper.CgroupData.config.Resources.KernelMemory = kernelMemoryAfter
memory := &MemoryGroup{}