1 # Copyright (c) 2006 The Regents of The University of Michigan
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met: redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer;
8 # redistributions in binary form must reproduce the above copyright
9 # notice, this list of conditions and the following disclaimer in the
10 # documentation and/or other materials provided with the distribution;
11 # neither the name of the copyright holders nor the names of its
12 # contributors may be used to endorse or promote products derived from
13 # this software without specific prior written permission.
15 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 from SysPaths
import *
32 def __init__(self
, script
=None, mem
=None, disk
=None):
33 self
.scriptname
= script
39 return script(self
.scriptname
)
51 return disk(self
.diskname
)
53 return env
.get('LINUX_IMAGE', disk('linux-latest.img'))
55 #Benchmarks are defined as a key in a dict which is a list of Machines
56 # The first defined machine is the test system, the others are driving systems
57 # Currently there is only support for 1 or 2 machines
60 Benchmarks
['PovrayBench'] = [Machine('povray-bench.rcS', '512MB', 'povray.img')]
61 Benchmarks
['PovrayAutumn'] = [Machine('povray-autumn.rcS', '512MB', 'povray.img')]
62 Benchmarks
['NetperfStream'] = [Machine('netperf-stream-client.rcS'),
63 Machine('netperf-server.rcS')]
64 Benchmarks
['NetperfStreamNT'] = [Machine('netperf-stream-nt-client.rcS'),
65 Machine('netperf-server.rcS')]
66 Benchmarks
['NetperfMaerts'] = [Machine('netperf-maerts-client.rcS'),
67 Machine('netperf-server.rcS')]
68 Benchmarks
['SurgeStandard'] = [Machine('surge-server.rcS', '512MB'),
69 Machine('surge-client.rcS', '256MB')]
70 Benchmarks
['SurgeSpecweb'] = [Machine('spec-surge-server.rcS', '512MB'),
71 Machine('spec-surge-client.rcS', '256MB')]
72 Benchmarks
['Nhfsstone'] = [Machine('nfs-server-nhfsstone.rcS', '512MB'),
73 Machine('nfs-client-nhfsstone.rcS')]
74 Benchmarks
['Nfs'] = [Machine('nfs-server.rcS', '900MB'),
75 Machine('nfs-client-dbench.rcS')]
76 Benchmarks
['NfsTcp'] = [Machine('nfs-server.rcS', '900MB'),
77 Machine('nfs-client-tcp.rcS')]
78 Benchmarks
['IScsiInitiator'] = [Machine('iscsi-client.rcS', '512MB'),
79 Machine('iscsi-server.rcS', '512MB')]
80 Benchmarks
['IScsiTarget'] = [Machine('iscsi-server.rcS', '512MB'),
81 Machine('iscsi-client.rcS', '512MB')]
82 Benchmarks
['Validation'] = [Machine('iscsi-server.rcS', '512MB'),
83 Machine('iscsi-client.rcS', '512MB')]
84 Benchmarks
['Ping'] = [Machine('ping-server.rcS',),
85 Machine('ping-client.rcS')]
88 Benchmarks
['ValAccDelay'] = [Machine('devtime.rcS', '512MB')]
89 Benchmarks
['ValAccDelay2'] = [Machine('devtimewmr.rcS', '512MB')]
90 Benchmarks
['ValMemLat'] = [Machine('micro_memlat.rcS', '512MB')]
91 Benchmarks
['ValMemLat2MB'] = [Machine('micro_memlat2mb.rcS', '512MB')]
92 Benchmarks
['ValMemLat8MB'] = [Machine('micro_memlat8mb.rcS', '512MB')]
93 Benchmarks
['ValMemLat'] = [Machine('micro_memlat8.rcS', '512MB')]
94 Benchmarks
['ValTlbLat'] = [Machine('micro_tlblat.rcS', '512MB')]
95 Benchmarks
['ValSysLat'] = [Machine('micro_syscall.rcS', '512MB')]
96 Benchmarks
['ValCtxLat'] = [Machine('micro_ctx.rcS', '512MB')]
97 Benchmarks
['ValStream'] = [Machine('micro_stream.rcS', '512MB')]
98 Benchmarks
['ValStreamScale'] = [Machine('micro_streamscale.rcS', '512MB')]
99 Benchmarks
['ValStreamCopy'] = [Machine('micro_streamcopy.rcS', '512MB')]
102 Benchmarks
['bnAn'] = [Machine('/z/saidi/work/m5.newmem.head/configs/boot/bn-app.rcS', '128MB', '/z/saidi/work/bottleneck/bnimg.img')]
104 benchs
= Benchmarks
.keys()
106 DefinedBenchmarks
= ", ".join(benchs
)