Skip to content

Commit

Permalink
Content of Jeff Roberson's latest public 'late.tgz' archive
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Roberson authored and OlCe2 committed Sep 9, 2024
0 parents commit 33be146
Show file tree
Hide file tree
Showing 17 changed files with 796 additions and 0 deletions.
34 changes: 34 additions & 0 deletions batch.sh
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
23 changes: 23 additions & 0 deletions compiler.sh
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
3 changes: 3 additions & 0 deletions creep.sh
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
17 changes: 17 additions & 0 deletions hog.sh
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
Loading

0 comments on commit 33be146

Please sign in to comment.