From: Marcos D. de A. <ma...@cs...> - 2008-04-02 23:39:15
|
Yonggang Liu, You are right, the current space shared policy of GridSim converts the parallel gridlets into sequential ones and executes them using one PE only. You could implement your own allocation policy that allocates multiple PEs to one gridlet. You can use the space shared policy as an example. Alternatively, you can use an extension of GridSim on which I have been working. Please note that the extensions have not been incorporated into GridSim. The source code is available as branch 3 of the SVN repository at sourceforge.net. I have been working on it and making a few changes, so the source code may occasionally change. The policies implemented there include aggressive (EASY) backfilling with configurable number of pivots (e.g. similar to the MAUI implementation) and configurable job ordering heuristics, conservative backfilling, among others. Please note that this code is not part of the GridSim distribution. If you do use it, please let me know whether you find any bugs on it or not. Regards, Marcos On 03/04/2008, Yonggang Liu <my...@gm...> wrote: > > > > > Dear officer, > > > > I want to use GridSim to simulate the back-filling algorithm on > multi-cluster environment. In this experiment, most gridlets should be > executed on more than one PEs. In addition, one PE can not serve for other > gridlets while serving for one gridlet. (I found this can be realized in the > SPACE_SHARED mode, right?) > > The question I have is how to run one gridlet on more than one PE? > > I know that "gridlet.setNumPE (int)" can do this work, but I found in > SPACE_SHARED mode, the gridlets can only be executed on single PEs. For > example, the Length of a gridlet is 5000 MI, and it requires 2 PEs(I set > it). The rating of all PEs in the resource is 500 MIPS. The actually CPU > time appears to be 20 (5000 * 2 / 500), and it shows that the gridlet is > executed on one gridlet. (Because in TIME_SHARED mode, one PE serves for > multi-gridlets, I did not choose this mode.) > > The automatic output shows this: > > > > Grid_Resource_SpaceShared.gridletSubmit(): Gridlet #0 from > User user requires 2 PEs. > > --> Process this Gridlet to 1 PE only. > > > > I would appreciate it very much if you can help me with this. The small > example (java file) indicating the problem is in the attachment, thank you > very much! > > > > Best regards, > > Yonggang Liu > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > 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... |