mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Look at modify time to check if kmem limits are initialized.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
This commit is contained in:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user