From: Hamid M. F. <ha...@dp...> - 2010-04-15 08:44:41
|
thanks you so much, my problem was solved with clock() :) Agustín Caminero Herráez wrote: > U could use GridSim.clock() to get the actual sim time > > Hamid Mohammadi Fard wrote: > >> It's not possible. because when you measure the submission time of >> gridlet by getSubmissionTime() method, it return the time of task >> submission without considering the input transfer time. I mean if for >> example you spend 100s to transfer your input it return 101 as >> submission time and it is not clear when data begins to transfer and >> when it is finished. >> >> thanks >> hamid >> >> Agustín Caminero Herráez wrote: >> >>> Perhaps, u could store the time when a gridlet reaches a resource (class >>> GridResource, function processGridletSubmit), along with the time when >>> the gridlet is submitted (class GridSim, function gridletSubmit). This >>> way u can calculate the transfer time for input files. >>> >>> Then, something similar can be done for the output files. >>> >>> Regards, >>> >>> Agustin >>> >>> Hamid Mohammadi Fard wrote: >>> >>> >>>> Thanks for your guidance. >>>> But I need to measure Input transfer time and Output transfer time >>>> separately. do you know any way for this? >>>> >>>> >>>> Agustín Caminero Herráez wrote: >>>> >>>> >>>>> Well, u can just keep the time when the gridlet is submitted and the >>>>> time when it is received (this is the total time of a gridlet), >>>>> then get >>>>> the wallclocktime of the gridlet and substract it from the total time. >>>>> >>>>> This way u get the transfer time, including both input and output >>>>> files >>>>> >>>>> Hamid Mohammadi Fard wrote: >>>>> >>>>> >>>>> >>>>>> I need to measure the transfer time of gridlet's input and output, >>>>>> but I could not find anyway to measure it. I mean I wnt o know when >>>>>> the data (Input and Output) begins to transfer and when it finishes. >>>>>> Would you help me please. >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> >>>>>> >>>>>> Download Intel® Parallel Studio Eval >>>>>> Try the new software tools for yourself. Speed compiling, find bugs >>>>>> proactively, and fine-tune applications for parallel performance. >>>>>> See why Intel Parallel Studio got high marks during beta. >>>>>> http://p.sf.net/sfu/intel-sw-dev >>>>>> _______________________________________________ >>>>>> Gridsim-developers mailing list >>>>>> Gri...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/gridsim-developers >>>>>> >>>>>> >>>>> >>>>> >>> >>> > > |