How to install DiskSim 4.0 + SSDSim(MS) in Ubuntu
2012-11-12 13:10
1011 查看
转载自:http://blog.sina.com.cn/s/blog_6464a7210100ghsy.html
DiskSim is alow-level storage simulation tool, which can generatetiming-accurate simulation result. It is developed by
Greg Ganger.Current version is 4.0 and it is out in June2008.
SSDextension for DiskSim is an extensional module of DiskSim whichimplments SSD I/O Models. It is implemented by MicrosoftResearch.
Compiling DiskSim and SSD extension is very simple, but when Itried, there was some problem.
This article addresses those problems.
DiskSim does not compile in 64bit environment. Nevertry it. Even if you succeded compilation, it will not run -- justproduces segmentation fault.
DiskSim requires bison and flex, which are parser generators forparameter file parsing codes.
Step 0. Install bison and flex, if you have not installedalready.
$ sudo apt-get install bison flex
Step 1. Download and unzip.
Sources can be downloadedfrom the links above. I downloaded DiskSim 4.0 with dixtrac.
$ tar xfz disksim-4.0-with-dixtrac.tar.gz
$ cd disksim-4.0
$ unzip ../ssd-add-on.zip
Step 2. Apply SSD add on patch.
$ patch -p1 < ssdmodel/ssd-patch
Step 3. Append SSD model library path to dixtrac.
add these lines to dixtrac/.paths
# path tossdmodel
exportSSDMODEL_PREFIX=../ssdmodel
exportSSDMODEL_INCL=$(SSDMODEL_PREFIX)/include
exportSSDMODEL_CFLAGS=-I$(SSDMODEL_INCL)
exportSSDMODEL_LDPATH=$(SSDMODEL_PREFIX)/lib
exportSSDMODEL_LDFLAGS=-L$(SSDMODEL_LDPATH)-lssdmodel
modify dixtrac/Makefile like this :
$(LIBDISKSIM_LDFLAGS) \
$(MEMSMODEL_LDFLAGS) \
$(DISKMODEL_LDFLAGS) \
$(SSDMODEL_LDFLAGS) \
$(LIBPARAM_LDFLAGS) \
$(LIBDDBG_LDFLAGS) \
$(ST_LDFLAGS)
CFLAGS = -Wall -g -MD -I. $(DEFINES) -I$(STHREADS) $(DMINCLUDES)\
$(LIBDISKSIM_CFLAGS) \
$(DISKMODEL_CFLAGS) $(LIBPARAM_CFLAGS) $(LIBDDBG_CFLAGS) \
$(SSDMODEL_CFLAGS)
Step 4. Compile~~~!
$ make
Step 5. Check if it works well.
$ cd valid;./runvalid
$ chmod a+x ../ssdmodel/valid/runvalid
$ cd ../ssdmodel/valid; ./runvalid
Ok. It is all.
DiskSim is alow-level storage simulation tool, which can generatetiming-accurate simulation result. It is developed by
Greg Ganger.Current version is 4.0 and it is out in June2008.
SSDextension for DiskSim is an extensional module of DiskSim whichimplments SSD I/O Models. It is implemented by MicrosoftResearch.
Compiling DiskSim and SSD extension is very simple, but when Itried, there was some problem.
This article addresses those problems.
DiskSim does not compile in 64bit environment. Nevertry it. Even if you succeded compilation, it will not run -- justproduces segmentation fault.
DiskSim requires bison and flex, which are parser generators forparameter file parsing codes.
Step 0. Install bison and flex, if you have not installedalready.
$ sudo apt-get install bison flex
Step 1. Download and unzip.
Sources can be downloadedfrom the links above. I downloaded DiskSim 4.0 with dixtrac.
$ tar xfz disksim-4.0-with-dixtrac.tar.gz
$ cd disksim-4.0
$ unzip ../ssd-add-on.zip
Step 2. Apply SSD add on patch.
$ patch -p1 < ssdmodel/ssd-patch
Step 3. Append SSD model library path to dixtrac.
add these lines to dixtrac/.paths
# path tossdmodel
exportSSDMODEL_PREFIX=../ssdmodel
exportSSDMODEL_INCL=$(SSDMODEL_PREFIX)/include
exportSSDMODEL_CFLAGS=-I$(SSDMODEL_INCL)
exportSSDMODEL_LDPATH=$(SSDMODEL_PREFIX)/lib
exportSSDMODEL_LDFLAGS=-L$(SSDMODEL_LDPATH)-lssdmodel
modify dixtrac/Makefile like this :
$(LIBDISKSIM_LDFLAGS) \
$(MEMSMODEL_LDFLAGS) \
$(DISKMODEL_LDFLAGS) \
$(SSDMODEL_LDFLAGS) \
$(LIBPARAM_LDFLAGS) \
$(LIBDDBG_LDFLAGS) \
$(ST_LDFLAGS)
CFLAGS = -Wall -g -MD -I. $(DEFINES) -I$(STHREADS) $(DMINCLUDES)\
$(LIBDISKSIM_CFLAGS) \
$(DISKMODEL_CFLAGS) $(LIBPARAM_CFLAGS) $(LIBDDBG_CFLAGS) \
$(SSDMODEL_CFLAGS)
Step 4. Compile~~~!
$ make
Step 5. Check if it works well.
$ cd valid;./runvalid
$ chmod a+x ../ssdmodel/valid/runvalid
$ cd ../ssdmodel/valid; ./runvalid
Ok. It is all.
相关文章推荐
- [Ubuntu] How to install firefox 4.0 directly in Ubuntu
- How to Install MS Visual Studio Code in Ubuntu 16.04/16.10
- linux 机器之间 zssh, rz, sz互相传输 ( How to install zssh in Ubuntu 13.10 (Saucy))
- How To Install Oracle Java 7 (JDK) In Ubuntu
- How to Install the Gnome Classic Desktop in Ubuntu 14.04
- NLP--- How to install the tool NLTK in Ubuntu ?
- (转) How to install eclipse in ubuntu 12.04
- how to install chinses input method--fcitx in ubuntu
- How to Install WeChat Desktop Client in Ubuntu Linux
- How to install Ubuntu form the ISO format in the GRUB
- How To Install OpenOffice 3.2 In Ubuntu (.deb Download)
- How to install Adobe flash 10.2 (Preview) in Ubuntu 10.10 (maverick) Using PPA
- How To Install Oracle Java 7 (JDK) In Ubuntu(or linuxdeepin12)
- how to install vscode with Python extension in ubuntu 16
- How To Install Mate Desktop In Ubuntu 14.04 & 14.10
- How to install Nagios in ubuntu10.04/10.10(如何安装nagios)
- How to install sun java in ubuntu
- How to modify non-customizable entity in MS Dynamics CRM 4.0 (Add Product price column to Price List Item view)
- How to install WebObjects in Ubuntu for free(II)
- How to Install GCC 4.8 via PPA in Ubuntu 12.04, 13.04, 10.04