viernes, 14 de marzo de 2014

Redhat memory stress tool

Hey there again...  If you need to exhaust the linux OS memory to its limits there is an useful tool at: http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/stress.html



Step 1 Get the tool
Step 2 Build/Install it
Step 3 Execute it

# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/stress-1.0.4-4.el6.x86_64.rpm

# sudo rpm -ivh stress-1.0.4-4.el6.x86_64.rpm
warning: stress-1.0.4-4.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ########################################### [100%]
   1:stress                 ########################################### [100%]#

# stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s
stress: info: [1523] dispatching hogs: 8 cpu, 4 io, 2 vm, 0 hdd
stress: info: [1523] successful run completed in 10s
#

Enjoy!
P.S. Currently there is a proposal to change New Zealand flag








Ubuntu memory stress tool

Hey there again...  If you need to exhaust the linux OS memory to its limits there is an useful tool at: http://people.seas.harvard.edu/~apw/stress/

You can find the most accurate information there for that tool. I found there places with follow steps and these were not updated, so in a while mine also might be obsolete, anyway here we go:

Step 1 Get the tool
Step 2 Build/Install it
Step 3 Execute it

# wget http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz
# tar -xvf stress-1.0.4.tar.gz
# cd stress-1.0.4
# ./configure
# make
# sudo make install


# stress --help

# stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s
stress: info: [4487] dispatching hogs: 8 cpu, 4 io, 2 vm, 0 hdd
stress: info: [4487] successful run completed in 10s
alex@acer-kozlex:~/tmp$

note: make sure you have gcc installed #yum install gcc

Enjoy!
P.S. Currently there is a proposal to change New Zealand flag