add files that are living in ~/bin for a while
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
77eb9f5270
commit
f5a8cd1259
16 changed files with 254 additions and 0 deletions
27
testdisks.sh
Executable file
27
testdisks.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
# Nico Schottelius
|
||||
# 2007-05-21
|
||||
# Script used to test our fbsd dell servers
|
||||
# => kills it
|
||||
# => runs fine on my linux workstation :(
|
||||
|
||||
sequences=10
|
||||
forks=50
|
||||
count=140240
|
||||
tmp=/tmp/testdisks
|
||||
dev=/dev/zero
|
||||
|
||||
i=0
|
||||
|
||||
while [ "$i" -lt "$sequences" ]; do
|
||||
echo "Run: $i ..."
|
||||
k=0
|
||||
while [ "$k" -lt "$forks" ]; do
|
||||
file=$(mktemp "$tmp/$(basename $0).XXXXXXXXXXXXXXXX")
|
||||
( dd if=$dev of="$file" bs=512 count=$count; rm -f "$file" ) &
|
||||
k=$(($k+1))
|
||||
done
|
||||
echo "Waiting ..."
|
||||
wait
|
||||
i=$(($i+1))
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue