Skip to content

Commit aaed975

Browse files
committed
Remove Memory reservation on Windows
Signed-off-by: Darren Stahl <[email protected]>
1 parent d42f1eb commit aaed975

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

config-windows.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,13 @@ The following parameters can be specified:
1515

1616
* **`limit`** *(uint64, OPTIONAL)* - sets limit of memory usage in bytes.
1717

18-
* **`reservation`** *(uint64, OPTIONAL)* - sets the guaranteed minimum amount of memory for a container in bytes.
19-
2018
#### Example
2119

2220
```json
2321
"windows": {
2422
"resources": {
2523
"memory": {
26-
"limit": 2097152,
27-
"reservation": 524288
24+
"limit": 2097152
2825
}
2926
}
3027
}

schema/config-windows.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
"limit": {
1616
"id": "https://opencontainers.org/schema/bundle/windows/resources/memory/limit",
1717
"$ref": "defs.json#/definitions/uint64"
18-
},
19-
"reservation": {
20-
"id": "https://opencontainers.org/schema/bundle/windows/resources/memory/reservation",
21-
"$ref": "defs.json#/definitions/uint64"
2218
}
2319
}
2420
},

specs-go/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,6 @@ type WindowsResources struct {
450450
type WindowsMemoryResources struct {
451451
// Memory limit in bytes.
452452
Limit *uint64 `json:"limit,omitempty"`
453-
// Memory reservation in bytes.
454-
Reservation *uint64 `json:"reservation,omitempty"`
455453
}
456454

457455
// WindowsCPUResources contains CPU resource management settings.

0 commit comments

Comments
 (0)