Merge pull request #113020 from marosset/resource-consumer-windows-updates

resource-consumer windows image use leak-and-touch for memory allocations
This commit is contained in:
Kubernetes Prow Robot 2022-11-02 11:53:06 -07:00 committed by GitHub
commit 50fecb3e36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
1.12
1.13

View File

@ -37,7 +37,7 @@ func ConsumeMem(megabytes int, durationSec int) {
megabytesString := strconv.Itoa(megabytes)
durationSecString := strconv.Itoa(durationSec)
// creating new consume memory process
consumeMem := exec.Command(consumeMemBinary, "-accepteula", "-r", megabytesString, "-e", "0", durationSecString, "-c", "1")
consumeMem := exec.Command(consumeMemBinary, "-accepteula", "-d", megabytesString, "-e", "0", durationSecString, "-c", "1")
err := consumeMem.Start()
if err != nil {
log.Printf("Error while consuming memory: %v", err)