From: yangyu <ya...@hp...> - 2007-10-05 04:21:31
|
Good morning Agustin, Good morning everyone, =20 Thank you very much for the information you gave to me. I am happy to hear that the speed of PEs can be changed when the = simulation is running. I just tried one way to change the speed of PEs. It seems that it does = not work .(Forgive me if I chose a wrong way to write the code) I am not = sure the method I used is right or not. Can you tell me why I can not change the speed(rating) of PEs when you = are not busy? =20 Thank you very much. PS. I found that in the Class ResourceCharacteristics, the method = setResourceID(int id) does not work.(I can not make resources ID as I = want them to be.) =20 =20 bestwishes, yang, ---------the code-------------------------------------------------- _/*I ran this program step by step to see "rate"and "rate_change".I = found that they were same*/ public void changePE(){ int rate=3D0; int rate_changed=3D0; PEList pelist=3Dresource.getMachineList().getMachine(0).getPEList(); int num=3Dresource.getNumPE(); =20 /*to see the rate of PEs before change them. there were 6PEs and each = PE~s speed is 200*/ for(int i=3D0;i<num;i++){ rate=3Dpelist.getMIPSRating(i); } =20 /* try to change speed to 1000 using the method that I know*/ for(int i=3D0;i<num;i++) { pelist.add(new PE(i,1000)); // PE pe=3Dnew PE(i,1000); // pe.setMIPSRating(1000); } MachineList mList =3D new MachineList(); mList.add( new Machine(0, pelist) ); String arch =3D "Sun Ultra"; // system architecture String os =3D "Solaris"; // operating system double time_zone =3D 0.0; // time zone this resource = located ResourceCharacteristics resource =3D new ResourceCharacteristics( arch, os, mList, = ResourceCharacteristics.SPACE_SHARED, time_zone, 1); // PEList pelist1=3Dresource.getMachineList().getMachine(0).getPEList(); /* to check that they are changed or not*/ =20 for(int i=3D0;i<num;i++) { // rate_changed=3Dpelist1.getMIPSRating(i) rate_changed=3Dpelist.getMIPSRating(i); = //rate_changed is same as rate.=20 } } -------------------------------------------------- Agust=E9=86=87^n Caminero Herraez <ag...@ds...> wrote: Hello YangYu, Sorry for the late reply, but I've been busy these days. I think that what you say can be done in a similar way as the resource=20 failure functionality. This is, computing resources could change the speed of their PEs in=20 response to an event. If you do this, you should consider the allocation policy in place, as=20 in the body function of the space-shared allocation policy the rating of = the PEs of the resource are retrieved. So, more concretely, the GridResource class should receive the event=20 (perhaps the event could be sent by the GIS, as in the resource=20 failure). Then, update the PE class with the new rating by going through = the ResourceCharacteristics class, to the MachineList, to the PEList=20 until you get to the actual PE you want to modify. If you use=20 SpaceShared policy, update the PEs rating also in this class. Normally, allocation policies consider that all the PEs of the same=20 machine are identical, so you should take it into account when changing=20 the PE rating, and keep it always like that. Hope that this is useful. Do not hesitate to ask again if you still have = doubts. Regards, Agustin yangyu escribi=E5=B0=86=E3=83=A0: > hi,Thank you for your help !! > It took me time to read and run the examples. > I am sorry to re-mail you late,infact I do not know how to explain my = doubts > to you by this mailing list. > > I want to chage the speed of PEs or machines dynamicly. > for example,change a pe`s rating from 100 to 500 when the simulation = is > running. > Not to mean that make the machine down(speed/performance=3D0?). > > Thank you very much . > > > yours, > > > Hi, > > When you say dynamic performance, what do you actually mean? > > Because since the current (4.1) version of GridSim, computing = resources > may fail. This is, machines belonging to computing resources may work = for > some time, then stop working for some time, and then back again to = work. > > Thus, the performance of the computing resources may change = dynamically, > if you use this computing resource failure functionality. > > For instructions on how to use this functionality, please take a look = at > http://www.gridbus.org/gridsim/example/resFailure_index.html > where there are examples on how to use it. > > Also, take a look into these addresses: > > http://www.gridbus.org/reports/GridSim-FailureHandling-2007.pdf > > = http://www.dsi.uclm.es/descargas/thecnicalreports/DIAB-07-01-1/DIAB-07-01= -1. > pdf > > Let me know if this answers your doubts, > > Regards, > > Agustin > > >=20 >> Dear All, >> >> I am sorry to take you time to read my mail. >> I hope I can get your help. >> >> I want to know whether the GridSim support to creat dynamic = performance >> machines or not? >> >> >> Thank you very much. >> Bestwishes, >> >> Y.Y >> = -------------------------------------------------------------------------= >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> >>=20 > = http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/__________________= ___ > __________________________ >=20 >> Gridsim-users mailing list >> Gri...@li... >> https://lists.sourceforge.net/lists/listinfo/gridsim-users >> >>=20 > > > -- > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > Agustin Caminero-Herraez > PhD Student > Computing Systems Department > The University of Castilla La Mancha, Albacete. Spain. > Phone: +34 967 599200 Ext. 2693. Fax : +34 967 599224 > http://www.i3a.uclm.es/ > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > > > = -------------------------------------------------------------------------= > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gridsim-users mailing list > Gri...@li... > https://lists.sourceforge.net/lists/listinfo/gridsim-users >=20 --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D Agustin Caminero-Herraez PhD Student Computing Systems Department The University of Castilla La Mancha, Albacete. Spain. Phone: +34 967 599200 Ext. 2693. Fax : +34 967 599224 http://www.i3a.uclm.es/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D begin:vcard fn;quoted-printable:Agust=3DC3=3DADn Caminero-Herr=3DC3=3DA1ez n;quoted-printable;quoted-printable:Caminero-Herr=3DC3=3DA1ez;Agust=3DC3=3D= ADn org;quoted-printable:Universidad de Castilla La Mancha = (UCLM).;Departamento de Sistemas Inform=3DC3=3DA1ticos adr;quoted-printable;quoted-printable:Campus Universitario s. = n.;;Instituto de Investigaci=3DC3=3DB3n en Inform=3DC3=3DA1tica de = Albacete (i3A);Albacete;Albacete;02071;Espa=3DC3=3DB1a / Spain email;internet:ag...@ds... title:Estudiante de Doctorado tel;work:967 59 92 00 Ext. 2693 version:2.1 end:vcard =20 |