Simulates system resource shortfall on Linux machines… here is a solution to the problem.
Simulates system resource shortfall on Linux machines
Can someone suggest a utility to emulate resource limits on Linux systems? I need to test the performance of the system under stress – memory and CPU.
I
need something to allocate a certain amount of memory to leave less memory for the program I’m testing.
And it also exhausts all available CPUs.
I prefer a utility out of the box rather than writing one myself.
Solution
stress program sounds just like you want it – it’s how it is described:
stress is a simple workload generator
for POSIX systems. It imposes a
configurable amount of CPU, memory,
I/O, and disk stress on the system.