Re: [Gems-users] checkpoints with ruby


Date: Thu, 23 Jun 2005 18:40:42 -0500 (CDT)
From: Mike Marty <mikem@xxxxxxxxxxx>
Subject: Re: [Gems-users] checkpoints with ruby
load-caches will take a long time because it actually replays the contents
of the caches as individual memory requests.  The reason we do this is so
that we can use the same warmup files for different cache sizes and
configurations (it approximates well).  After each load is completed, we
clear the Ruby stats and continue the simulation.

I'm not positive how big our standard cache warmup files are, but I've
seen it take anywhere between 10-45 minutes to load the caches.

--Mike


On Thu, 23 Jun 2005, Christian Bienia wrote:

> Hi,
>
> thanks a lot. I could fix the issue with the Simics checkpoint, but I
> still have problems resuming a simulation from a given state: Loading
> the ruby cache contents with load-caches fails. The Simics console seems
> to hang without any error messages, and the load-caches command has to
> be interrupted with Ctrl-C. The ruby cache contents file seems to be
> valid, I can manually decompress it with gunzip and it looks ok.
>
> Chris
>
>
> On Thu, 2005-06-23 at 16:19, Alaa Alameldeen wrote:
> > Chris,
> >
> > If you created the checkpoint with the ruby module loaded, you need to edit the
> > checkpoint file manually to remove the ruby object from it. I think it is
> > mentioned in a couple of places. The reason why loading the checkpoint fails is
> > that Simics doesn't recognize the object ruby when it first starts.
> >
> > -Alaa
> >
> > Christian Bienia wrote:
> > > Hi,
> > >
> > > I created a checkpoint of a benchmark with only ruby loaded (no opal).
> > > However, when I quit Simics and try to read the configuration again, I
> > > get the following error:
> > >
> > >
> > >
> > > simics> read-configuration
> > > ../../checkpoints-u3/188.ammp/188.ammp-32-1b.ckp
> > > cannot open file: ./modules/ruby-v9.so
> > > Unexpected error when loading module 'ruby'
> > >
> > > cannot open file: ./modules/ruby-v9.so
> > > Unexpected error when loading module 'ruby'
> > >
> > > Class ruby not found.
> > > Error reading configuration file
> > > Failed reading configuration
> > > simics>
> > >
> > >
> > >
> > > list-modules shows that ruby is there, and list-failed-modules doesn't
> > > show any errors. The confusing thing is that I can load checkpoints
> > > which I have created without ruby being loaded, and after that I can
> > > load and use ruby normally.
> > >
> > > To be a little bit more specific, I did exactly what Alaa explained in
> > > his post on Feb 15 about "fast forwarding module in Ruby/Opal":
> > >
> > >
> > >
> > > To get a cache warmup file:
> > > <...start from a checkpoint, do all required initialization...>
> > > load-module ruby
> > > ruby0.init
> > > <....run simics for the amount of time you want...>
> > > write-configuration <checkpoint_file_name>
> > > ruby0.save-caches <cache_file_name>
> > > quit
> > > Now to use that warmup file:
> > > read-configuration <checkpoint_file_name>
> > > <...do all required initialization...>
> > > load-module opal
> > > load-module ruby
> > > ruby0.init
> > > opal0.init
> > > ruby0.load-caches <cache_file_name>
> > > <...run your simulation...>
> > > <...print Ruby and/or Opal statistics...>
> > > quit
> > >
> > >
> > >
> > > The error happens after "read-configuration <checkpoint_file_name>". Does anybody know how I can fix that?
> > >
> > > Chris
> > >
> > > _______________________________________________
> > > Gems-users mailing list
> > > Gems-users@xxxxxxxxxxx
> > > https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> > _______________________________________________
> > Gems-users mailing list
> > Gems-users@xxxxxxxxxxx
> > https://lists.cs.wisc.edu/mailman/listinfo/gems-users
>
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
>
[← Prev in Thread] Current Thread [Next in Thread→]