Solaris Loadgenerator: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
(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…“) |
m (Text replacement - "[[Kategorie:" to "[[Category:") |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Solaris|Loadgenerator]] | |||
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 :-). | 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>. | Call it with <scriptname> <number> to generate a load of <number>. | ||
< | <syntaxhighlight lang=bash> | ||
#!/usr/bin/bash | #!/usr/bin/bash | ||
Line 11: | Line 12: | ||
cat /dev/urandom | bzip2 | gzip -9 >/dev/null & | cat /dev/urandom | bzip2 | gzip -9 >/dev/null & | ||
done | done | ||
</ | </syntaxhighlight> |
Latest revision as of 03:52, 26 November 2021
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