From: Eran C. W. <era...@gm...> - 2010-12-10 15:03:43
|
Hi Augustin, This helps. I will try this approach. Thanks, Eran Chinthaka Withana 2010/12/10 Agustín Caminero Herráez <ag...@ds...> > Hi Eran, > > > On 12/05/2010 06:33 AM, Eran Chinthaka Withana wrote: > > Hi Agustin, > > Thanks for your reply (but it has gone to my spam list). > > Anyway, the gridsim examples show to setup the environment and start the > simulation. Once I call start simulation, it will simulate the > workload/gridlets without stopping. What I want is a way to submit a > gridlet, get the result, submit another gridlet, get the result kind of > scenario. Can you please let me know the way to do that if I can do it? > > In this case, all u have to do is modify the processGridletReturn() > function (as called in GridUserFailureEx01.java class) to do what u want. > This function is called when a gridlet is received, and essentially it > collects statistics about the just received gridlet. Now, u have to modify > it to submit the next gridlet. > > Besides, u also have to modify the body() function, because by now it > submits a gridlet when a GRIDLET_SUBMIT event. Now, u remove this part and > submit gridlets as I mentioned above. > > Hope this helps. > > Regards, > > Agustin > > > Thanks, > Eran Chinthaka Withana > > > 2010/10/15 Agustín Caminero Herráez <ag...@ds...> > >> Hi Eran, >> >> I can't see any difference between what u want to do and the examples of >> resource failure, coming along with GridSim code. Are u sure they don't fit >> ur needs? >> >> Regards, >> >> Agustin >> >> >> On 10/15/2010 05:43 AM, Eran Chinthaka Withana wrote: >> >> Hi, >> >> I'm a PhD student from Indiana University and trying to use gridsim to >> simulate unreliable computational resources. >> >> I'm trying to use gridsim such that it will represent two or more >> compute resources (each having many nodes in it). But I should be able to >> assign a reliability distribution, just like HyperExponential function that >> you have already implemented. This is how I want it to work. >> >> 1. A user code will create a gridlet representing a job it has >> 2. gridlet is given to gridsim and it will either successfully run >> (simulate it) or will create a failure (following the given reliability >> distribution function). >> 3. user will be notified, either using the gridlet itself or some other >> mean, whether the job was successful or failed. >> 4. this process from 1-3 to will continue for all the jobs in a queue. But >> I want the user code to be notified about the status of each job (success or >> fail). >> >> Can you please point me to a code sample or provide me a code sample >> that can do this? When I looked in to the code, the examples always show >> that you have to invoke gridsim.simulate and it will run all the gridlets at >> once. But I want to go in the order given above. >> >> Thanks, >> Eran Chinthaka Withana >> >> >> ------------------------------------------------------------------------------ >> Download new Adobe(R) Flash(R) Builder(TM) 4 >> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly >> Flex(R) Builder(TM)) enable the development of rich applications that run >> across multiple browsers and platforms. Download your free trials today!http://p.sf.net/sfu/adobe-dev2dev >> >> >> _______________________________________________ >> Gridsim-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/gridsim-users >> >> >> -- >> Dr. Agustin Caminero >> Assistant Professor >> Dept. of Communication and Control Systems >> The National University of Distance Education >> Madrid. SpainE-Mail:acc...@sc... >> Phone: +34 913 989 468http://www.uned.es >> >> >> >> ------------------------------------------------------------------------------ >> Download new Adobe(R) Flash(R) Builder(TM) 4 >> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly >> Flex(R) Builder(TM)) enable the development of rich applications that run >> across multiple browsers and platforms. Download your free trials today! >> http://p.sf.net/sfu/adobe-dev2dev >> _______________________________________________ >> Gridsim-users mailing list >> Gri...@li... >> https://lists.sourceforge.net/lists/listinfo/gridsim-users >> >> > > -- > Dr. Agustin Caminero > Assistant Professor > Dept. of Communication and Control Systems > The National University of Distance Education > Madrid. SpainE-Mail:acc...@sc... > Phone: +34 913 989 468http://www.uned.es > > |