[Disksim-users] How to change the 'Trace Time Scale' Parameter in the 'iosim' Block!

Lei Tian leitian.hust at gmail.com
Fri Feb 18 17:33:20 EST 2011


Hi Peyman,

The reason why 'Trace Time Sacle' does not work when you change the number in the configuration file, perhaps is that the function of "disksim_iosim_loadparams" is not called to load the iosim parameters. However, if you manually change the value of this parameter in disksim_iosim.c, it should work. I did it and it works. 

By the way, there is another way to achieve the same goal with an *ugly* minor change to the Disksim source code. Because other parameters could be loaded from a configuration file, you can use other parameter that is in other sections instead of iosim and you do not use in your test (e.g., 'Time stamp interval' in logorg if you do not configure your storage system as a parity-encoded RAID system). Then, you insert one line of code in disksim.c, something like this:

disksim->iosim->ioscale = disksim -> iodriver_info -> logorgs[0] -> stampinterval;

after calling the disksim_loadparams() but ahead of calling the prime_simulation() in the disksim_setup_disksim() function.

I think it is worth trying for you.

Lei

On Feb 14, 2011, at 2:39 AM, Peyman Behzadnia wrote:

> Dear all,
>  
> I have a heavy workload trace(100 req/sec) which i want to feed it into my simulation. I need to scale it through the ' Trace Time Scale' parameter such that the simulation can handle it without saturation error. The confusing thing here is that, when i simply change this parameter value in my parameter file, it does not reflect any change in the output file, even any change in any number. I tried to manually change this paramater value through the simulator's code though, but again no effect. Also, i could not modify it through 'parameter override' in the command. Has anybody touched this parameter before somehow?
> I appreciate your hints or comments about this issue.
>  
> Thanks
> Peyman
> _______________________________________________
> 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