hackbench - Taken out the runit.pl script

We don't need to ship that, and Craig Thomas wrote only that code as far
as we know, so taking him out of man page as well.
This commit is contained in:
David Sommerseth 2010-02-24 16:26:13 +01:00
parent 1bb501caeb
commit 94d8566d6c
2 changed files with 1 additions and 126 deletions

View File

@ -49,9 +49,7 @@ Shows a simple help screen
.SH "AUTHORS"
.LP
hackbench was written by Rusty Russell <rusty@rustcorp.com.au>
with contributions from Craig Thomas, Yanmin Zhang
.br
<yanmin_zhang@linux.intel.com>,
with contributions from Yanmin Zhang <yanmin_zhang@linux.intel.com>,
Ingo Molnar <mingo@elte.hu> and David Sommerseth <davids@redhat.com>
This manual page was written by Clark Williams <williams@redhat.com>

View File

@ -1,123 +0,0 @@
#!/usr/bin/perl -w
use Env;
if ( ! $STP_CLIENT_API )
{
print "No STP environment. Exiting.\n";
exit -1;
}
# This will take two optional arguments:
# STEP: Min value and The step to use
# MAX: The maximum # of groups to reach in testing
if ($#ARGV == 1)
{
$STEP = $ARGV[0];
$MAX = $ARGV[1];
} else {
$STEP = 20;
$MAX = 100;
}
# We suggest that unless you want to build in package listings for each possible
# target OS, you should have a script ready to automate the build process.
print "\nWelcome to the hackbench test\n\n";
print "---Making the binaries (via make clean all)---\n";
print `rm -rf bin`;
print `tar -zxf hackbench_bin.tar.gz`;
chdir "bin";
print `make clean all 1> /dev/null`;
print "---Done---\n\n";
# Create final index.html
open FHI, ">$WRAP_HOME/index.html";
open FHO, "<$RESULTS_HEADER";
while(<FHO>){
print FHI;
}
close FHO;
open FHO, "<$WRAP_HOME/index.body";
while(<FHO>){
print FHI;
}
close FHO;
open FHO, "<$RESULTS_FOOTER";
while(<FHO>){
print FHI;
}
close FHI;
close FHO;
open (FILE, ">>$RESULTS/data") || die "cannot append to results file";
print FILE "# Hackbench Results\n";
print FILE "# -------------------------------\n";
print FILE "# Processes | Ave Time(sec)\n";
print FILE "# -------------------------------\n";
# REMEMBER, any output form this file is sent as an email to the user, make sure it's
# short, informative and not filled with binary error spews.
print "========================\n";
print "Executing hackbench runs\n";
print "========================\n\n";
# This is a basic run with simple values
# The system makes this directory now
#system "rm -rf $RESULTS";
#mkdir "$RESULTS";
@times = ();
print "Running with $STEP to $MAX groups, with step $STEP\n";
system ("/usr/bin/stp_timeout.sh 2h hackbench &");
system ("stp_profile 'Test set-up complete.'");
for ($numgr = $STEP; $numgr <= $MAX; $numgr += $STEP )
{
print "Running with $numgr groups";
for ($run = 0; $run < 5; $run++)
{
if ( `./hackbench $numgr` =~ m/Time: ([0-9.]+)/ ) {
$time = $1;
}
push(@times, $time);
print ".";
}
$ave = 0;
foreach $time (@times)
{
$ave += $time;
}
$ave = $ave / scalar(@times);
print " Average $ave s\n";
print FILE "$numgr $ave\n";
}
close FILE;
system ("stp_profile 'Run test.'");
open FHO, "<$RESULTS/data";
open FHI, ">>$RESULTS_EMAIL";
while (<FHO>){
print FHI;
}
close FHO;
close FHI;
# Make the plot
system "cp -a $WRAP_HOME/graph.cfg $RESULTS/";
chdir $RESULTS;
chmod 0755, 'graph.cfg';
system ("$RESULTS/graph.cfg");
exit;