From: Agustín C. H. <ag...@ds...> - 2008-06-23 07:23:33
|
Hi Gilberto, Gilberto Cunha escribió: > Hi! Agustín and Marcos. > > Thank you for your suggestions. > > I'm looking at them carefully. Initially i would' like use the > resource failure functionality and set resources initially as failed > as you wrote. > > But i' don't understand very well what's means some parameters about > the constructor parameters of class HyperExponential. > > |*HyperExponential > <http://www.gridbus.org/gridsim/doc/api/gridsim/util/HyperExponential.html#HyperExponential%28double,%20double,%20int%29>*(double mu, > double sigma, int i)| > > * What's means the parameter "i" ? > > > * and If I want simulate 40% (80 resources) of resources intially > failed, and during the simulation join 2,5% (5 resources is the > same of one machine with one PE) following the distribuition and > fail more 2,5% of resources available. I have a set of 200 > GridResources, where each resource is just one machine with one > PE. For example, what's values I should use. > The hyperexponential distribution is used just to make a randomized selection of failed resources, failure length, and failure start time. So, if u want to make such a concrete simulation (without randomized stuff regarding the number of failed resources), what u should do is remove the use of that distribution for that purpose, and manually set the number of failed resources, failures times and so on. In order to do this, u have to modify the code of the RegionalGISWithFailure class, so that u set 80 resources initially failed. Then, u set the recovery of 5 of those resources (the time of the recovery can be chosen by a distribution). Later, u must set another 5 resources as failed (when they fail can be chosen at random). To do this, u have to modify processGridResource_Failure function: 1- Set 80 resources initially as failed: Step 4 in Fig 3 in the first document mentioned below. Send a GRIDRESOIURCE_FAILURE event to those 80 resources. The getNextFailureLengthSample() function should return a finite duration for 5 of those resources (since they will recover during sims), so u may probably need to modify this function. For the other 75 resources that will not recover, the duration of the failure should be infinite. 2- For the 5 resources initially working that fail during sims, u must manually set the number of resources that fail, and choose the moment and length of the failure. U will find an explanation of the way how the failure functionality works here: http://www.dsi.uclm.es/descargas/thecnicalreports/DIAB-07-01-1/DIAB-07-01-1.pdf http://www.gridbus.org/papers/gridsim-failure-detection-icpads2007.pdf Take a look into the processGridResource_Failure function and tell em if u keep having doubts. All the best, Agustin > Thanks and Regards, > > Gilberto Cunha > > > > > > On Wed, Jun 11, 2008 at 7:16 AM, Marcos Dias de Assuncao > <ma...@cs... <mailto:ma...@cs...>> wrote: > > > Dear Gilberto, > > In theory you could create a GridResource dynamically during the > simulation in the same way that you create GridResources before > the simulation starts. One entity could, for example, create a > resource with the required characteristics. The constructors of > the Sim_entity class call Sim_system.add(this) to include the just > created entity to the list of entities created. The method add of > sim_system is as follows: > > /** > * Add a new entity to the simulation. This is present for > compatibility with existing > * simulations since entities are automatically added to the > simulation upon instantiation. > * @param e The new entity > */ > public static void add(Sim_entity e) { > Sim_event evt; > if (running) { > // Post an event to make this entity > evt = new > Sim_event(Sim_event.CREATE,clock,current_ent().get_id(),0,0, e); > future.add_event(evt); > } else { > if (e.get_id()==-1) { // Only add once! > e.set_id(entities.size()); > entities.add(e); > } > } > } > > Basically, if the simulation is running, it will schedule one > event, which is handled by Sim_system itself in a private method. > > Everything looks fine. However, in practice SimJava has a bug > because future.add_event(evt); may raise an exception as it is not > synchronised and the list called future (containing the future > simulation events) may be changed simultaneously by two entities. > I had concurrent modification problems with the auction framework > when adding entities at runtime. It is actually simple to solve > it, but it requires one to change SimJava. > > Regards, > > Marcos > > > > On 11/06/2008, at 5:28 PM, Agustín Caminero Herráez wrote: > > Hello, > > I don't think u can create gridResources dynamically during > simulations. > > What u can do instead is use the resource failure > functionality and set resources initially as failed, then make > them available as sim progresses. > > This way u would simulate the dynamic creation of GridResources. > > Regards, > > Agustin > > > Gilberto Cunha escribió: > > > Hello, > > I have a question regarding GridResource. > My doubt is as follows: > > How can i create GridResources during the simulation, in a > dynamic way? > > Regards, > -- > Gilberto Cunha Filho > gil...@gm... <mailto:gil...@gm...> > <mailto:gil...@gm... > <mailto:gil...@gm...>> > SISMO - Laboratório de Sistemas e Mobilidade > UFMA > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > ------------------------------------------------------------------------ > > _______________________________________________ > Gridsim-users mailing list > Gri...@li... > <mailto:Gri...@li...> > https://lists.sourceforge.net/lists/listinfo/gridsim-users > > > -- > =============================================== > Agustin Caminero > PhD Student > Computing Systems Department > The University of Castilla La Mancha, Albacete. Spain. > Phone: +34 967 599 200 Ext. 2693. Fax: +34 967 599 343 > http://www.i3a.uclm.es/ > =============================================== > > <agustin.vcf>------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php_______________________________________________ > Gridsim-users mailing list > Gri...@li... > <mailto:Gri...@li...> > https://lists.sourceforge.net/lists/listinfo/gridsim-users > > > > > > -- > Gilberto Cunha Filho > gil...@gm... <mailto:gil...@gm...> > SISMO - Laboratório de Sistemas e Mobilidade > UFMA -- =============================================== Agustin Caminero PhD Student Computing Systems Department The University of Castilla La Mancha, Albacete. Spain. Phone: +34 967 599 200 Ext. 2693. Fax: +34 967 599 343 http://www.i3a.uclm.es/ =============================================== |