Skip to content

Commit 56b8875

Browse files
committed
Merge pull request #235 from yangdongsheng/kmem_tcp
cgroup: Add support for memory.kmem.tcp.limit_in_bytes
2 parents 772f073 + e9a6d94 commit 56b8875

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

runtime-config-linux.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ The following parameters can be specified to setup the controller:
201201

202202
* **`kernel`** *(uint64, optional)* - sets hard limit for kernel memory
203203

204+
* **`kernelTCP`** *(uint64, optional)* - sets hard limit for kernel memory in tcp using
205+
204206
* **`swappiness`** *(uint64, optional)* - sets swappiness parameter of vmscan (See sysctl's vm.swappiness)
205207

206208
###### Example
@@ -211,6 +213,7 @@ The following parameters can be specified to setup the controller:
211213
"reservation": 0,
212214
"swap": 0,
213215
"kernel": 0,
216+
"kernelTCP": 0,
214217
"swappiness": -1
215218
}
216219
```

runtime_config_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ type Memory struct {
158158
Swap uint64 `json:"swap"`
159159
// Kernel memory limit (in bytes)
160160
Kernel uint64 `json:"kernel"`
161+
// Kernel memory limit for tcp (in bytes)
162+
KernelTCP uint64 `json:"kernelTCP"`
161163
// How aggressive the kernel will swap memory pages. Range from 0 to 100. Set -1 to use system default
162164
Swappiness uint64 `json:"swappiness"`
163165
}

0 commit comments

Comments
 (0)