Benchmarks.py revision 4418
14418Ssaidi@eecs.umich.edu# Copyright (c) 2006-2007 The Regents of The University of Michigan 22995Ssaidi@eecs.umich.edu# All rights reserved. 32995Ssaidi@eecs.umich.edu# 42995Ssaidi@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 52995Ssaidi@eecs.umich.edu# modification, are permitted provided that the following conditions are 62995Ssaidi@eecs.umich.edu# met: redistributions of source code must retain the above copyright 72995Ssaidi@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 82995Ssaidi@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 92995Ssaidi@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 102995Ssaidi@eecs.umich.edu# documentation and/or other materials provided with the distribution; 112995Ssaidi@eecs.umich.edu# neither the name of the copyright holders nor the names of its 122995Ssaidi@eecs.umich.edu# contributors may be used to endorse or promote products derived from 132995Ssaidi@eecs.umich.edu# this software without specific prior written permission. 142995Ssaidi@eecs.umich.edu# 152995Ssaidi@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 162995Ssaidi@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 172995Ssaidi@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 182995Ssaidi@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 192995Ssaidi@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 202995Ssaidi@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 212995Ssaidi@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 222995Ssaidi@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 232995Ssaidi@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 242995Ssaidi@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 252995Ssaidi@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 262995Ssaidi@eecs.umich.edu# 272995Ssaidi@eecs.umich.edu# Authors: Ali Saidi 282995Ssaidi@eecs.umich.edu 292995Ssaidi@eecs.umich.edufrom SysPaths import * 302995Ssaidi@eecs.umich.edu 313304Sstever@eecs.umich.educlass SysConfig: 322995Ssaidi@eecs.umich.edu def __init__(self, script=None, mem=None, disk=None): 332995Ssaidi@eecs.umich.edu self.scriptname = script 342995Ssaidi@eecs.umich.edu self.diskname = disk 352995Ssaidi@eecs.umich.edu self.memsize = mem 362995Ssaidi@eecs.umich.edu 372995Ssaidi@eecs.umich.edu def script(self): 382995Ssaidi@eecs.umich.edu if self.scriptname: 392995Ssaidi@eecs.umich.edu return script(self.scriptname) 402995Ssaidi@eecs.umich.edu else: 412995Ssaidi@eecs.umich.edu return '' 422995Ssaidi@eecs.umich.edu 432995Ssaidi@eecs.umich.edu def mem(self): 442995Ssaidi@eecs.umich.edu if self.memsize: 452995Ssaidi@eecs.umich.edu return self.memsize 462995Ssaidi@eecs.umich.edu else: 472995Ssaidi@eecs.umich.edu return '128MB' 482995Ssaidi@eecs.umich.edu 492995Ssaidi@eecs.umich.edu def disk(self): 502995Ssaidi@eecs.umich.edu if self.diskname: 512995Ssaidi@eecs.umich.edu return disk(self.diskname) 522995Ssaidi@eecs.umich.edu else: 532995Ssaidi@eecs.umich.edu return env.get('LINUX_IMAGE', disk('linux-latest.img')) 542995Ssaidi@eecs.umich.edu 553304Sstever@eecs.umich.edu# Benchmarks are defined as a key in a dict which is a list of SysConfigs 562995Ssaidi@eecs.umich.edu# The first defined machine is the test system, the others are driving systems 572995Ssaidi@eecs.umich.edu 583304Sstever@eecs.umich.eduBenchmarks = { 593304Sstever@eecs.umich.edu 'PovrayBench': [SysConfig('povray-bench.rcS', '512MB', 'povray.img')], 603304Sstever@eecs.umich.edu 'PovrayAutumn': [SysConfig('povray-autumn.rcS', '512MB', 'povray.img')], 612995Ssaidi@eecs.umich.edu 623304Sstever@eecs.umich.edu 'NetperfStream': [SysConfig('netperf-stream-client.rcS'), 633304Sstever@eecs.umich.edu SysConfig('netperf-server.rcS')], 644418Ssaidi@eecs.umich.edu 'NetperfStreamUdp': [SysConfig('netperf-stream-udp-client.rcS'), 654418Ssaidi@eecs.umich.edu SysConfig('netperf-server.rcS')], 664418Ssaidi@eecs.umich.edu 'NetperfUdpLocal': [SysConfig('netperf-stream-udp-local.rcS')], 673304Sstever@eecs.umich.edu 'NetperfStreamNT': [SysConfig('netperf-stream-nt-client.rcS'), 683304Sstever@eecs.umich.edu SysConfig('netperf-server.rcS')], 693304Sstever@eecs.umich.edu 'NetperfMaerts': [SysConfig('netperf-maerts-client.rcS'), 703304Sstever@eecs.umich.edu SysConfig('netperf-server.rcS')], 713304Sstever@eecs.umich.edu 'SurgeStandard': [SysConfig('surge-server.rcS', '512MB'), 723304Sstever@eecs.umich.edu SysConfig('surge-client.rcS', '256MB')], 733304Sstever@eecs.umich.edu 'SurgeSpecweb': [SysConfig('spec-surge-server.rcS', '512MB'), 743304Sstever@eecs.umich.edu SysConfig('spec-surge-client.rcS', '256MB')], 753304Sstever@eecs.umich.edu 'Nhfsstone': [SysConfig('nfs-server-nhfsstone.rcS', '512MB'), 763304Sstever@eecs.umich.edu SysConfig('nfs-client-nhfsstone.rcS')], 773304Sstever@eecs.umich.edu 'Nfs': [SysConfig('nfs-server.rcS', '900MB'), 783304Sstever@eecs.umich.edu SysConfig('nfs-client-dbench.rcS')], 793304Sstever@eecs.umich.edu 'NfsTcp': [SysConfig('nfs-server.rcS', '900MB'), 803304Sstever@eecs.umich.edu SysConfig('nfs-client-tcp.rcS')], 813304Sstever@eecs.umich.edu 'IScsiInitiator': [SysConfig('iscsi-client.rcS', '512MB'), 823304Sstever@eecs.umich.edu SysConfig('iscsi-server.rcS', '512MB')], 833304Sstever@eecs.umich.edu 'IScsiTarget': [SysConfig('iscsi-server.rcS', '512MB'), 843304Sstever@eecs.umich.edu SysConfig('iscsi-client.rcS', '512MB')], 853304Sstever@eecs.umich.edu 'Validation': [SysConfig('iscsi-server.rcS', '512MB'), 863304Sstever@eecs.umich.edu SysConfig('iscsi-client.rcS', '512MB')], 873304Sstever@eecs.umich.edu 'Ping': [SysConfig('ping-server.rcS',), 883304Sstever@eecs.umich.edu SysConfig('ping-client.rcS')], 892995Ssaidi@eecs.umich.edu 903304Sstever@eecs.umich.edu 'ValAccDelay': [SysConfig('devtime.rcS', '512MB')], 913304Sstever@eecs.umich.edu 'ValAccDelay2': [SysConfig('devtimewmr.rcS', '512MB')], 923304Sstever@eecs.umich.edu 'ValMemLat': [SysConfig('micro_memlat.rcS', '512MB')], 933304Sstever@eecs.umich.edu 'ValMemLat2MB': [SysConfig('micro_memlat2mb.rcS', '512MB')], 943304Sstever@eecs.umich.edu 'ValMemLat8MB': [SysConfig('micro_memlat8mb.rcS', '512MB')], 953304Sstever@eecs.umich.edu 'ValMemLat': [SysConfig('micro_memlat8.rcS', '512MB')], 963304Sstever@eecs.umich.edu 'ValTlbLat': [SysConfig('micro_tlblat.rcS', '512MB')], 973304Sstever@eecs.umich.edu 'ValSysLat': [SysConfig('micro_syscall.rcS', '512MB')], 983304Sstever@eecs.umich.edu 'ValCtxLat': [SysConfig('micro_ctx.rcS', '512MB')], 993304Sstever@eecs.umich.edu 'ValStream': [SysConfig('micro_stream.rcS', '512MB')], 1003304Sstever@eecs.umich.edu 'ValStreamScale': [SysConfig('micro_streamscale.rcS', '512MB')], 1013304Sstever@eecs.umich.edu 'ValStreamCopy': [SysConfig('micro_streamcopy.rcS', '512MB')], 1022995Ssaidi@eecs.umich.edu 1033372Sstever@eecs.umich.edu 'MutexTest': [SysConfig('mutex-test.rcS', '128MB')], 1043372Sstever@eecs.umich.edu 1053304Sstever@eecs.umich.edu 'bnAn': [SysConfig('/z/saidi/work/m5.newmem.head/configs/boot/bn-app.rcS', 1063304Sstever@eecs.umich.edu '128MB', '/z/saidi/work/bottleneck/bnimg.img')] 1073304Sstever@eecs.umich.edu} 1083089Ssaidi@eecs.umich.edu 1092995Ssaidi@eecs.umich.edubenchs = Benchmarks.keys() 1102995Ssaidi@eecs.umich.edubenchs.sort() 1112995Ssaidi@eecs.umich.eduDefinedBenchmarks = ", ".join(benchs) 112