From olga.brukman at gmail.com Sun Jun 6 05:43:52 2010 From: olga.brukman at gmail.com (Olga Brukman) Date: Sun, 6 Jun 2010 12:43:52 +0300 Subject: [Disksim-users] Fwd: compilation errors In-Reply-To: References: Message-ID: Hi, I've just downloaded disksim 4.0 and executed makefile. I've go the following errors: gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -D_INLINE disksim_iosim.c -o disksim_iosim.o disksim_iosim.c: In function ?iosim_load_map?: disksim_iosim.c:364: warning: cast to pointer from integer of different size disksim_iosim.c: In function ?io_initialize?: disksim_iosim.c:712: error: duplicate case value disksim_iosim.c:712: error: previously used here make[1]: *** [disksim_iosim.o] Error 1 make[1]: Leaving directory `/home/olgab/Desktop/disksim-4.0/src' make: *** [all] Error 2 What is the problem? I've checked the line 712, there is no case statement there ... Best regards, Olga Brukman -------------- next part -------------- An HTML attachment was scrubbed... URL: From clemons.47 at buckeyemail.osu.edu Sun Jun 6 09:34:06 2010 From: clemons.47 at buckeyemail.osu.edu (Tyler Clemons) Date: Sun, 6 Jun 2010 09:34:06 -0400 Subject: [Disksim-users] Fwd: compilation errors In-Reply-To: References: Message-ID: Are you compiling on a 64bit OS? -Tyler On Jun 6, 2010, at 5:43 AM, Olga Brukman wrote: > Hi, > I've just downloaded disksim 4.0 and executed makefile. > I've go the following errors: > > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -D_INLINE disksim_iosim.c -o disksim_iosim.o > disksim_iosim.c: In function ?iosim_load_map?: > disksim_iosim.c:364: warning: cast to pointer from integer of different size > disksim_iosim.c: In function ?io_initialize?: > disksim_iosim.c:712: error: duplicate case value > disksim_iosim.c:712: error: previously used here > make[1]: *** [disksim_iosim.o] Error 1 > make[1]: Leaving directory `/home/olgab/Desktop/disksim-4.0/src' > make: *** [all] Error 2 > > What is the problem? I've checked the line 712, there is no case statement there ... > > > Best regards, > > Olga Brukman > > _______________________________________________ > Disksim-users mailing list > Disksim-users at ece.cmu.edu > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users From xinzhou.sjtu at gmail.com Sun Jun 6 16:51:31 2010 From: xinzhou.sjtu at gmail.com (zhou xin) Date: Sun, 6 Jun 2010 15:51:31 -0500 Subject: [Disksim-users] Disksim-users Digest, Vol 57, Issue 1 In-Reply-To: References: Message-ID: Hi Olga, There is a macro -- disksim_iosim.c: L712 StaticAssert (sizeof(ioreq_event) <= DISKSIM_EVENT_SIZE); -- disksim_global.h: L244 #define StaticAssert(c) switch (c) case 0: case (c): In a 64bit OS. sizeof(ioreq_event) > DISKSIM_EVENT_SIZE. This bug could be fixed by a more accurate definition of ioreq_event data fields. Try to convert the 32-64bit sensitive data structures by marcos, like 'int' -> 'int32'. Hope this could help. typedef struct ioreq_ev { double time; int type; struct ioreq_ev *next; struct ioreq_ev *prev; int bcount; int blkno; u_int flags; u_int busno; u_int slotno; int devno; int opid; void *buf; int cause; int tempint1; int tempint2; void *tempptr1; void *tempptr2; void *mems_sled; /* mems sled associated with a particular event */ void *mems_reqinfo; /* per-request info for mems subsystem */ double start_time; /* temporary; used for memulator timing */ int batchno; int batch_complete; int batch_size; struct ioreq_ev *batch_next; struct ioreq_ev *batch_prev; } ioreq_event; Xin 2010/6/6 > Send Disksim-users mailing list submissions to > disksim-users at ece.cmu.edu > > To subscribe or unsubscribe via the World Wide Web, visit > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users > or, via email, send a message with subject or body 'help' to > disksim-users-request at ece.cmu.edu > > You can reach the person managing the list at > disksim-users-owner at ece.cmu.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Disksim-users digest..." > > > Today's Topics: > > 1. Fwd: compilation errors (Olga Brukman) > 2. Re: Fwd: compilation errors (Tyler Clemons) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 6 Jun 2010 12:43:52 +0300 > From: Olga Brukman > Subject: [Disksim-users] Fwd: compilation errors > To: disksim-users at ece.cmu.edu > Message-ID: > > Content-Type: text/plain; charset="windows-1252" > > Hi, > I've just downloaded disksim 4.0 and executed makefile. > I've go the following errors: > > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -D_INLINE disksim_iosim.c -o disksim_iosim.o > disksim_iosim.c: In function ?iosim_load_map?: > disksim_iosim.c:364: warning: cast to pointer from integer of different > size > disksim_iosim.c: In function ?io_initialize?: > disksim_iosim.c:712: error: duplicate case value > disksim_iosim.c:712: error: previously used here > make[1]: *** [disksim_iosim.o] Error 1 > make[1]: Leaving directory `/home/olgab/Desktop/disksim-4.0/src' > make: *** [all] Error 2 > > What is the problem? I've checked the line 712, there is no case statement > there ... > > > Best regards, > > Olga Brukman > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://sos.ece.cmu.edu/pipermail/disksim-users/attachments/20100606/4eedbe4f/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Sun, 6 Jun 2010 09:34:06 -0400 > From: Tyler Clemons > Subject: Re: [Disksim-users] Fwd: compilation errors > To: Olga Brukman > Cc: disksim-users at ece.cmu.edu > Message-ID: > Content-Type: text/plain; charset="windows-1252" > > Are you compiling on a 64bit OS? > -Tyler > > On Jun 6, 2010, at 5:43 AM, Olga Brukman wrote: > > > Hi, > > I've just downloaded disksim 4.0 and executed makefile. > > I've go the following errors: > > > > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -D_INLINE disksim_iosim.c -o disksim_iosim.o > > disksim_iosim.c: In function ?iosim_load_map?: > > disksim_iosim.c:364: warning: cast to pointer from integer of different > size > > disksim_iosim.c: In function ?io_initialize?: > > disksim_iosim.c:712: error: duplicate case value > > disksim_iosim.c:712: error: previously used here > > make[1]: *** [disksim_iosim.o] Error 1 > > make[1]: Leaving directory `/home/olgab/Desktop/disksim-4.0/src' > > make: *** [all] Error 2 > > > > What is the problem? I've checked the line 712, there is no case > statement there ... > > > > > > Best regards, > > > > Olga Brukman > > > > _______________________________________________ > > 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 > > > End of Disksim-users Digest, Vol 57, Issue 1 > ******************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yyangpan at gmail.com Mon Jun 14 21:38:53 2010 From: yyangpan at gmail.com (Yangyang Pan) Date: Mon, 14 Jun 2010 21:38:53 -0400 Subject: [Disksim-users] Question about the request size in Disksim Message-ID: Hi all, In the trace file, what is the unit of the request size? Such as a request: 11567.363 0 1455680 1864 0 what does the 1864 mean? 1864KB or 1864*(512 byte) as 512byte is the size of a sector? Thank you very much. -- All the Best ----------------------------------------------------------- Yangyang Electrical and Computer&System Engineering Department Rensselaer Polytechnic Institute, 12180,Troy.NY -------------- next part -------------- An HTML attachment was scrubbed... URL: From chensinhome at gmail.com Tue Jun 15 19:21:26 2010 From: chensinhome at gmail.com (=?Big5?B?s6+rSKe7?=) Date: Wed, 16 Jun 2010 07:21:26 +0800 Subject: [Disksim-users] Disksim-users Digest, Vol 57, Issue 3 In-Reply-To: References: Message-ID: 1864 sectors 2010/6/16 > Send Disksim-users mailing list submissions to > disksim-users at ece.cmu.edu > > To subscribe or unsubscribe via the World Wide Web, visit > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users > or, via email, send a message with subject or body 'help' to > disksim-users-request at ece.cmu.edu > > You can reach the person managing the list at > disksim-users-owner at ece.cmu.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Disksim-users digest..." > > > Today's Topics: > > 1. Question about the request size in Disksim (Yangyang Pan) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 14 Jun 2010 21:38:53 -0400 > From: Yangyang Pan > Subject: [Disksim-users] Question about the request size in Disksim > To: disksim-users at ece.cmu.edu > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Hi all, > In the trace file, what is the unit of the request size? > > Such as a request: > 11567.363 0 1455680 1864 0 > > what does the 1864 mean? 1864KB or 1864*(512 byte) as 512byte is the size > of a sector? Thank you very much. > > > -- > All the Best > > ----------------------------------------------------------- > Yangyang > Electrical and Computer&System Engineering Department > Rensselaer Polytechnic Institute, > 12180,Troy.NY > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://sos.ece.cmu.edu/pipermail/disksim-users/attachments/20100614/09fa8a8b/attachment-0001.html > > > > ------------------------------ > > _______________________________________________ > Disksim-users mailing list > Disksim-users at ece.cmu.edu > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users > > > End of Disksim-users Digest, Vol 57, Issue 3 > ******************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joepgeurts at gmail.com Wed Jun 16 22:48:29 2010 From: joepgeurts at gmail.com (Joep Geurts) Date: Thu, 17 Jun 2010 14:48:29 +1200 Subject: [Disksim-users] Question: linking DiskSim to OMNeT++ Message-ID: Hi all, I tried to link DiskSim to OMNeT++, but after a week of struggling I still haven't got it working. I linked all the libraries (disksim, diskmodel, dxtools, st, ddbg, param and memsmodel) but got the following error: .../lib/libddbg.a(ddbg_trace.o): In fuction 'ddbg_register': .../ddbg_trace.c:95 undefined reference to 'bit_zero' .../lib/libddbg.a(ddbg_trace.o): In fuction 'ddbg_enable': .../ddbg_trace.c:110 undefined reference to 'bit_setall' .../lib/libddbg.a(ddbg_trace.o): In fuction 'ddbg_disable': .../ddbg_trace.c:123 undefined reference to 'bit_zero' colllect2: ld returned 1 exit status When I also link disksim_interface.o errors occur saying: multiple definition of... I'm using an own makefile, because the one generated by OMNeT doesn't include the paths properly (it first searches for a file and gets an error, before including the path where this file is in). I searched on the internet and tried lots of things, but I can't find what I'm doing wrong. Do anyone have some advice? I'd really appreciate it. Thanks in advance. Regards, Joep -------------- next part -------------- An HTML attachment was scrubbed... URL: From olga.brukman at gmail.com Mon Jun 28 09:43:33 2010 From: olga.brukman at gmail.com (Olga Brukman) Date: Mon, 28 Jun 2010 16:43:33 +0300 Subject: [Disksim-users] using DiskSim package to simulate a disk only Message-ID: Hi all, I'd like to use DiskSim tool to simulate a disk (or collection of disks) only: no drivers, controllers and such. How do I do that? I tried simply stating only disks and disks mapping in parv file, but I get exception: *assertion failed: in lp_instantiate() (util.c:585): spec != 0: no such type simulation.* Can you provide or refer me to an example parv file for disk simulation only? Best regards, Olga Brukman -------------- next part -------------- An HTML attachment was scrubbed... URL: From ganger at ece.cmu.edu Mon Jun 28 12:03:38 2010 From: ganger at ece.cmu.edu (Greg Ganger) Date: Mon, 28 Jun 2010 12:03:38 -0400 (EDT) Subject: [Disksim-users] using DiskSim package to simulate a disk only In-Reply-To: References: Message-ID: Leave those things in (can't take them out), but have them all be infinitely fast (i.e., zero time for their work)... it is then as if they were not there at all, in terms of simulation results. Greg On Mon, 28 Jun 2010, Olga Brukman wrote: > Hi all, > > I'd like to use DiskSim tool to simulate a disk (or collection of disks) > only: no drivers, controllers and such. > How do I do that? > > I tried simply stating only disks and disks mapping in parv file, but I get > exception: > *assertion failed: in lp_instantiate() (util.c:585): spec != 0: no such type > simulation.* > > Can you provide or refer me to an example parv file for disk simulation > only? > > Best regards, > > Olga Brukman >