From liangxiongxu at gmail.com Sun Aug 12 19:34:20 2012 From: liangxiongxu at gmail.com (leon hsu) Date: Sun, 12 Aug 2012 16:34:20 -0700 Subject: [Disksim-users] Why the overall average response time, almost 20000, is so big? Message-ID: Hi, everybody, I need you help:-) When I set the "I/O Trace Time Scale" in disksim_iosim to 1, the simulator shows a saturation error before. But when I change "I/O Trace Time Scale" in disksim_iosim to 10, the error disappeared. I think that is because the "request arrival time" of the trace file is too small, which results that the number of the arriving requests in one second is more than ones that the simulator could deal with in one second. So I change the "I/O Trace Time Scale" in disksim_iosim to 10. Next, I run it again, but the weired result made me crazy. When I ran disksim using my ascii trace file, the overall response time, almost 20000, is too big to believable. Do anybody could tell me the reason and how to solve this problem. Thank you so much. I am so appreciated. I set the "request arrival time" like the following style. 0.5 0.75 1 1.2000 1.4000 1.5000 1.7000 2.0 ..... Hopefully, it could give some hints to find out my problem. Thanks. Leon -------------- next part -------------- An HTML attachment was scrubbed... URL: From yueyinliang at gmail.com Mon Aug 13 02:24:21 2012 From: yueyinliang at gmail.com (Yinliang Yue) Date: Mon, 13 Aug 2012 14:24:21 +0800 Subject: [Disksim-users] Why the overall average response time, almost 20000, is so big? In-Reply-To: References: Message-ID: There are so many I/O requests waiting in the queue. I do not know the details of your storage systems, such as how many disks, how these disks are organized. I suggest you check your storage configuration. 2012/8/13 leon hsu > > Hi, everybody, > > I need you help:-) > > When I set the "I/O Trace Time Scale" in disksim_iosim to 1, the simulator > shows a saturation error before. > But when I change "I/O Trace Time Scale" in disksim_iosim to 10, the error > disappeared. > > I think that is because the "request arrival time" of the trace file is > too small, which results that the number of the arriving requests in one > second is more than ones that the simulator could deal with in one second. > So I change the "I/O Trace Time Scale" in disksim_iosim to 10. > > Next, I run it again, but the weired result made me crazy. When I ran > disksim using my ascii trace file, the overall response time, almost 20000, > is too big to believable. > > Do anybody could tell me the reason and how to solve this problem. Thank > you so much. I am so appreciated. > > > I set the "request arrival time" like the following style. > > 0.5 > 0.75 > 1 > 1.2000 > 1.4000 > 1.5000 > 1.7000 > 2.0 > ..... > > > Hopefully, it could give some hints to find out my problem. Thanks. > > > Leon > > > > > > > > _______________________________________________ > 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 liangxiongxu at gmail.com Mon Aug 13 14:39:37 2012 From: liangxiongxu at gmail.com (leon hsu) Date: Mon, 13 Aug 2012 11:39:37 -0700 Subject: [Disksim-users] Why the overall average response time, almost 20000, is so big? In-Reply-To: References: Message-ID: Hi yueyinliang, Hopefully, the name is same with your mail: ) Thanks for you reply. The attaching file is the hard disk configuration. I only have one hard disk. Could you take a look and check the configuration for me? Thank you so much. The ascii trace looks like this: 0 0 0 24 0 0 0 0 24 1 1 0 24 16 0 1.5 0 40 16 0 2 0 56 16 0 2.2 0 72 16 0 2.4 0 88 16 0 2.6 0 104 16 0 2.8 0 120 16 0 3 0 136 8 0 3.125 0 144 8 0 3.25 0 152 8 0 3.375 0 160 8 0 3.5 0 168 8 0 3.625 0 176 8 0 3.75 0 184 8 0 3.875 0 192 8 0 4 0 200 8 0 4.333333 0 208 8 0 4.666667 0 216 8 0 5 0 224 8 0 5.333333 0 232 8 0 5.666667 0 240 8 0 6 0 248 8 0 6.333333 0 256 8 0 6.666667 0 264 8 0 7 0 272 16 0 7.5 0 288 16 0 8 0 304 16 0 8.2 0 320 16 0 8.4 0 336 16 0 8.6 0 352 16 0 8.8 0 368 16 0 Leon On Sun, Aug 12, 2012 at 11:24 PM, Yinliang Yue wrote: > There are so many I/O requests waiting in the queue. I do not know the > details of your storage systems, such as how many disks, how these disks > are organized. I suggest you check your storage configuration. > > 2012/8/13 leon hsu > >> >> Hi, everybody, >> >> I need you help:-) >> >> When I set the "I/O Trace Time Scale" in disksim_iosim to 1, the >> simulator shows a saturation error before. >> But when I change "I/O Trace Time Scale" in disksim_iosim to 10, the >> error disappeared. >> >> I think that is because the "request arrival time" of the trace file is >> too small, which results that the number of the arriving requests in one >> second is more than ones that the simulator could deal with in one second. >> So I change the "I/O Trace Time Scale" in disksim_iosim to 10. >> >> Next, I run it again, but the weired result made me crazy. When I ran >> disksim using my ascii trace file, the overall response time, almost 20000, >> is too big to believable. >> >> Do anybody could tell me the reason and how to solve this problem. Thank >> you so much. I am so appreciated. >> >> >> I set the "request arrival time" like the following style. >> >> 0.5 >> 0.75 >> 1 >> 1.2000 >> 1.4000 >> 1.5000 >> 1.7000 >> 2.0 >> ..... >> >> >> Hopefully, it could give some hints to find out my problem. Thanks. >> >> >> Leon >> >> >> >> >> >> >> >> _______________________________________________ >> Disksim-users mailing list >> Disksim-users at ece.cmu.edu >> https://sos.ece.cmu.edu/mailman/listinfo/disksim-users >> >> > > > -- > ?? > ?? > > ??? > > -- Cailiang Xu Tel: 732.789.6683 Email: liangxiongxu at gmail.com Computer Architecture & System Lab -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hddisk.parv Type: application/octet-stream Size: 5211 bytes Desc: not available URL: From yueyinliang at gmail.com Tue Aug 14 06:33:44 2012 From: yueyinliang at gmail.com (Yinliang Yue) Date: Tue, 14 Aug 2012 18:33:44 +0800 Subject: [Disksim-users] Why the overall average response time, almost 20000, is so big? In-Reply-To: References: Message-ID: I have noticed that the average time interval between two I/O requests is too small. The first column means the I/O arrive time (ms), you issued 33 I/Os in 8.8ms. The average time interval between two I/O requests is only 0.27ms. However, the disk I/O access time (access time = data transfer time + rotation time + seek time) is far larger than 0.27ms. There are too many pending I/O requests in the waiting queue and so the average response time is Incredibly large. 2012/8/14 leon hsu > Hi yueyinliang, > Hopefully, the name is same with your mail: ) Thanks for you reply. > > The attaching file is the hard disk configuration. I only have one hard > disk. > > Could you take a look and check the configuration for me? Thank you so > much. > > The ascii trace looks like this: > > 0 0 0 24 0 > 0 0 0 24 1 > 1 0 24 16 0 > 1.5 0 40 16 0 > 2 0 56 16 0 > 2.2 0 72 16 0 > 2.4 0 88 16 0 > 2.6 0 104 16 0 > 2.8 0 120 16 0 > 3 0 136 8 0 > 3.125 0 144 8 0 > 3.25 0 152 8 0 > 3.375 0 160 8 0 > 3.5 0 168 8 0 > 3.625 0 176 8 0 > 3.75 0 184 8 0 > 3.875 0 192 8 0 > 4 0 200 8 0 > 4.333333 0 208 8 0 > 4.666667 0 216 8 0 > 5 0 224 8 0 > 5.333333 0 232 8 0 > 5.666667 0 240 8 0 > 6 0 248 8 0 > 6.333333 0 256 8 0 > 6.666667 0 264 8 0 > 7 0 272 16 0 > 7.5 0 288 16 0 > 8 0 304 16 0 > 8.2 0 320 16 0 > 8.4 0 336 16 0 > 8.6 0 352 16 0 > 8.8 0 368 16 0 > > > > Leon > > > > On Sun, Aug 12, 2012 at 11:24 PM, Yinliang Yue wrote: > >> There are so many I/O requests waiting in the queue. I do not know the >> details of your storage systems, such as how many disks, how these disks >> are organized. I suggest you check your storage configuration. >> >> 2012/8/13 leon hsu >> >>> >>> Hi, everybody, >>> >>> I need you help:-) >>> >>> When I set the "I/O Trace Time Scale" in disksim_iosim to 1, the >>> simulator shows a saturation error before. >>> But when I change "I/O Trace Time Scale" in disksim_iosim to 10, the >>> error disappeared. >>> >>> I think that is because the "request arrival time" of the trace file is >>> too small, which results that the number of the arriving requests in one >>> second is more than ones that the simulator could deal with in one second. >>> So I change the "I/O Trace Time Scale" in disksim_iosim to 10. >>> >>> Next, I run it again, but the weired result made me crazy. When I ran >>> disksim using my ascii trace file, the overall response time, almost 20000, >>> is too big to believable. >>> >>> Do anybody could tell me the reason and how to solve this problem. Thank >>> you so much. I am so appreciated. >>> >>> >>> I set the "request arrival time" like the following style. >>> >>> 0.5 >>> 0.75 >>> 1 >>> 1.2000 >>> 1.4000 >>> 1.5000 >>> 1.7000 >>> 2.0 >>> ..... >>> >>> >>> Hopefully, it could give some hints to find out my problem. Thanks. >>> >>> >>> Leon >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Disksim-users mailing list >>> Disksim-users at ece.cmu.edu >>> https://sos.ece.cmu.edu/mailman/listinfo/disksim-users >>> >>> >> >> >> -- >> ?? >> ?? >> >> ??? >> >> > > > -- > > Cailiang Xu > > Tel: 732.789.6683 > > Email: liangxiongxu at gmail.com > > Computer Architecture & System Lab > > > -- ?? ?? ??? -------------- next part -------------- An HTML attachment was scrubbed... URL: From vahldiek at mpi-sws.org Tue Aug 14 08:14:25 2012 From: vahldiek at mpi-sws.org (Anjo Vahldiek) Date: Tue, 14 Aug 2012 14:14:25 +0200 Subject: [Disksim-users] Why the overall average response time, almost 20000, is so big? In-Reply-To: References: Message-ID: <502A4121.3000609@mpi-sws.org> Hi, As Yinliang said the queuing time should account for the high response times. You can lookup the avg. queue time in the output statistics. Also the avg. queue length is recorded. You may need to enable the statistics in your .parv file. Anjo On Tue 14 Aug 2012 12:33:44 PM CEST, Yinliang Yue wrote: > I have noticed that the average time interval between two I/O requests > is too small. The first column means the I/O arrive time (ms), you > issued 33 I/Os in 8.8ms. The average time interval between two I/O > requests is only 0.27ms. However, the disk I/O access time (access > time = data transfer time + rotation time + seek time) is far larger > than 0.27ms. There are too many pending I/O requests in the waiting > queue and so the average response time is Incredibly large. > > 2012/8/14 leon hsu > > > Hi yueyinliang, > Hopefully, the name is same with your mail: ) Thanks for you reply. > > The attaching file is the hard disk configuration. I only have > one hard disk. > > Could you take a look and check the configuration for me? Thank > you so much. > > The ascii trace looks like this: > > 0 0 0 24 0 > 0 0 0 24 1 > 1 0 24 16 0 > 1.5 0 40 16 0 > 2 0 56 16 0 > 2.2 0 72 16 0 > 2.4 0 88 16 0 > 2.6 0 104 16 0 > 2.8 0 120 16 0 > 3 0 136 8 0 > 3.125 0 144 8 0 > 3.25 0 152 8 0 > 3.375 0 160 8 0 > 3.5 0 168 8 0 > 3.625 0 176 8 0 > 3.75 0 184 8 0 > 3.875 0 192 8 0 > 4 0 200 8 0 > 4.333333 0 208 8 0 > 4.666667 0 216 8 0 > 5 0 224 8 0 > 5.333333 0 232 8 0 > 5.666667 0 240 8 0 > 6 0 248 8 0 > 6.333333 0 256 8 0 > 6.666667 0 264 8 0 > 7 0 272 16 0 > 7.5 0 288 16 0 > 8 0 304 16 0 > 8.2 0 320 16 0 > 8.4 0 336 16 0 > 8.6 0 352 16 0 > 8.8 0 368 16 0 > > > > Leon > > > > On Sun, Aug 12, 2012 at 11:24 PM, Yinliang Yue > > wrote: > > There are so many I/O requests waiting in the queue. I do not > know the details of your storage systems, such as how many > disks, how these disks are organized. I suggest you check your > storage configuration. > > 2012/8/13 leon hsu > > > > Hi, everybody, > > I need you help:-) > > When I set the "I/O Trace Time Scale" in disksim_iosim to > 1, the simulator shows a saturation error before. > But when I change "I/O Trace Time Scale" in disksim_iosim > to 10, the error disappeared. > > I think that is because the "request arrival time" of the > trace file is too small, which results that the number of > the arriving requests in one second is more than ones that > the simulator could deal with in one second. So I change > the "I/O Trace Time Scale" in disksim_iosim to 10. > > Next, I run it again, but the weired result made me crazy. > When I ran disksim using my ascii trace file, the overall > response time, almost 20000, is too big to believable. > > Do anybody could tell me the reason and how to solve this > problem. Thank you so much. I am so appreciated. > > > I set the "request arrival time" like the following style. > > 0.5 > 0.75 > 1 > 1.2000 > 1.4000 > 1.5000 > 1.7000 > 2.0 > ..... > > > Hopefully, it could give some hints to find out my > problem. Thanks. > > > Leon > > > > > > > > _______________________________________________ > Disksim-users mailing list > Disksim-users at ece.cmu.edu > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users > > > > > -- > ?? > ?? > > ??? > > > > > -- > > Cailiang Xu > > Tel: 732.789.6683 > > Email: liangxiongxu at gmail.com > > Computer Architecture & System Lab > > > > > > > -- > ?? > ?? > > ??? > > > > _______________________________________________ > Disksim-users mailing list > Disksim-users at ece.cmu.edu > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users From liangxiongxu at gmail.com Tue Aug 14 13:45:53 2012 From: liangxiongxu at gmail.com (leon hsu) Date: Tue, 14 Aug 2012 10:45:53 -0700 Subject: [Disksim-users] Why the overall average response time, almost 20000, is so big? In-Reply-To: References: Message-ID: That's very helpful. I will change the trace and test them again. Thanks for YueYingLiang and Anjo, Your response gets me out of my problem. Leon On Tue, Aug 14, 2012 at 3:33 AM, Yinliang Yue wrote: > I have noticed that the average time interval between two I/O requests is > too small. The first column means the I/O arrive time (ms), you issued 33 > I/Os in 8.8ms. The average time interval between two I/O requests is only > 0.27ms. However, the disk I/O access time (access time = data transfer > time + rotation time + seek time) is far larger than 0.27ms. There are too > many pending I/O requests in the waiting queue and so the average response > time is Incredibly large. > > > 2012/8/14 leon hsu > >> Hi yueyinliang, >> Hopefully, the name is same with your mail: ) Thanks for you reply. >> >> The attaching file is the hard disk configuration. I only have one hard >> disk. >> >> Could you take a look and check the configuration for me? Thank you so >> much. >> >> The ascii trace looks like this: >> >> 0 0 0 24 0 >> 0 0 0 24 1 >> 1 0 24 16 0 >> 1.5 0 40 16 0 >> 2 0 56 16 0 >> 2.2 0 72 16 0 >> 2.4 0 88 16 0 >> 2.6 0 104 16 0 >> 2.8 0 120 16 0 >> 3 0 136 8 0 >> 3.125 0 144 8 0 >> 3.25 0 152 8 0 >> 3.375 0 160 8 0 >> 3.5 0 168 8 0 >> 3.625 0 176 8 0 >> 3.75 0 184 8 0 >> 3.875 0 192 8 0 >> 4 0 200 8 0 >> 4.333333 0 208 8 0 >> 4.666667 0 216 8 0 >> 5 0 224 8 0 >> 5.333333 0 232 8 0 >> 5.666667 0 240 8 0 >> 6 0 248 8 0 >> 6.333333 0 256 8 0 >> 6.666667 0 264 8 0 >> 7 0 272 16 0 >> 7.5 0 288 16 0 >> 8 0 304 16 0 >> 8.2 0 320 16 0 >> 8.4 0 336 16 0 >> 8.6 0 352 16 0 >> 8.8 0 368 16 0 >> >> >> >> Leon >> >> >> >> On Sun, Aug 12, 2012 at 11:24 PM, Yinliang Yue wrote: >> >>> There are so many I/O requests waiting in the queue. I do not know the >>> details of your storage systems, such as how many disks, how these disks >>> are organized. I suggest you check your storage configuration. >>> >>> 2012/8/13 leon hsu >>> >>>> >>>> Hi, everybody, >>>> >>>> I need you help:-) >>>> >>>> When I set the "I/O Trace Time Scale" in disksim_iosim to 1, the >>>> simulator shows a saturation error before. >>>> But when I change "I/O Trace Time Scale" in disksim_iosim to 10, the >>>> error disappeared. >>>> >>>> I think that is because the "request arrival time" of the trace file is >>>> too small, which results that the number of the arriving requests in one >>>> second is more than ones that the simulator could deal with in one second. >>>> So I change the "I/O Trace Time Scale" in disksim_iosim to 10. >>>> >>>> Next, I run it again, but the weired result made me crazy. When I ran >>>> disksim using my ascii trace file, the overall response time, almost 20000, >>>> is too big to believable. >>>> >>>> Do anybody could tell me the reason and how to solve this problem. >>>> Thank you so much. I am so appreciated. >>>> >>>> >>>> I set the "request arrival time" like the following style. >>>> >>>> 0.5 >>>> 0.75 >>>> 1 >>>> 1.2000 >>>> 1.4000 >>>> 1.5000 >>>> 1.7000 >>>> 2.0 >>>> ..... >>>> >>>> >>>> Hopefully, it could give some hints to find out my problem. Thanks. >>>> >>>> >>>> Leon >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> Disksim-users mailing list >>>> Disksim-users at ece.cmu.edu >>>> https://sos.ece.cmu.edu/mailman/listinfo/disksim-users >>>> >>>> >>> >>> >>> -- >>> ?? >>> ?? >>> >>> ??? >>> >>> >> >> >> -- >> >> Cailiang Xu >> >> Tel: 732.789.6683 >> >> Email: liangxiongxu at gmail.com >> >> Computer Architecture & System Lab >> >> >> > > > -- > ?? > ?? > > ??? > > -- Cailiang Xu Tel: 732.789.6683 Email: liangxiongxu at gmail.com Computer Architecture & System Lab -------------- next part -------------- An HTML attachment was scrubbed... URL: From nianglao at gmail.com Thu Aug 23 12:24:45 2012 From: nianglao at gmail.com (=?GB2312?B?y+/B+g==?=) Date: Fri, 24 Aug 2012 00:24:45 +0800 Subject: [Disksim-users] disksim compile error undefined reference to `sqrt Message-ID: Hi all, I met the same problem as https://sos.ece.cmu.edu/pipermail/disksim-users/2011-December/000699.html. But I didn't find any solutions. Can anyone help me? "Hi all, I'm trying to compile the DiskSim 4.0 and have the following error: "...memsmodel/mems_piecewise_seek.c:524: undefined reference to `sqrt'" and so on... (see the log file) It seems to be a problem with the mathlib link, however I've check in the makefile, and there is all ok (i.g. gcc -lm ...). I'm actually not very familar with C/C++ and linux systems, so I'm in trouble :)" -------------- next part -------------- An HTML attachment was scrubbed... URL: From leitian.hust at gmail.com Thu Aug 23 12:29:34 2012 From: leitian.hust at gmail.com (Lei Tian) Date: Thu, 23 Aug 2012 11:29:34 -0500 Subject: [Disksim-users] disksim compile error undefined reference to `sqrt In-Reply-To: References: Message-ID: <0920F67A-63CB-47BD-9A23-2333C144F85E@gmail.com> I met the same problem before. In my memory, the solution is simple: adjust the appearance of the "-lm" parameter to be the last parameter. You can have a try. Lei On Aug 23, 2012, at 11:24 AM, ?? wrote: > Hi all, I met the same problem as https://sos.ece.cmu.edu/pipermail/disksim-users/2011-December/000699.html. But I didn't find any solutions. Can anyone help me? > > > "Hi all, > > I'm trying to compile the DiskSim 4.0 and have the following error: > > "...memsmodel/mems_piecewise_seek.c:524: undefined reference to `sqrt'" > > and so on... (see the log file) > > It seems to be a problem with the mathlib link, however I've check in > the makefile, and there is all ok (i.g. gcc -lm ...). > > I'm actually not very familar with C/C++ and linux systems, so I'm in trouble :)" > _______________________________________________ > 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 ykwok2 at miners.utep.edu Thu Aug 23 12:40:46 2012 From: ykwok2 at miners.utep.edu (Yipkei Kwok) Date: Thu, 23 Aug 2012 10:40:46 -0600 Subject: [Disksim-users] disksim compile error undefined reference to `sqrt In-Reply-To: References: Message-ID: 2 things that you may want to check 1. sqrt() may require the math.h header. Does the C file include the header? 2. Is your libm.a in a non-standard location? If yes, you need to use the gcc flag -L to indicate the location of the library Good luck. Hope it helps. On Thu, Aug 23, 2012 at 10:24 AM, ?? wrote: > Hi all, I met the same problem as > https://sos.ece.cmu.edu/pipermail/disksim-users/2011-December/000699.html. > But I didn't find any solutions. Can anyone help me? > > > "Hi all, > > I'm trying to compile the DiskSim 4.0 and have the following error: > > "...memsmodel/mems_piecewise_seek.c:524: undefined reference to `sqrt'" > > and so on... (see the log file) > > It seems to be a problem with the mathlib link, however I've check in > the makefile, and there is all ok (i.g. gcc -lm ...). > > I'm actually not very familar with C/C++ and linux systems, so I'm in > trouble :)" > > > _______________________________________________ > Disksim-users mailing list > Disksim-users at ece.cmu.edu > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users > From nianglao at gmail.com Thu Aug 23 22:34:11 2012 From: nianglao at gmail.com (=?GB2312?B?y+/B+g==?=) Date: Fri, 24 Aug 2012 10:34:11 +0800 Subject: [Disksim-users] disksim compile error undefined reference to `sqrt In-Reply-To: References: Message-ID: "adjust the appearance of the "-lm" parameter to be the last parameter". It works. Thank you for your help. 2012/8/24 Yipkei Kwok > 2 things that you may want to check > > 1. sqrt() may require the math.h header. Does the C file include the > header? > 2. Is your libm.a in a non-standard location? If yes, you need to use > the gcc flag -L to indicate the location of the library > > Good luck. Hope it helps. > > On Thu, Aug 23, 2012 at 10:24 AM, ?? wrote: > > Hi all, I met the same problem as > > > https://sos.ece.cmu.edu/pipermail/disksim-users/2011-December/000699.html. > > But I didn't find any solutions. Can anyone help me? > > > > > > "Hi all, > > > > I'm trying to compile the DiskSim 4.0 and have the following error: > > > > "...memsmodel/mems_piecewise_seek.c:524: undefined reference to `sqrt'" > > > > and so on... (see the log file) > > > > It seems to be a problem with the mathlib link, however I've check in > > the makefile, and there is all ok (i.g. gcc -lm ...). > > > > I'm actually not very familar with C/C++ and linux systems, so I'm in > > trouble :)" > > > > > > _______________________________________________ > > 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 stroucki at ece.cmu.edu Thu Aug 23 23:06:53 2012 From: stroucki at ece.cmu.edu (Michael Stroucken) Date: Thu, 23 Aug 2012 23:06:53 -0400 Subject: [Disksim-users] disksim compile error undefined reference to `sqrt In-Reply-To: References: Message-ID: <5036EFCD.1090606@ece.cmu.edu> ?? wrote: > "adjust the appearance of the "-lm" parameter to be the last > parameter". It works. Thank you for your help. > > 2012/8/24 Yipkei Kwok > > > 2 things that you may want to check > > 1. sqrt() may require the math.h header. Does the C file include > the header? > 2. Is your libm.a in a non-standard location? If yes, you need to use > the gcc flag -L to indicate the location of the library > Hi Yipkei, Thanks for your help. Perhaps that will help the last person who asked about a libm issue. Also, there's a couple disksim projects on github. Maybe there are fixes there for everyone. :) Greetings, Michael. From nianglao at gmail.com Sun Aug 26 10:03:52 2012 From: nianglao at gmail.com (=?GB2312?B?y+/B+g==?=) Date: Sun, 26 Aug 2012 22:03:52 +0800 Subject: [Disksim-users] disksim_iosim.c:714: error: duplicate case value Message-ID: Hi, I have successfully used the disksim-4.0 on my own laptop with ubuntu linux OS. Then I move the archive to my server and when I make, I meet the problem -"disksim_iosim.c:714: error: duplicate case value". Can anyone help me? //------------------------------------------------------------------------------------------- mkdir -p ../include/disksim/modules cp -pR modules/*.h ../include/disksim/modules cp disksim_interface.h ../include gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim.c -o disksim.o disksim.c: In function ?disksim_cleanup?: disksim.c:1103: warning: implicit declaration of function ?iodriver_cleanup? gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_intr.c -o disksim_intr.o gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_pfsim.c -o disksim_pfsim.o gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_pfdisp.c -o disksim_pfdisp.o gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_synthio.c -o disksim_synthio.o disksim_synthio.c: In function ?synthio_appendio?: disksim_synthio.c:215: warning: cast to pointer from integer of different size gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_iotrace.c -o disksim_iotrace.o disksim_iotrace.c: In function ?iotrace_hpl_get_ioreq_event?: disksim_iotrace.c:373: warning: cast to pointer from integer of different size gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_iosim.c -o disksim_iosim.o disksim_iosim.c: In function ?iosim_load_map?: disksim_iosim.c:366: warning: cast to pointer from integer of different size disksim_iosim.c: In function ?io_initialize?: disksim_iosim.c:714: error: duplicate case value disksim_iosim.c:714: error: previously used here make[1]: *** [disksim_iosim.o] Error 1 make[1]: Leaving directory `/root/workdir/disksim-4.0/src' make: *** [all] Error 2 //------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From nianglao at gmail.com Sun Aug 26 10:05:47 2012 From: nianglao at gmail.com (=?GB2312?B?y+/B+g==?=) Date: Sun, 26 Aug 2012 22:05:47 +0800 Subject: [Disksim-users] disksim_iosim.c:714: error: duplicate case value In-Reply-To: References: Message-ID: In addition, I use the disksim-4.0-with-dixtrac.tar.gz and ssd patch from MSR. 2012/8/26 ?? > Hi, I have successfully used the disksim-4.0 on my own laptop with ubuntu > linux OS. Then I move the archive to my server and when I make, I meet the > problem -"disksim_iosim.c:714: error: duplicate case value". Can anyone > help me? > > > //------------------------------------------------------------------------------------------- > mkdir -p ../include/disksim/modules > cp -pR modules/*.h ../include/disksim/modules > cp disksim_interface.h ../include > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim.c -o > disksim.o > disksim.c: In function ?disksim_cleanup?: > disksim.c:1103: warning: implicit declaration of function > ?iodriver_cleanup? > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_intr.c -o > disksim_intr.o > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_pfsim.c -o > disksim_pfsim.o > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_pfdisp.c -o > disksim_pfdisp.o > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_synthio.c > -o disksim_synthio.o > disksim_synthio.c: In function ?synthio_appendio?: > disksim_synthio.c:215: warning: cast to pointer from integer of different > size > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_iotrace.c > -o disksim_iotrace.o > disksim_iotrace.c: In function ?iotrace_hpl_get_ioreq_event?: > disksim_iotrace.c:373: warning: cast to pointer from integer of different > size > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_iosim.c -o > disksim_iosim.o > disksim_iosim.c: In function ?iosim_load_map?: > disksim_iosim.c:366: warning: cast to pointer from integer of different > size > disksim_iosim.c: In function ?io_initialize?: > disksim_iosim.c:714: error: duplicate case value > disksim_iosim.c:714: error: previously used here > make[1]: *** [disksim_iosim.o] Error 1 > make[1]: Leaving directory `/root/workdir/disksim-4.0/src' > make: *** [all] Error 2 > > //------------------------------------------------------------------------------------------- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stroucki at ece.cmu.edu Sun Aug 26 15:02:58 2012 From: stroucki at ece.cmu.edu (stroucki at ece.cmu.edu) Date: Sun, 26 Aug 2012 15:02:58 -0400 Subject: [Disksim-users] disksim_iosim.c:714: error: duplicate case value In-Reply-To: References: Message-ID: Disksim is for 32 bit machines only. Maybe you can get it to work if you add -m32 to CFLAGS. Von meinem iDingsbums gesendet Am 26.08.2012 um 10:03 schrieb ?? : > Hi, I have successfully used the disksim-4.0 on my own laptop with ubuntu linux OS. Then I move the archive to my server and when I make, I meet the problem -"disksim_iosim.c:714: error: duplicate case value". Can anyone help me? > > //------------------------------------------------------------------------------------------- > mkdir -p ../include/disksim/modules > cp -pR modules/*.h ../include/disksim/modules > cp disksim_interface.h ../include > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim.c -o disksim.o > disksim.c: In function ?disksim_cleanup?: > disksim.c:1103: warning: implicit declaration of function ?iodriver_cleanup? > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_intr.c -o disksim_intr.o > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_pfsim.c -o disksim_pfsim.o > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_pfdisp.c -o disksim_pfdisp.o > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_synthio.c -o disksim_synthio.o > disksim_synthio.c: In function ?synthio_appendio?: > disksim_synthio.c:215: warning: cast to pointer from integer of different size > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_iotrace.c -o disksim_iotrace.o > disksim_iotrace.c: In function ?iotrace_hpl_get_ioreq_event?: > disksim_iotrace.c:373: warning: cast to pointer from integer of different size > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_iosim.c -o disksim_iosim.o > disksim_iosim.c: In function ?iosim_load_map?: > disksim_iosim.c:366: warning: cast to pointer from integer of different size > disksim_iosim.c: In function ?io_initialize?: > disksim_iosim.c:714: error: duplicate case value > disksim_iosim.c:714: error: previously used here > make[1]: *** [disksim_iosim.o] Error 1 > make[1]: Leaving directory `/root/workdir/disksim-4.0/src' > make: *** [all] Error 2 > //------------------------------------------------------------------------------------------- > _______________________________________________ > Disksim-users mailing list > Disksim-users at ece.cmu.edu > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users From leitian.hust at gmail.com Sun Aug 26 15:15:10 2012 From: leitian.hust at gmail.com (Lei Tian) Date: Sun, 26 Aug 2012 14:15:10 -0500 Subject: [Disksim-users] disksim_iosim.c:714: error: duplicate case value In-Reply-To: References: Message-ID: Long, Michael is right. The original version works on 32-bit machines only. There is another option. It is easy for you to find tutorials as well as corresponding patches from the web or the maillist, to help you compile DiskSim on 64-bit machines. In my memory, There are at least two or three tutorials available on the web. Lei On Aug 26, 2012, at 2:02 PM, stroucki at ece.cmu.edu wrote: > Disksim is for 32 bit machines only. Maybe you can get it to work if you add -m32 to CFLAGS. > > Von meinem iDingsbums gesendet > > Am 26.08.2012 um 10:03 schrieb ?? : > >> Hi, I have successfully used the disksim-4.0 on my own laptop with ubuntu linux OS. Then I move the archive to my server and when I make, I meet the problem -"disksim_iosim.c:714: error: duplicate case value". Can anyone help me? >> >> //------------------------------------------------------------------------------------------- >> mkdir -p ../include/disksim/modules >> cp -pR modules/*.h ../include/disksim/modules >> cp disksim_interface.h ../include >> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim.c -o disksim.o >> disksim.c: In function ?disksim_cleanup?: >> disksim.c:1103: warning: implicit declaration of function ?iodriver_cleanup? >> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_intr.c -o disksim_intr.o >> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_pfsim.c -o disksim_pfsim.o >> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_pfdisp.c -o disksim_pfdisp.o >> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_synthio.c -o disksim_synthio.o >> disksim_synthio.c: In function ?synthio_appendio?: >> disksim_synthio.c:215: warning: cast to pointer from integer of different size >> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_iotrace.c -o disksim_iotrace.o >> disksim_iotrace.c: In function ?iotrace_hpl_get_ioreq_event?: >> disksim_iotrace.c:373: warning: cast to pointer from integer of different size >> gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include -I../libparam/include -I../libddbg/include -g -DASSERTS -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_iosim.c -o disksim_iosim.o >> disksim_iosim.c: In function ?iosim_load_map?: >> disksim_iosim.c:366: warning: cast to pointer from integer of different size >> disksim_iosim.c: In function ?io_initialize?: >> disksim_iosim.c:714: error: duplicate case value >> disksim_iosim.c:714: error: previously used here >> make[1]: *** [disksim_iosim.o] Error 1 >> make[1]: Leaving directory `/root/workdir/disksim-4.0/src' >> make: *** [all] Error 2 >> //------------------------------------------------------------------------------------------- >> _______________________________________________ >> 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 From ricardoreyyy at gmail.com Sun Aug 26 17:54:47 2012 From: ricardoreyyy at gmail.com (Ricardo Rey) Date: Sun, 26 Aug 2012 16:54:47 -0500 Subject: [Disksim-users] disksim_iosim.c:714: error: duplicate case value In-Reply-To: References: Message-ID: Hi As stated by some people already, the problem is that Disksim won't complile natively on 64 bit architectures. There is a thread in the mailing list from December of last year, where Peter Macko posted a link to a blog that explains how to patch Disksim to work on 64 bit. The patch consists on changing about 6 or 7 source codes, you can apply it in about 15 minutes =) - Rick On Sun, Aug 26, 2012 at 9:03 AM, ?? wrote: > Hi, I have successfully used the disksim-4.0 on my own laptop with ubuntu > linux OS. Then I move the archive to my server and when I make, I meet the > problem -"disksim_iosim.c:714: error: duplicate case value". Can anyone > help me? > > > //------------------------------------------------------------------------------------------- > mkdir -p ../include/disksim/modules > cp -pR modules/*.h ../include/disksim/modules > cp disksim_interface.h ../include > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim.c -o > disksim.o > disksim.c: In function ?disksim_cleanup?: > disksim.c:1103: warning: implicit declaration of function > ?iodriver_cleanup? > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_intr.c -o > disksim_intr.o > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_pfsim.c -o > disksim_pfsim.o > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_pfdisp.c -o > disksim_pfdisp.o > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_synthio.c > -o disksim_synthio.o > disksim_synthio.c: In function ?synthio_appendio?: > disksim_synthio.c:215: warning: cast to pointer from integer of different > size > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_iotrace.c > -o disksim_iotrace.o > disksim_iotrace.c: In function ?iotrace_hpl_get_ioreq_event?: > disksim_iotrace.c:373: warning: cast to pointer from integer of different > size > gcc -Wall -Wno-unused -MD -c -I. -I../diskmodel/include > -I../libparam/include -I../libddbg/include -g -DASSERTS > -I../memsmodel/include -I../ssdmodel/include -D_INLINE disksim_iosim.c -o > disksim_iosim.o > disksim_iosim.c: In function ?iosim_load_map?: > disksim_iosim.c:366: warning: cast to pointer from integer of different > size > disksim_iosim.c: In function ?io_initialize?: > disksim_iosim.c:714: error: duplicate case value > disksim_iosim.c:714: error: previously used here > make[1]: *** [disksim_iosim.o] Error 1 > make[1]: Leaving directory `/root/workdir/disksim-4.0/src' > make: *** [all] Error 2 > > //------------------------------------------------------------------------------------------- > > _______________________________________________ > 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 nianglao at gmail.com Tue Aug 28 23:35:38 2012 From: nianglao at gmail.com (=?GB2312?B?y+/B+g==?=) Date: Wed, 29 Aug 2012 11:35:38 +0800 Subject: [Disksim-users] How to change the ssd capacity in disksim with ssd extentions Message-ID: Hi, all. I have asked a few questions before. Thanks for all that has helped me. Now, I am using the SSD extentions and want to change the capacity of every ssd. I change the parameters of ssd in parv file such as "Pages per block" and so on. But it does not work and disksim run abnormally. Has anyone ever change the capacity of ssd disks before? -------------- next part -------------- An HTML attachment was scrubbed... URL: From leitian.hust at gmail.com Wed Aug 29 10:43:33 2012 From: leitian.hust at gmail.com (Lei Tian) Date: Wed, 29 Aug 2012 09:43:33 -0500 Subject: [Disksim-users] How to change the ssd capacity in disksim with ssd extentions In-Reply-To: References: Message-ID: <699E34BB-6856-4246-AEF7-72B2AE1F873F@gmail.com> I tried DiskSim + MSR SSD add-on before. I changed the capacity and ran it successfully. What is your problem description? You cannot start and run the DiskSim? or Disksim unexpectedly terminated during a run? or something else? Lei On Aug 28, 2012, at 10:35 PM, ?? wrote: > Hi, all. I have asked a few questions before. Thanks for all that has helped me. > > Now, I am using the SSD extentions and want to change the capacity of every ssd. I change the parameters of ssd in parv file such as "Pages per block" and so on. But it does not work and disksim run abnormally. Has anyone ever change the capacity of ssd disks before? > _______________________________________________ > 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 nianglao at gmail.com Fri Aug 31 07:23:05 2012 From: nianglao at gmail.com (=?GB2312?B?y+/B+g==?=) Date: Fri, 31 Aug 2012 19:23:05 +0800 Subject: [Disksim-users] =?windows-1252?q?disksim_parameter_=93timescale?= =?windows-1252?q?=94_problem?= Message-ID: Hi! I run disksim with ssd extention with RAID5. When timscale=1.0, the trace "ssd-postmark-aligned2.trace" run in 30s. But when the timescale=0.1, it run in 160s! According to the manual of disksim-4.0, timescale associates with work loads. Why the trace run much longer when the timescale is much smaller? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fumin at smail.hust.edu.cn Fri Aug 31 23:42:54 2012 From: fumin at smail.hust.edu.cn (fumin) Date: Sat, 1 Sep 2012 11:42:54 +0800 Subject: [Disksim-users] How to compile DiskSim 4.0 on 64bit OS Message-ID: <2012090111425461519516@smail.hust.edu.cn> Hello. I am new to DiskSim, and want to try it on Ubuntu 64bit. But when I compile it, I just get some compile errors. I find some solutions from internet, e.g., adding -m32 gcc flag. However, after adding -m32 flag I still encounter other problems, e.g., missing header files due to all header files that I owned are of 64bit version. Would simply coping header files of 32bit version to my /usr/include/ directory makes it work? Or is there a complete guide to help me compiling DiskSim in 64bit environment? Thanks. Min Fu Huazhong University of Science and Technology (HUST) Wuhan, Hubei, China -------------- next part -------------- An HTML attachment was scrubbed... URL: