-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Content of Jeff Roberson's latest public 'late.tgz' archive
- Loading branch information
0 parents
commit 33be146
Showing
17 changed files
with
796 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh | ||
|
||
if [ $# -lt 5 ]; then | ||
echo "Usage: " $0 "<output dir> <late iterations> <work count> <sleep us> <run sec> <work iterations>" | ||
exit 1 | ||
fi | ||
|
||
DIRECTORY=$1 | ||
ITERATIONS=$2 | ||
WORK_COUNT=$3 | ||
SLEEP_US=$4 | ||
RUN_SEC=$5 | ||
WORK_ITER=$6 | ||
|
||
# The -u option is for synchronization | ||
# LATE_CMD="./late -u -r$RUN_SEC -w $WORK_COUNT -s $SLEEP_US" | ||
|
||
if [ $RUN_SEC -eq 0 ]; then | ||
LATE_CMD="./late -i $WORK_ITER -w $WORK_COUNT -s $SLEEP_US" | ||
else | ||
LATE_CMD="./late -x -r$RUN_SEC -w $WORK_COUNT -s $SLEEP_US" | ||
fi | ||
|
||
mkdir $DIRECTORY | ||
|
||
i=0 | ||
while [ $i -lt $ITERATIONS ]; do | ||
$LATE_CMD > $DIRECTORY/$i & | ||
i=`expr $i + 1` | ||
pids=`echo $pids $!` | ||
done | ||
# kill -USR1 $pids | ||
echo $pids | ||
wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
if [ $# -lt 3 ]; then | ||
echo "Usage: " $0 "<output dir> <iterations> <parallelization>" | ||
exit 1 | ||
fi | ||
|
||
DIRECTORY=$1 | ||
ITERATIONS=$2 | ||
PARALLEL=$3 | ||
|
||
WORK_US=90000 | ||
SLEEP_US=10000 | ||
|
||
WORK_COUNT=`./late -c $WORK_US | grep Calculated | cut -d' ' -f 3` | ||
|
||
mkdir $DIRECTORY | ||
|
||
i=0 | ||
while [ $i -lt $ITERATIONS ]; do | ||
./batch.sh $DIRECTORY/$i $PARALLEL $WORK_COUNT $SLEEP_US 0 10 | ||
i=`expr $i + 1` | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
WORK_COUNT=`./late -c 40000 | grep Calculated | cut -d' ' -f 3` | ||
echo $WORK_COUNT | ||
./late -p -r360 -w $WORK_COUNT -s 50000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
if [ $# -lt 3 ]; then | ||
echo "Usage: " $0 "<output dir> <concurrent> <run sec>" | ||
exit 1 | ||
fi | ||
|
||
DIRECTORY=$1 | ||
CONCURRENT=$2 | ||
RUN_SEC=$3 | ||
|
||
WORK_US=100000 | ||
SLEEP_US=0 | ||
|
||
WORK_COUNT=`./late -c $WORK_US | grep Calculated | cut -d' ' -f 3` | ||
|
||
./batch.sh $DIRECTORY $CONCURRENT $WORK_COUNT $SLEEP_US $RUN_SEC |
Oops, something went wrong.