From: Marcos D. de A. <mar...@gm...> - 2010-05-15 09:24:33
|
Dear Marziye, the rating provided in the constructor of the workload is the number of MIPS used to compute the number of millions of instructions that the gridlets read from a job trace file will have. Please note that the workload class is used to read information from a file and create gridlets accordingly. The information that a job trace file contains is usually the time in seconds at which the jobs were submitted, number of CPUs required and for how long they executed. This last period is given in seconds as well. So, when you create a workload you must provide the number of MIPS of the resource from which the job trace file was extracted. In this way, if a job described in the file took 60 seconds to execute on that resource, and you specify the rating as 1000, then the number of MIs of the gridlet created by the workload will be 60*1000. If you assign the same rating to the Grid resource you create, then the gridlet will take the same time to execute as specified in the trace file. The way the wokload class works is by submitting all the jobs read from the file to an individual resource. If you want to submit jobs to different resources, there are a few options: + Create various Workloads, each submitting jobs to a different resource. + Modify or extend the Workload class to submit jobs to different resources. + Create a broker, which behaves as a resource receiving the jobs from the workload and then forwarding them to the respective Grid resources. Cheers, Marcos On 14 May 2010 15:04, marziye inanloo <mar...@gm...> wrote: > Hello > > I read the conservative example in gridsim.parallel again. > > I have two questions and I hope you to help me. > > > > a- > > WorkloadFileReader model = new WorkloadFileReader(fileName, rating); > > In this line I know that you have used rating parameter to calculate the > length of gridlets. > > Have you used this parameter for another purpose? > > And if we want to use more than one resource with different rating (not one > resource with several partitions), which resource rating should we write in > this line? > > > > b- > > Workload workload = new Workload("Load_1", resource.get_name(), model); > > Why have you used resource.get_name() in this function and when we want to > use more than one resource which resource name should we write in this > function? > > > > Could you please introduce me an article about my questions? > > Thanks a lot > > Bye -- Marcos DIAS DE ASSUNCAO - Postdoctoral researcher INRIA RESO - LIP Bureau 337, Ecole Normale Superieure 46, allee d'Italie - 69364 - Lyon Cedex 07 - France Phone: +33 4 72 72 82 28 |