From: Marcos D. de A. <ma...@cs...> - 2008-09-28 23:41:33
|
Hi Ye, The Workload class loads a workload trace file and creates gridlets according to the information in the trace. In other words, you need to download a file that represents the workload of the resource you are modelling from http://www.cs.huji.ac.il/labs/parallel/workload/ logs.html. Then, you provide this file, or part of it, to the workload object which will in turn create gridlets that have the same number of processors and submission times of the jobs in the trace. The examples fail because they cannot find those workload files in your system. You need to download them. Regards, Marcos On 29/09/2008, at 4:44 AM, ye huang wrote: > 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 > > > > > ---------------------------------------------------------------------- > --- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gridsim-developers mailing list > Gri...@li... > https://lists.sourceforge.net/lists/listinfo/gridsim-developers Marcos Dias de Assuncao Grid Computing and Distributed Systems (GRIDS) Laboratory Department of Computer Science and Software Engineering The University of Melbourne, Australia Email: ma...@cs... ------------- "No serious sociologist any longer believes that the voice of the people expresses any divine or specially wise idea. The voice of the people expresses the mind of the people, and that mind is made up for it by the group leaders in whom it believes and by those persons who understand the manipulation of the public opinion. It is composed of inherited prejudices and symbols and cliché's and verbal formulas supplied to them by the leaders." Edward L. Bernays |