[Simgrid-user] host load function
martin.quinson at loria.fr
Sat Nov 26 22:32:58 CET 2005
I just converted Arnaud's answer to an entry in the SimGrid FAQ. As soon as
Arnaud does the syncronization between the CVS and the web page, it will be
available from here: http://simgrid.gforge.inria.fr/doc/faq.html
I also added the following entry a while ago:
* I get the message "surf_parse_lex: Assertion `next<limit' failed."
I'm now working on writting an entry on:
* How could I bypass the xml platform files and their parsers?
I hope you like it.
On Sat, Nov 26, 2005 at 09:24:41PM +0100, Arnaud Legrand wrote:
> >how would "amount of host throughput" be?
> Do you really think this defines better what the load is ?
> Is it an instantaneous value that you want or an average one ? Is it
> supposed to take into account the tasks you are currently running on this
> resource or do you only want to know the value you would get if you were
> alone ? What if communications have an influence on computations ? Should it
> be taken into account ? We've been talking about these load functions so
> many times... and each time the conclusion is "do it yourself, that is the
> best way to get the information you really want". Moreover, if you had to
> run your code for real, that is what you would have to do... Here is a
> possible get_host_load function that you can use if you want (provided it
> gives you the value you are looking for :).
> double get_host_load()
> m_task_t task = MSG_task_create("test", 0.001, 0, NULL);
> double date = MSG_get_clock();
> date = MSG_get_clock() - date;
> return (0.001/date);
> Best regards,
> Simgrid-user mailing list
> Simgrid-user at lists.gforge.inria.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://lists.gforge.inria.fr/pipermail/simgrid-user/attachments/20051126/bef30986/attachment-0002.pgp
More information about the Simgrid-user