⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iosim.modspec

📁 目前最精确的磁盘模拟器的第3版
💻 MODSPEC
字号:
# DiskSim Storage Subsystem Simulation Environment (Version 3.0)# Revision Authors: John Bucy, Greg Ganger# Contributors: John Griffin, Jiri Schindler, Steve Schlosser## Copyright (c) of Carnegie Mellon University, 2001, 2002, 2003.## This software is being provided by the copyright holders under the# following license. By obtaining, using and/or copying this software,# you agree that you have read, understood, and will comply with the# following terms and conditions:## Permission to reproduce, use, and prepare derivative works of this# software is granted provided the copyright and "No Warranty" statements# are included with all reproductions and derivative works and associated# documentation. This software may also be redistributed without charge# provided that the copyright and "No Warranty" statements are included# in all redistributions.## NO WARRANTY. THIS SOFTWARE IS FURNISHED ON AN "AS IS" BASIS.# CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER# EXPRESSED OR IMPLIED AS TO THE MATTER INCLUDING, BUT NOT LIMITED# TO: WARRANTY OF FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY# OF RESULTS OR RESULTS OBTAINED FROM USE OF THIS SOFTWARE. CARNEGIE# MELLON UNIVERSITY DOES NOT MAKE ANY WARRANTY OF ANY KIND WITH RESPECT# TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT.# COPYRIGHT HOLDERS WILL BEAR NO LIABILITY FOR ANY USE OF THIS SOFTWARE# OR DOCUMENTATION.MODULE iosimPROTO int disksim_iosim_loadparams(struct lp_block *b);PARAM I/O Trace Time Scale	D	0INIT if (ioscale < 0.0) {INIT   if (ioscale > -1.0) {INIT     constintarrtime = 1/(-ioscale);INIT     ioscale = 1.0;INIT   } else {INIT     disksim->closedios = (int) -ioscale;INIT     ioscale = 1.0;INIT   }INIT } else if (ioscale == 0.0) {INIT   fprintf(stderr, "Invalid value for I/O trace time scale - %f\n", ioscale);INIT   exit(0);INIT }This specifies a value by which each arrival time in a trace ismultiplied.  For example, a value of 2.0 doubles each arrival time,lightening the workload by stretching it out over twice the length oftime.  Conversely, a value of 0.5 makes the workload twice as heavy bycompressing inter-arrival times.  This value has no effect onworkloads generated internally (by the synthetic generator).PARAM I/O Mappings		LIST	0TEST iosim_load_mappings(l)This is a list of \texttt{iomap} blocks (see below) which enable translationof disk request sizes and locations in an input trace into diskrequest sizes and locations appropriate for the simulated environment.When the simulated environment closely matches the traced environment,these mappings may be used simply to reassign disk device numbers.However, if the configured environment differs significantly from thetrace environment, or if the traced workload needs to be scaled (byrequest size or range of locations), these mappings can be used toalter the the traced ``logical space'' and/or scale request sizes andlocations.  One mapping is allowed per traced device.The mappings from devices identified in the trace to the storagesubsystem devices being modeled are provided by block values.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -