From: Marcos D. de A. <ma...@cs...> - 2009-02-15 23:10:41
|
Hi Ye, I am sorry, but I didn't receive any attachment. Cheers, Marcos On 14/02/2009, at 8:38 PM, ye huang wrote: > Hi, Marcos: > Thanks for reply! Since I am using Example04 from Grdisim sample > package to demonstrate the issue. It seems that the number of users in > the initialization is remained the same. > > I attached the file with the mail. For simple, actually it's just one > class without much modification from Example04. Hope it helps! > > Regards > ye > > > > On 14 Feb, 2009, at 4:35 AM, Marcos Dias de Assuncao wrote: > >> >> Dear Ye, >> >> The snippets of code seem ok. Please make sure that you are shutting >> down the user entities and have provided the correct number of users >> in the initialisation of GridSim. >> >> If that does not work, I am just wondering if you could provide us >> with more details about the code? >> >> Regards, >> >> Marcos >> >> >> On 10/02/2009, at 8:40 AM, ye huang wrote: >> >>> Hi, >>> Actually, I think the problem also exists upon gridsim itself (or i >>> haven't understood it well so far). >>> >>> I encountered a similar problem by extend the Example code of >>> gridsim itself, which i had also submitted to the maillist. >>> Unfortunately, no one replied that last time. The following is the >>> details: >>> >>> --- ---- [start] -------------- >>> However, I find another confusing "bug", it's about the way of >>> receiving gridlet sent back from resources. Here i am going to >>> explain it using a demo from GridSim's official example file: >>> Example 04: >>> >>> Starting from line 109 of Example 04, submitting and receiving >>> gridlets are finished in one loop as follows: >>> --- code snippet 1 --- >>> >>> for (int i = 0; i < this.list_.size(); i++) >>> { >>> gridlet = (Gridlet) this.list_.get(i); >>> info = "Gridlet_" + gridlet.getGridletID(); >>> >>> super.gridletSubmit(gridlet, resourceID); >>> >>> gridlet = super.gridletReceive(); >>> this.receiveList_.add(gridlet); >>> } >>> >>> In my scenario, in order the decouple the behavior, I split the >>> procedure into two parts as follows: >>> >>> --- code snippet 2 --- >>> >>> // part 1: submit gridlet >>> for (int i = 0; i < this.list_.size(); i++) >>> { >>> gridlet = (Gridlet) this.list_.get(i); >>> info = "Gridlet_" + gridlet.getGridletID(); >>> >>> super.send(resourceID, GridSimTags.SCHEDULE_NOW, >>> GridSimTags.GRIDLET_SUBMIT, gridlet); >>> >>> } >>> >>> // part 2: receive gridlet from gridresource >>> Sim_event ev = new Sim_event(); >>> while (Sim_system.running()) { >>> super.sim_get_next(ev); >>> >>> if (ev.get_tag() == GridSimTags.GRIDLET_RETURN){ >>> gridlet = (Gridlet) ev.get_data(); >>> >>> // stores the received Gridlet into a new GridletList object >>> this.receiveList_.add(gridlet); >>> } >>> >>> } >>> >>> // part 3, print the received gridlet list >>> printGridletList(this.receiveList_); >>> >>> --- >>> >>> Then, during the execution, I got the prompted warning : >>> Resource_0: Warning - Gridlet #2 owned by Example4 is already >>> completed/finished. >>> >>> The more gridlets were submitted, the more warning will be prompted. >>> >>> I have to say, it seems there is no mistake caused by this warning. >>> But to understand the infrastructure better, is there anyone could >>> help me about why it appears and how to avoid it? >>> >>> --- ---- [end] -------------- >>> >>> Regards >>> ye >>> >>> >>> On 9 Feb, 2009, at 6:09 PM, Jeyarani Rajarathinam wrote: >>> >>>> Hi Friends, >>>> I am using GridSim4.0 and I have created new internal policy >>>> instead >>>> of FCFS. I get the following error. Please help me to correct the >>>> problem >>>> >>>> JR >>>> I have submitted 4 gridlets and the fourth gridlet is small >>>> compared to >>>> rest. >>>> >>>> Sim_system: No more future events >>>> Gathering simulation data. >>>> GridResource_0: Warning - Gridlet #3 owned by User_0 is already >>>> completed/finish >>>> ed.Exception in thread "Thread-9" >>>> java.lang.NullPointerExceptionTherefore, it is not being executed >>>> again >>>> >>>> at Example8.body(Example8.java:107) >>>> >>>> at eduni.simjava.Sim_entity.run(Sim_entity.java:603) >>>> ------------------------------------------------------------------- >>>> ----------- >>>> Create and Deploy Rich Internet Apps outside the browser with >>>> Adobe(R)AIR(TM) >>>> software. With Adobe AIR, Ajax developers can use existing skills >>>> and code to >>>> build responsive, highly engaging applications that combine the >>>> power of local >>>> resources and data with the reach of the web. Download the Adobe >>>> AIR SDK and >>>> Ajax docs to start building applications today-http://p.sf.net/ >>>> sfu/adobe-com >>>> _______________________________________________ >>>> Gridsim-developers mailing list >>>> Gri...@li... >>>> https://lists.sourceforge.net/lists/listinfo/gridsim-developers >>> >>> >>> -- >>> >>> Ye Huang, Department of Informatics >>> University of Fribourg / Pérolles 2 - Bld de Pérolles 90 >>> 1700 Fribourg, Switzerland >>> >>> e-mail: ye....@he..., ye....@un... >>> http://diuf.unifr.ch/people/huangy/ >>> Office: +41 26 429 65 95 >>> >>> >>> >>> >>> -------------------------------------------------------------------- >>> ---------- >>> Create and Deploy Rich Internet Apps outside the browser with >>> Adobe(R)AIR(TM) >>> software. With Adobe AIR, Ajax developers can use existing skills >>> and code to >>> build responsive, highly engaging applications that combine the >>> power of local >>> resources and data with the reach of the web. Download the Adobe >>> AIR SDK and >>> Ajax docs to start building applications today-http://p.sf.net/ >>> sfu/adobe-com_______________________________________________ >>> Gridsim-users mailing list >>> Gri...@li... >>> https://lists.sourceforge.net/lists/listinfo/gridsim-users >> >> Marcos Dias de Assuncao >> Grid Computing and Distributed Systems (GRIDS) Laboratory >> Department of Computer Science and Software Engineering >> The University of Melbourne, Australia >> Email: ma...@cs... >> >> ------------- >> "It is well enough that people of the nation do not understand our >> banking and monetary system, for if they did, I believe there would >> be a revolution before tomorrow morning." >> >> Henry Ford >> > > > -- > > Ye Huang, Department of Informatics > University of Fribourg / Pérolles 2 - Bld de Pérolles 90 > 1700 Fribourg, Switzerland > > e-mail: ye....@he..., ye....@un... > http://diuf.unifr.ch/people/huangy/ > Office: +41 26 429 65 95 > > > > > ---------------------------------------------------------------------- > -------- > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source > code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gridsim-developers mailing list > Gri...@li... > https://lists.sourceforge.net/lists/listinfo/gridsim-developers Marcos Dias de Assuncao Grid Computing and Distributed Systems (GRIDS) Laboratory Department of Computer Science and Software Engineering The University of Melbourne, Australia Email: ma...@cs... ------------- "It is well enough that people of the nation do not understand our banking and monetary system, for if they did, I believe there would be a revolution before tomorrow morning." Henry Ford |