DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T s

⟦e5da2fcc3⟧ TextFile

    Length: 1259 (0x4eb)
    Types: TextFile
    Names: »ssba.bgr«

Derivation

└─⟦db229ac7e⟧ Bits:30007240 EUUGD20: SSBA 1.2 / AFW Benchmarks
    └─⟦this⟧ »EUUGD20/AFUU-ssba1.21/ssba1.21E/ssba/ssba.bgr« 

TextFile

#! /bin/sh
#				SSBA 1.21E
#
# Script : ssba.bgr
#
# Set the average workload in terms of logged users
# and number of processes associated with the terminal 
# during the run of the SSBA.
# 
# ssba.bgr is a background process which ends when the file
# ssba.end is created.
# The stdout is redirected towards results/ssba.load
#
RES=../results/ssba.res
LOAD=../results/ssba.load
SYN=../results/synthese
END=ssba.end
rm $END 2>/dev/null
trap "touch $END" 1 2 3 15
echo "kill -9 $$" >>ssba.kill
loops=0
sigmausers=0
sigmaprocs=0
while true
do
if [ -f $END ]
then
echo "number of loops done during the run of the SSBA = $loops">>$RES
echo "number of loops done during the run of the SSBA = $loops">>$SYN
		users=`expr $sigmausers / $loops`
echo "average number of logged users on the system = $users">>$RES
echo "average number of logged users on the system = $users">>$SYN
		process=`expr $sigmaprocs / $loops`
echo "average number of processes created by the SSBA = $process">>$RES
echo "average number of processes created by the SSBA = $process">>$SYN
		rm $END 2>/dev/null
		exit 0
fi
	n=`who | wc -l`
	sigmausers=`expr $sigmausers + $n`
	p=`ps | wc -l`
	sigmaprocs=`expr $sigmaprocs + $p`
	loops=`expr $loops + 1`
	date >>$LOAD
	ps >>$LOAD
	sleep 60
done