[Disksim-users] Using Disksim
Peter Macko
pmacko at eecs.harvard.edu
Sat Dec 10 01:17:54 EST 2011
Hi,
There is a very simple, yet complete, example that is directly distributed as a part of the DiskSim source code - it's src/syssim_driver.c. It shows you how you can run DiskSim from your C code and pass to it your own requests one I/O request at the time.
In short, you need to specify a .parv file (such as any one of those in the valid/ directory) and an output file when you initialize DiskSim using disksim_interface_initialize(), and then you can submit your own I/O requests using disksim_interface_request_arrive() as shown in the example. The only catch is that you would need to make additional calls to disksim_interface_internal_event(), but that's all shown in the example.
To run the example, just compile DiskSim as usual, and then you can run something like "src/syssim valid/hp_c2490a.parv output.txt 10000" from the disksim/ directory.
I hope this helps.
Best,
-Peter
On Dec 9, 2011, at 3:59 PM, Ricardo Rey wrote:
> Hi, all!
>
> I am new to DiskSim, and I have not fully understood how to use it yet.
>
> Basically, I need to make a C program which will call DiskSim.
>
> As far as I understand things, in the parameter file I can "build" the topology of my system, I can specify which disks I'm going to be using, the type of disk, etc.
>
> What I don't understand is how to tell the simulator what to do. Let's say I want to simulate the writing of a 100MB file... how can I pass such a request?
> Should it be in the tracefile, or would it be "synthetically generated? What would the "tracetype" be?
>
> As you can see, I'm really lost here, and the PDF from the CMU web page is more of a reference than a manual.
>
> So... can someone help me out with this? Or maybe someone knows where I can find an actual tutorial/manual on how to use DiskSim?
>
> Greetings!
>
> Rick
> _______________________________________________
> Disksim-users mailing list
> Disksim-users at ece.cmu.edu
> https://sos.ece.cmu.edu/mailman/listinfo/disksim-users
More information about the Disksim-users
mailing list