[Disksim-users] DiskSim can't be compiled on a 64-bit machine.

Ricardo Rey ricardoreyyy at gmail.com
Wed Sep 25 16:29:22 EDT 2013


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 <zhengda1936 at gmail.com> 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: <http://lists.andrew.cmu.edu/pipermail/disksim-users/attachments/20130925/a8158c65/attachment.html>


More information about the Disksim-users mailing list