From ghasemi.saeed at gmail.com Tue Sep 3 03:32:37 2013 From: ghasemi.saeed at gmail.com (saeed ghasemi) Date: Tue, 3 Sep 2013 12:02:37 +0430 Subject: [Disksim-users] Disksim-users Digest, Vol 92, Issue 4 In-Reply-To: References: Message-ID: On Tue, Aug 27, 2013 at 8:30 PM, wrote: > alinezhad I install Disksim in the manner that mention below: *DiskSim does not compile in 64bit environment*. Never try it. Even if you succeded compilation, it will not run -- just produces segmentation fault. DiskSim requires bison and flex, which are parser generators for parameter file parsing codes. *Step 0. Install bison and flex, if you have not installed already.* $ sudo apt-get install bison flex *Step 1. Download and unzip.Sources can be downloaded from 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 to ssdmodel export SSDMODEL_PREFIX=../ssdmodel export SSDMODEL_INCL=$(SSDMODEL_PREFIX)/include export SSDMODEL_CFLAGS=-I$(SSDMODEL_INCL) export SSDMODEL_LDPATH=$(SSDMODEL_PREFIX)/lib export SSDMODEL_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. -- Regards, Saeed Ghasemi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mujtaba.tarihi at gmail.com Tue Sep 3 03:41:43 2013 From: mujtaba.tarihi at gmail.com (Mujtaba Tarihi) Date: Tue, 3 Sep 2013 12:11:43 +0430 Subject: [Disksim-users] Disksim-users Digest, Vol 92, Issue 4 In-Reply-To: References: Message-ID: Hello You can compile Disksim under a 64-bit OS by forcing it to use 32-bit mode compilation. You need to add -m32 to the compilation options. As for a native 64-bit build, you *can* find some patches and pieces of code online if you google for it. I don't know how reliable they are, considering Disksim is very fickle, you would need extensive testing before you can be sure about a 64-bit build working. Regards, Tarihi On Tue, Sep 3, 2013 at 12:02 PM, saeed ghasemi wrote: > > On Tue, Aug 27, 2013 at 8:30 PM, wrote: > >> alinezhad > > > > I install Disksim in the manner that mention below: > > *DiskSim does not compile in 64bit environment*. Never try it. Even if > you succeded compilation, it will not run -- just produces segmentation > fault. > DiskSim requires bison and flex, which are parser generators for > parameter file parsing codes. > *Step 0. Install bison and flex, if you have not installed already.* > > $ sudo apt-get install bison flex > > *Step 1. Download and unzip.Sources can be downloaded from 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 to ssdmodel > export SSDMODEL_PREFIX=../ssdmodel > export SSDMODEL_INCL=$(SSDMODEL_PREFIX)/include > export SSDMODEL_CFLAGS=-I$(SSDMODEL_INCL) > export SSDMODEL_LDPATH=$(SSDMODEL_PREFIX)/lib > export SSDMODEL_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. > > -- > Regards, Saeed Ghasemi > > > _______________________________________________ > Disksim-users mailing list > Disksim-users at ece.cmu.edu > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ricardoreyyy at gmail.com Tue Sep 3 10:08:57 2013 From: ricardoreyyy at gmail.com (Ricardo Rey) Date: Tue, 3 Sep 2013 09:08:57 -0500 Subject: [Disksim-users] Disksim-users Digest, Vol 92, Issue 4 In-Reply-To: References: Message-ID: It is not that hard compiling in 64 bit. Peter Macko posted the fix in a thread from December 2011, I think. It is a matter of initializing some pointers to NULL and removing a compile time assert which always fails in 64 bit. Applying the patch will take around 10 minutes. Regards, - Rick Enviado desde mi iPhone El 03/09/2013, a las 02:41, Mujtaba Tarihi escribi?: > Hello > > You can compile Disksim under a 64-bit OS by forcing it to use 32-bit mode compilation. You need to add -m32 to the compilation options. As for a native 64-bit build, you *can* find some patches and pieces of code online if you google for it. I don't know how reliable they are, considering Disksim is very fickle, you would need extensive testing before you can be sure about a 64-bit build working. > > Regards, > Tarihi > > > On Tue, Sep 3, 2013 at 12:02 PM, saeed ghasemi wrote: >> >> On Tue, Aug 27, 2013 at 8:30 PM, wrote: >>> alinezhad >> >> >> I install Disksim in the manner that mention below: >> >> DiskSim does not compile in 64bit environment. Never try it. Even if you succeded compilation, it will not run -- just produces segmentation fault. >> DiskSim requires bison and flex, which are parser generators for parameter file parsing codes. >> Step 0. Install bison and flex, if you have not installed already. >> $ sudo apt-get install bison flex >> Step 1. Download and unzip.Sources can be downloaded from 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 to ssdmodel >> export SSDMODEL_PREFIX=../ssdmodel >> export SSDMODEL_INCL=$(SSDMODEL_PREFIX)/include >> export SSDMODEL_CFLAGS=-I$(SSDMODEL_INCL) >> export SSDMODEL_LDPATH=$(SSDMODEL_PREFIX)/lib >> export SSDMODEL_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. >> >> -- >> Regards, Saeed Ghasemi >> >> >> _______________________________________________ >> Disksim-users mailing list >> Disksim-users at ece.cmu.edu >> https://sos.ece.cmu.edu/mailman/listinfo/disksim-users > > _______________________________________________ > Disksim-users mailing list > Disksim-users at ece.cmu.edu > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mujtaba.tarihi at gmail.com Tue Sep 3 12:42:04 2013 From: mujtaba.tarihi at gmail.com (Mujtaba Tarihi) Date: Tue, 3 Sep 2013 21:12:04 +0430 Subject: [Disksim-users] Disksim-users Digest, Vol 92, Issue 4 In-Reply-To: References: Message-ID: My attempt at compiling a 64-bit binary did indeed fail an assert() that checked the size() of a data structure against a constant. That was because the data structure contained pointers and 64-bit means 8-byte pointers instead of 4. I chose to abandon the endeavor at that point. My fear comes from the fact that other hard-coded things may exist and break things in transition from 32-bits to 64-bits, leading to memory corruption and other nasty things. As we are relying on Disksim to get research results, I'm afraid of using a patch that hasn't been extensively tested (preferably with Valgrind or something like that). Disksim is a pretty complicated beast, to the point that later maintainers hadn't mastered the way the code worked (see the text file in the doc directory). On Tue, Sep 3, 2013 at 6:38 PM, Ricardo Rey wrote: > It is not that hard compiling in 64 bit. Peter Macko posted the fix in a > thread from December 2011, I think. It is a matter of initializing some > pointers to NULL and removing a compile time assert which always fails in > 64 bit. Applying the patch will take around 10 minutes. > > Regards, > - Rick > > Enviado desde mi iPhone > > El 03/09/2013, a las 02:41, Mujtaba Tarihi > escribi?: > > Hello > > You can compile Disksim under a 64-bit OS by forcing it to use 32-bit mode > compilation. You need to add -m32 to the compilation options. As for a > native 64-bit build, you *can* find some patches and pieces of code online > if you google for it. I don't know how reliable they are, considering > Disksim is very fickle, you would need extensive testing before you can be > sure about a 64-bit build working. > > Regards, > Tarihi > > > On Tue, Sep 3, 2013 at 12:02 PM, saeed ghasemi wrote: > >> >> On Tue, Aug 27, 2013 at 8:30 PM, wrote: >> >>> alinezhad >> >> >> >> I install Disksim in the manner that mention below: >> >> *DiskSim does not compile in 64bit environment*. Never try it. Even if >> you succeded compilation, it will not run -- just produces segmentation >> fault. >> DiskSim requires bison and flex, which are parser generators for >> parameter file parsing codes. >> *Step 0. Install bison and flex, if you have not installed already.* >> >> $ sudo apt-get install bison flex >> >> *Step 1. Download and unzip.Sources can be downloaded from 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 to ssdmodel >> export SSDMODEL_PREFIX=../ssdmodel >> export SSDMODEL_INCL=$(SSDMODEL_PREFIX)/include >> export SSDMODEL_CFLAGS=-I$(SSDMODEL_INCL) >> export SSDMODEL_LDPATH=$(SSDMODEL_PREFIX)/lib >> export SSDMODEL_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. >> >> -- >> Regards, Saeed Ghasemi >> >> >> _______________________________________________ >> Disksim-users mailing list >> Disksim-users at ece.cmu.edu >> https://sos.ece.cmu.edu/mailman/listinfo/disksim-users >> >> > _______________________________________________ > Disksim-users mailing list > Disksim-users at ece.cmu.edu > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From guoxf05 at 163.com Sat Sep 21 04:03:27 2013 From: guoxf05 at 163.com (GuoXufeng) Date: Sat, 21 Sep 2013 16:03:27 +0800 (CST) Subject: [Disksim-users] How to handle all synthio requests before disksim stops Message-ID: <6a7e75c1.34b7.1413f8b7ad2.Coremail.guoxf05@163.com> Hello: I found a phenomenon that is when using synthetic workloads, the actual handled requests may be less than generated request amount. For example, I configured "Number of I/O requests to generate" to 10000 and "Maximum time of trace generated" to 100000. I add printf in the ssd_event_arrive function to see the actual coming requests. What I finally found is a big surprise: only 5575 requests come to the ssd_event_arrive. Then I checked the code and found that in the function "synthio_generate_io_activity" of "disksym_synthio.c", disksim_simstop() will be invoked once the generated requests exceed 10000. At this moment, the generated requests have no time to be transferred to ssd_event_arrive and then simulation is over. The problem is that when I compare two methods using sythetic workloads, the actual handled request amount may be different even though the configurations are identical. So I want to ask what I can do if I want to get all the generated requests to be handled. I found a way: first print the generated requests and then use these requests as the external trace to disksim. However, this method seems a little ugly. Can anybody help me? Thank you very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: From du526292624 at 163.com Wed Sep 25 04:54:54 2013 From: du526292624 at 163.com (du526292624) Date: Wed, 25 Sep 2013 16:54:54 +0800 (CST) Subject: [Disksim-users] ssd Message-ID: <5b1ccb4c.e5b7.141545404c0.Coremail.du526292624@163.com> hi :nice to meet to you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhengda1936 at gmail.com Wed Sep 25 15:58:24 2013 From: zhengda1936 at gmail.com (Zheng Da) Date: Wed, 25 Sep 2013 15:58:24 -0400 Subject: [Disksim-users] DiskSim can't be compiled on a 64-bit machine. Message-ID: Hello, I'm a PhD student in Johns Hopkins University and my research focus on maximizing the IO performance of the SSD array. I want to use DiskSim to simulate SSDs for development. But DiskSim failed to run on my 64-bit desktop. When I compile it, I got a compilation error. disksim_iosim.c: In function ?io_initialize?: disksim_iosim.c:712:4: error: duplicate case value disksim_iosim.c:712:4: error: previously used here DISKSIM_EVENT_SIZE is 128 but the size of the ioreq_event structure is larger than it. I guess the simulator was developed on a 32-bit machine? Have anyone tested it on a 64-bit machine? I tried to change DISKSIM_EVENT_SIZE to 256. The compilation can succeed, but when I run runvalid, I got a bunch of segmentation faults. I tried DiskSim 4.0 and I haven't added the MSR patch for SSD simulation. I run Ubuntu 12.04 and gcc version 4.6.3. Can anyone help me fix the problem? Thanks, Da From ricardoreyyy at gmail.com Wed Sep 25 16:29:22 2013 From: ricardoreyyy at gmail.com (Ricardo Rey) Date: Wed, 25 Sep 2013 15:29:22 -0500 Subject: [Disksim-users] DiskSim can't be compiled on a 64-bit machine. In-Reply-To: References: Message-ID: This happens so often it should be a "sticky" topic or something. You have to apply a "patch", which consists on changing a couple things in some sources. Peter Macko posted a link to the patch some time on December 2011, if I recall correctly. The patch works (runvalid runs flawlessly), but, as some people mentioned here, the results might have not been thoroughly tested, so they may be unreliable. Hope this helps, - Rick On Wed, Sep 25, 2013 at 2:58 PM, Zheng Da wrote: > Hello, > > I'm a PhD student in Johns Hopkins University and my research focus on > maximizing the IO performance of the SSD array. I want to use DiskSim > to simulate SSDs for development. But DiskSim failed to run on my > 64-bit desktop. > > When I compile it, I got a compilation error. > disksim_iosim.c: In function ?io_initialize?: > disksim_iosim.c:712:4: error: duplicate case value > disksim_iosim.c:712:4: error: previously used here > > DISKSIM_EVENT_SIZE is 128 but the size of the ioreq_event structure is > larger than it. I guess the simulator was developed on a 32-bit > machine? Have anyone tested it on a 64-bit machine? > > I tried to change DISKSIM_EVENT_SIZE to 256. The compilation can > succeed, but when I run runvalid, I got a bunch of segmentation > faults. > > I tried DiskSim 4.0 and I haven't added the MSR patch for SSD > simulation. I run Ubuntu 12.04 and gcc version 4.6.3. > > Can anyone help me fix the problem? > > Thanks, > Da > _______________________________________________ > Disksim-users mailing list > Disksim-users at ece.cmu.edu > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhengda1936 at gmail.com Wed Sep 25 17:15:37 2013 From: zhengda1936 at gmail.com (Zheng Da) Date: Wed, 25 Sep 2013 17:15:37 -0400 Subject: [Disksim-users] DiskSim can't be compiled on a 64-bit machine. In-Reply-To: References: Message-ID: Unfortunately, the patch doesn't work to me. I can't even patch DiskSim. I tried to patch DiskSim manually one by one, I still get segmentation fault :( Da On Wed, Sep 25, 2013 at 4:29 PM, Ricardo Rey wrote: > This happens so often it should be a "sticky" topic or something. > > You have to apply a "patch", which consists on changing a couple things in > some sources. > > Peter Macko posted a link to the patch some time on December 2011, if I > recall correctly. The patch works (runvalid runs flawlessly), but, as some > people mentioned here, the results might have not been thoroughly tested, so > they may be unreliable. > > Hope this helps, > - Rick > > > On Wed, Sep 25, 2013 at 2:58 PM, Zheng Da wrote: >> >> Hello, >> >> I'm a PhD student in Johns Hopkins University and my research focus on >> maximizing the IO performance of the SSD array. I want to use DiskSim >> to simulate SSDs for development. But DiskSim failed to run on my >> 64-bit desktop. >> >> When I compile it, I got a compilation error. >> disksim_iosim.c: In function ?io_initialize?: >> disksim_iosim.c:712:4: error: duplicate case value >> disksim_iosim.c:712:4: error: previously used here >> >> DISKSIM_EVENT_SIZE is 128 but the size of the ioreq_event structure is >> larger than it. I guess the simulator was developed on a 32-bit >> machine? Have anyone tested it on a 64-bit machine? >> >> I tried to change DISKSIM_EVENT_SIZE to 256. The compilation can >> succeed, but when I run runvalid, I got a bunch of segmentation >> faults. >> >> I tried DiskSim 4.0 and I haven't added the MSR patch for SSD >> simulation. I run Ubuntu 12.04 and gcc version 4.6.3. >> >> Can anyone help me fix the problem? >> >> Thanks, >> Da >> _______________________________________________ >> Disksim-users mailing list >> Disksim-users at ece.cmu.edu >> https://sos.ece.cmu.edu/mailman/listinfo/disksim-users > > From sgrajeswari at gmail.com Thu Sep 26 01:32:10 2013 From: sgrajeswari at gmail.com (raji) Date: Wed, 25 Sep 2013 22:32:10 -0700 Subject: [Disksim-users] RAID 5, RAID C Configuration Message-ID: Sir, I am doing research in Storage technologies. I need some sample codes for RAID configurations using Disksim 4.0 environment. I am new to this,so i want to gain basic knowledge also.I would thank for your valid suggestions.