Subject: RE : RE : running cormas on a remote computer
From: christophe LE PAGE (le_page@cirad.fr)
Date: Thu Sep 21 2006 - 18:32:09 CEST
Hmmmmm...
I’m quite sure that displaying the spatial grid window is VERY
time-consuming, so for long and big simulations, it has to be closed.
As for the "simulation panel control" window, even if the current time step
is redisplayed at each time step, I would be very surprised that this is
causing the major pb you are mentionning.
But bur all the other Cormas GUI windows, fixed, I really don’t believe they
can consume time during a simulation run.
What about probes, especially if you save them in a local file?
By the way, here is one way to investigate more deeply the distribution of
the computing time used during one time step of your cormas model:
1. Load the parcel "AT Profiling" from VisualWorks main menu
2. Select “Tools -> Advanced -> Profiles -> Time” from VisualWorks
main menu: it opens a code editor window called "profile execution time".
Read the explanations and do the 3 tests to understand how this tool
operates
3. Initialize your cormas model
4. In the "profile execution time" window, enter, select then evaluate
the code below:
|c|
c := CormasNS.Kernel.Cormas allInstances first.
self profile: [c runStepByStep]
Bonne traque!
Amicalement,
Clp
> -----Message d'origine-----
> De : owner-cormas@cirad.cirad.fr [mailto:owner-cormas@cirad.cirad.fr] De
> la part de Paul Caplat
> Envoyé : jeudi 21 septembre 2006 20:56
> À : christophe.le_page@cirad.fr
> Cc : Liste CORMAS
> Objet : Re: RE : running cormas on a remote computer
>
> Dear Christophe,
> thank you for your help.
> as far as I can see, the change makes a difference but not
> drastic...maybe closing all the windows would have an effect, but
> then, how to control the running progress ??
>
> cheers
> Paul
>
> 2006/9/21, Christophe Le Page <christophe.l@chula.ac.th>:
> >
> > Dear Paul,
> >
> > I would be curious to know if you get drastic changes when including a
> first
> > instruction in your scheduling method
> >
> > step: t
> > t = 1 ifTrue: [self simManager cormas simulationWin close].
> > ...
> >
> > Please let us know if your guess was correct
> >
> > Bye,
> > clp
> >
> > > -----Message d'origine-----
> > > De: owner-cormas@cirad.cirad.fr [mailto:owner-cormas@cirad.cirad.fr]
> De
> > > la part de Paul Caplat
> > > Envoyé: lundi 18 septembre 2006 21:16
> > > À: Liste CORMAS
> > > Objet: running cormas on a remote computer
> > >
> > > Hi all,
> > > I have got the opportunity to run Cormas, remotely, on a BIG and
> > > POWERFUL computer. Unfortunately, the simulations appear to be quite
> > > slow. The reason I guess is that displaying the simulation windows by
> > > the network consumes more memory than the model itself.
> > >
> > > Do you think there would be a way of displaying the simulation windows
> > > only when asked ? I guess it'd need some changes in the kernel...???
> > > Paul
> >
> >
> >