From: ye h. <ye....@un...> - 2008-09-28 18:45:06
|
Hi, Dear all: I am a little bit confused by the usage of WorkLoad class. 1. Does it provide the workload of a resource/machine, like the information presented in http://www.cs.huji.ac.il/labs/parallel/workload/logs.html ? 2. Or it traces the jobs submitted via same grid user (user's jobs workload trace?), since it's declared as "This class can be classified as one grid user entity" in the comment. 3. What's the type of this traced workload information? Dynamic or statistic? I tried to run the WorkLoadTrace demo codes from sample, however, i always got the following errors: --- Initializing GridSim package Initialising... Creates one Grid resource with name = Res_0 Creates one Grid resource with name = Res_1 Load_0: Creating a workload object ... Load_1: Creating a workload object ... Custom: Creating a workload object ... Starting GridSim version 4.0 Entities started. Load_0.body() :%%%% Start ... Load_1.body() :%%%% Start ... Load_1: Error - the file was not found: ../l_sdsc_blue.swf.txt.gz (No such file or directory) Load_1.body(): Error - unable to parse from a file. Custom.body() :%%%% Start ... Custom: Error - the file was not found: ../custom_trace.txt (No such file or directory) Custom.body(): Error - unable to parse from a file. Load_0: Error - an IOException occurred: No such file or directory Load_0.body(): Error - unable to parse from a file. Load_0.body() : %%%% Exit ... Load_1.body() : %%%% Exit ... Custom.body() : %%%% Exit ... GridInformationService: Notify all GridSim entities for shutting down. Sim_system: No more future events Gathering simulation data. Simulation completed. java.lang.NullPointerException at gridsim.util.Workload.printGridletList(Unknown Source) at WorkloadTrace.TraceEx01.TraceEx01.main(TraceEx01.java:141) --- It warns some files are missing, does it mean my file hierarchy is incorrect: --- ye-Mac:WorkloadTrace yehuang$ pwd /Users/yehuang/workspace/GridSimDemo/src/WorkloadTrace ye-Mac:WorkloadTrace yehuang$ ls README.txt TraceEx02 custom_trace.txt l_sdsc_blue.swf.txt TraceEx01 TraceEx03 l_lanl_o2k.swf.txt ye-Mac:WorkloadTrace yehuang$ cd TraceEx01/ ye-Mac:TraceEx01 yehuang$ ls README.txt custom_trace.txt l_sdsc_blue.swf.txt TraceEx01.java l_lanl_o2k.swf.txt output.txt --- Thanks a lot! regards ye -- Ye Huang, Department of Informatics University of Fribourg / Pérolles 2 - Bld de Pérolles 90 1700 Fribourg, Switzerland e-mail: ye....@he..., ye....@un... http://diuf.unifr.ch/people/huangy/ Office: +41 26 429 65 95 |