mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 02:11:09 +00:00
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:
commit
50fecb3e36
@ -1 +1 @@
|
|||||||
1.12
|
1.13
|
||||||
|
@ -37,7 +37,7 @@ func ConsumeMem(megabytes int, durationSec int) {
|
|||||||
megabytesString := strconv.Itoa(megabytes)
|
megabytesString := strconv.Itoa(megabytes)
|
||||||
durationSecString := strconv.Itoa(durationSec)
|
durationSecString := strconv.Itoa(durationSec)
|
||||||
// creating new consume memory process
|
// 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()
|
err := consumeMem.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error while consuming memory: %v", err)
|
log.Printf("Error while consuming memory: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user