In this section, we will compile Ruby and Opal and run a simulation manually. This is meant to illustrate the steps necessary to get Ruby and Opal loaded into Simics. For actual research and result gathering, it is highly recommended to script the running of the simulation. The Multifacet group uses extensive scripting, as well as the use of the Condor batch-computing system, to automate the running and data collection of simulation. Some examples of our scripts are provided in the $GEMS/gen-scripts directory. See the README file located in that directory, or see this short write-up on running a simulation using ["gen-scripts"].

Compile Ruby

Compile Opal

Set Environment and Start Simics

Load Checkpoint

Due to their immense size and legal restrictions, we do not release the actual checkpoint files. However, we have released limited support for checkpoint creation in the form of scripts. See the $GEMS/checkpoints directory for more information.

Configure Simics for Ruby/Opal

Load Ruby/Opal modules

At this point, Ruby can be loaded. Loading Opal is optional, and if omitted, will result in an in-order processor. Ruby and Opal automatically detect the presence of each other and cooperate accordingly.

Configure Ruby

The default options are specified in $GEMS/ruby/config/rubyconfig.defaults, however any of these can be overridden at runtime. Further, the number of processors must be specified at runtime as shown below.

The default memory size, set in rubyconfig.defaults, is 4GB. This can also be set at runtime to match your checkpoint.

Initialize Ruby and Opal

After setting runtime options, Ruby and Opal must be initialized.

Opal also requires its output file be set

Start Simulation

If Opal has been loaded, Opal must start Simics.

The argument to sim-step is merely a large number to run the simulation indefinitely until instructed otherwise.

If only Ruby has been loaded, we instruct Simics to start the simulation with the following command:

Print Results

Press Control-C to interrupt the simulation

Questions?

Please direct any Simics related questions to [https://www.simics.net/]

Please direct any GEMS related questions to the GEMS users mailing list. You can sign up for the mailing list here: [https://lists.cs.wisc.edu/mailman/listinfo/gems-users].

We also ask that you first search the mailing list to see if your question has already been answered. To search the mailing list please google the following: your-search-string site:https://lists.cs.wisc.edu/archive/gems-users/

Useful LogTM Links

[http://pages.cs.wisc.edu/~david/courses/cs758/Fall2007/handouts/hw-logtm.html]

[http://pages.cs.wisc.edu/~markhill/cs757/Spring2008/handouts/hw3.html]

[http://www.cs.wisc.edu/gems/doc/gems-wiki/moin.cgi/TM_Workload_Setup]

QuickStart (last edited 2009-07-10 18:09:01 by PolinaDudnik)