Skip to content

Commit

Permalink
Merge pull request opencontainers#788 from darrenstahlmsft/RemoveRese…
Browse files Browse the repository at this point in the history
…rvation

Remove Memory reservation on Windows
  • Loading branch information
hqhq authored May 9, 2017
2 parents d42f1eb + aaed975 commit 101e6f9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions config-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ The following parameters can be specified:

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

* **`reservation`** *(uint64, OPTIONAL)* - sets the guaranteed minimum amount of memory for a container in bytes.

#### Example

```json
"windows": {
"resources": {
"memory": {
"limit": 2097152,
"reservation": 524288
"limit": 2097152
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions schema/config-windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
"limit": {
"id": "https://opencontainers.org/schema/bundle/windows/resources/memory/limit",
"$ref": "defs.json#/definitions/uint64"
},
"reservation": {
"id": "https://opencontainers.org/schema/bundle/windows/resources/memory/reservation",
"$ref": "defs.json#/definitions/uint64"
}
}
},
Expand Down
2 changes: 0 additions & 2 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,6 @@ type WindowsResources struct {
type WindowsMemoryResources struct {
// Memory limit in bytes.
Limit *uint64 `json:"limit,omitempty"`
// Memory reservation in bytes.
Reservation *uint64 `json:"reservation,omitempty"`
}

// WindowsCPUResources contains CPU resource management settings.
Expand Down

0 comments on commit 101e6f9

Please sign in to comment.