Solaris Loadgenerator

From Lolly's Wiki
Revision as of 16:08, 4 June 2015 by Lollypop (talk | contribs) (Die Seite wurde neu angelegt: „This is a little script to generate load. It uses gzip and bzip2 to generate load fetched from void and compressed into the void again :-). Call it with <scri…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This is a little script to generate load. It uses gzip and bzip2 to generate load fetched from void and compressed into the void again :-).

Call it with <scriptname> <number> to generate a load of <number>.

#!/usr/bin/bash

count=$1

for((i=1;i<=${count};i++))
do
  cat /dev/urandom | bzip2 | gzip -9 >/dev/null &
done