mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
resource-consumer windows image use lead-and-touch for memory allocations
This commit is contained in:
parent
b601769721
commit
170555b9f5
@ -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