Stress-ng - Overload Memory

2.1k Views Asked by At

I want to test the systems reaction to a process that wants to consume more memory than there is available. I run stress-ng with the following command (on a 6G RAM machine): stress-ng --vm-bytes 8G --vm-keep -m 1 --aggressive but I get this error: stress-ng: error: [5035] stress-ng-vm: gave up trying to mmap, no available memory Is it possible to force the program to ignore its own secure mechanism ?

1

There are 1 best solutions below

2
On BEST ANSWER

try to add this parameter --vm 4
I was having the same problem and it is gone after that.