Showing posts with label disksim. Show all posts
Showing posts with label disksim. Show all posts

March 10, 2011

Hybrid disk simulation using DiskSim

DiskSim is a well known simulator for storage developed at CMU. It simulates disks or SSD devices (with an extension from Microsoft). Unfortunately it does not support to combine both, having a hybrid disk like Seagates Momentus. The following few paragraphs show how you to implement a hybrid disk.

For convenience you can also download the hybrid disksim package here including all changes.

First download DiskSim and the SSD extension to a 32-bit Linux machine. Extract Disksim and extract the ssdmodel folder from the extension into the disksim-4.0 folder. Follow the directions of the README file in the ssdmodel folder. Run make in the disksim-4.0 folder and run the validation scripts of disksim as well as from the ssd extension.

Download this file (download) which includes the diff of the original disksim version and the hybrid disksim. Apply the changes. Recompile the entire package.

Now you should be able to instantiate the following layout of components:
topology disksim_iodriver driver0 [
   disksim_bus bus_dr2c [
      disksim_ctlr ctlr0 [ 
         disksim_bus bus_c2di [
            disksim_disk disk0 []
         ],
         disksim_bus bus_c2f [
             ssdmodel_ssd ssd0 []
         ]
      ]
   ]
]

Here the controller has two different buses which separate the accesses to the disk or the SSD. A complete parameter file can be found here.

Now you're ready to use it.

Important Downloads: