2

I found the command stress-ng -c 0 -l 60 which takes up 60% of the CPU. Is there a similar command for taking a certain percentage of the total memory available?

cbll
  • 143
  • 7

1 Answers1

3

If you're running a Linux flavour your distribution may include a numactl package and otherwise grab the source for the memhog utility included in there from github.

HBruijn
  • 77,029
  • 24
  • 135
  • 201