README.txt
上传用户:ganshun56
上传日期:2020-06-06
资源大小:27k
文件大小:3k
- /**
- * Author: Anthony Sulistio
- * Date: November 2004
- */
- Welcome to the Example of how to use GridSim workload trace functionality.
- To compile the example source code:
- In Unix/Linux: javac -classpath $GRIDSIM/jars/gridsim.jar:. TraceEx02.java
- In Windows: javac -classpath %GRIDSIM%jarsgridsim.jar;. TraceEx02.java
- where $GRIDSIM or %GRIDSIM% is the location of the gridsimtoolkit package.
- To run the class file:
- In Unix/Linux: java -classpath $GRIDSIM/jars/gridsim.jar:. TraceEx02 > file.txt
- In Windows: java -classpath %GRIDSIM%jarsgridsim.jar;. TraceEx02 > file.txt
- The above command means run the program and output the results into a file
- named "file.txt" rather than into screen or standard output.
- To prevent from overwriting an existing file, I renamed "file.txt" into
- "output.txt"
- NOTE:
- * running this experiment might take a lot of memory if the size of trace file
- is big (in terms of number of lines/jobs).
- If you encounter "out of memory" exception, you need to increase JVM heap size
- using 'java -Xmx' option.
-
- For example set the heap size to 300MB:
-
- In Unix/Linux:
- java -Xmx300000000 -classpath $GRIDSIM/jars/gridsim.jar:. TraceEx02 > file.txt
-
- In Windows:
- java -Xmx300000000 -classpath %GRIDSIM%jarsgridsim.jar;. TraceEx02 > file.txt
-
- * When you open "output.txt" file, it tells you that this example creates
- three entities: User, Workload and GridResource without a network topology.
- The User and Workload entity sends Gridlets to a particular GridResource
- entity.
- * When you see the "output.txt" file, there are few warnings about a Gridlet
- requires more than 1 PE. This is because the current GridSim schedulers,
- TimeShared and SpaceShared, only process 1 PE for each Gridlet.
- You are welcome to write your own scheduler that incorporates this
- QoS (Quality of Service) requirement.
-
- When running the example file, it will produce the following files:
- tracefile -> created by SimJava 1.2, now being replaced by sim_trace.
- NOTE: GridSim 2.1 uses SimJava 1.2
- GridSim 2.2 onwards use SimJava2
- sim_trace -> created by the SimJava2 package (lower-level) to trace every
- events (performed by SimJava and GridSim) during the simulation.
- We don't need to worry about this file. Not to important for our
- example.
- sim_report -> created by the SimJava2 package (lower-level) of GridSim.
- This is a simulation report that contains general information about
- running this experiment. We don't need to worry about this file.
- Not to important for our example.
-
- NOTE: sim_trace and sim_report will be overwritten if running
- a new experiment.