Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
9acea6505cb096c6ff4b5d7843f6a65b3d9aaff6
[simgrid.git] / doc / FAQ.doc
1 /*! \page faq Frequently Asked Questions
2
3 \htmlinclude FAQ.toc
4
5 \section faq_installation Installing the SimGrid library
6
7 Many people have been asking me questions on how to use SimGrid. Quite
8 often, the questions were not really about SimGrid but on the
9 installation process. This section is intended to help people that are
10 not familiar with compiling C files under UNIX. If you follow these
11 instructions and still have some troubles, drop an e-mail to
12 <simgrid-user@lists.gforge.inria.fr>.
13
14 \subsection faq_compiling Compiling SimGrid
15
16 Suppose you have uncompressed SimGrid in some temporary location of
17 your home directory (say <tt>/home/joe/tmp/simgrid-2.18.2 </tt>). The
18 simplest way to use SimGrid is to install it in your home
19 directory. Change your directory to
20 <tt>/home/joe/tmp/simgrid-2.18.2</tt> and type
21
22 \verbatim./configure --prefix=$HOME
23 make
24 make install
25 \endverbatim
26
27 If at some point, something fails, you can report me this problem but,
28 please, avoid sending a laconic mail like "There is a problem. Is it
29 normal ?". Send me the config.log file which is automatically
30 generated by configure. Try to capture both the standard output and
31 the error output of the <tt>make</tt> command. There is no way for me
32 to help you if you do not give me a little bit of information.
33
34 Now, the following directory should have been created : 
35
36       \li <tt>/home/joe/doc/simgrid/html/</tt>
37       \li <tt>/home/joe/lib/</tt>
38       \li <tt>/home/joe/include/</tt>
39
40 SimGrid is not a binary, it is a library. Both a static and a dynamic
41 version are available. Here is what you can find if you try a <tt>ls
42 /home/joe/lib</tt>:
43
44 \verbatim libsimgrid.a  libsimgrid.la  libsimgrid.so  libsimgrid.so.0 libsimgrid.so.0.0.1
45 \endverbatim
46
47 Thus, there is two ways to link your program with SimGrid:
48       \li Either you use the static version, e.g 
49 \verbatim gcc libsimgrid.a -o MainProgram MainProgram.c
50 \endverbatim
51           In this case, all the SimGrid functions are directly
52           included in <tt>MainProgram</tt> (hence a bigger binary).
53       \li Either you use the dynamic version (the preferred method)
54 \verbatim gcc -lsimgrid -o MainProgram MainProgram.c
55 \endverbatim
56           In this case, the SimGrid functions are not included in
57           <tt>MainProgram</tt> and you need to set your environment
58           variable in such a way that <tt>libsimgrid.so</tt> will be
59           found at runtime. This can be done by adding the following
60           line in your .bashrc (if you use bash and if you have
61           installed the SimGrid libraries in your home directory):
62 \verbatim export LD_LIBRARY_PATH=$HOME/lib/:$LD_LIBRARY_PATH
63 \endverbatim
64
65 \subsection faq_setting Setting up your own code
66
67 Do not build your simulator by modifying the SimGrid examples.  Go
68 outside the SimGrid source tree and create your own working directory
69 (say <tt>/home/joe/SimGrid/MyFirstScheduler/</tt>).
70
71 Suppose your simulation has the following structure (remember it is
72 just an example to illustrate a possible way to compile everything;
73 feel free to organize it as you want).
74
75       \li <tt>sched.h</tt>: a description of the core of the
76           scheduler (i.e. which functions are can be used by the
77           agents). For example we could find the following functions
78           (master, forwarder, slave).
79
80       \li <tt>sched.c</tt>: a C file including <tt>sched.h</tt> and
81           implementing the core of the scheduler. Most of these
82           functions use the MSG functions defined in section \ref
83           msg_gos_functions.
84
85       \li <tt>masterslave.c</tt>: a C file with the main function, i.e.
86           the MSG initialization (MSG_global_init()), the platform
87           creation (e.g. with MSG_create_environment()), the
88           deployment phase (e.g. with MSG_function_register() and
89           MSG_launch_application()) and the call to
90           MSG_main()).
91
92 To compile such a program, I suggest to use the following Makefile. It
93 is a generic Makefile that I generally use with my students when I
94 teach the C language.
95
96 \verbatim
97 all: masterslave 
98 masterslave: masterslave.o sched.o
99
100 INSTALL_PATH = $$HOME
101 CC = gcc
102 PEDANTIC_PARANOID_FREAK =       -O0 -Wshadow -Wcast-align \
103                                 -Waggregate-return -Wmissing-prototypes -Wmissing-declarations \
104                                 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
105                                 -Wmissing-noreturn -Wredundant-decls -Wnested-externs \
106                                 -Wpointer-arith -Wwrite-strings -finline-functions
107 REASONABLY_CAREFUL_DUDE =       -Wall
108 NO_PRAYER_FOR_THE_WICKED =      -w -O2 
109 WARNINGS =                      $(REASONABLY_CAREFUL_DUDE)
110 CFLAGS = -g $(WARNINGS)
111
112 INCLUDES = -I$(INSTALL_PATH)/include
113 DEFS = -L$(INSTALL_PATH)/lib/
114 LDADD = -lm -lsimgrid 
115 LIBS = 
116
117 %: %.o
118         $(CC) $(INCLUDES) $(DEFS) $(CFLAGS) $^ $(LIBS) $(LDADD) -o $@ 
119
120 %.o: %.c
121         $(CC) $(INCLUDES) $(DEFS) $(CFLAGS) -c -o $@ $<
122
123 clean:
124         rm -f $(BIN_FILES) *.o *~
125 .SUFFIXES:
126 .PHONY : clean
127
128 \endverbatim
129
130 The first two lines indicates what should be build when typing make
131 (<tt>masterslave</tt>) and of which files it is to be made of
132 (<tt>masterslave.o</tt> and <tt>sched.o</tt>). This makefile assumes
133 that you have set up correctly your <tt>LD_LIBRARY_PATH</tt> variable
134 (look, there is a <tt>LDADD = -lm -lsimgrid</tt>). If you prefer using
135 the static version, remove the <tt>-lsimgrid</tt> and add a
136 <tt>$(INSTALL_PATH)/lib/libsimgrid.a</tt> on the next line, right
137 after the <tt>LIBS = </tt>.
138
139 More generally, if you have never written a Makefile by yourself, type
140 in a terminal : <tt>info make</tt> and read the introduction. The
141 previous example should be enough for a first try but you may want to
142 perform some more complex compilations...
143
144 \section faq_simgrid I'm new to SimGrid. I have some questions. Where should I start ?
145
146 You are at the right place... Having a look to these
147 <a href="http://graal.ens-lyon.fr/~alegrand/articles/Simgrid-Introduction.pdf">slides</a>
148 may give you some insights on what SimGrid can help you to do and what
149 are its limitations. Then you definitely should read the \ref
150 MSG_examples. There is also a mailing list: <simgrid-user@lists.gforge.inria.fr>.
151
152 \subsection faq_generic Building a generic simulator
153
154 Please read carefully the \ref MSG_examples. You'll find in \ref
155 MSG_ex_master_slave a very simple consisting of a master (that owns a bunch of
156 tasks and distributes them) , some slaves (that process tasks whenever
157 they receive one) and some forwarder agents (that simply pass the
158 tasks they receive to some slaves).
159
160 \subsection faq_examples I want some more complex examples !
161
162 Many people have come to ask me a more complex example and each time,
163 they have realized afterward that the basics were in the previous three
164 examples. 
165
166 Of course they have often been needing more complex functions like
167 MSG_process_suspend(), MSG_process_resume() and
168 MSG_process_isSuspended() (to perform synchronization), or
169 MSG_task_Iprobe() and MSG_process_sleep() (to avoid blocking
170 receptions), or even MSG_process_create() (to design asynchronous
171 communications or computations). But the examples are sufficient to
172 start.
173
174 I know I should add some more examples, but not some more complex
175 ones... I should add some examples that illustrate some other
176 functionalities (like how to simply encode asynchronous
177 communications, RPC, process migrations, thread synchronization, ...)
178 and I will do it when I will have a little bit more time. I have tried
179 to document the examples so that they are understandable. I know it is
180 not really satisfying but it is the best I have managed to do yet.
181
182 \subsection faq_platform Building a realistic platform
183
184 I can speak more than an hour on this subject and I still do not have
185 the right answer, just some ideas. You can read the following
186 <a href="http://graal.ens-lyon.fr/~alegrand/articles/Simgrid-Introduction.pdf">slides</a>.
187 It may give you some hints. You can also have a look at the
188 <tt>tools/platform_generation/</tt> directory. There is a perl-script
189 I use to annotate a Tiers generated platform (may not be up-to-date
190 though).
191
192 \subsection faq_visualization Visualizing the schedule
193
194 It is sometime convenient to "see" how the agents are behaving. If you
195 like colors, you can use <tt>tools/MSG_visualization/colorize.pl </tt>
196 as a filter to your MSG outputs. It works directly with INFO. Beware,
197 INFO() prints on stderr. Do not forget to redirect if you want to
198 filter (e.g. with bash): 
199 \verbatim 
200 ./msg_test small_platform.xml small_deployment.xml 2>&1 | ../../tools/MSG_visualization/colorize.pl
201 \endverbatim
202
203 We also have a more graphical output. Have a look at MSG_paje_output(). It 
204 generates an input to <a href="http://www-id.imag.fr/Logiciels/paje/">Paje</a>.
205 <center>
206 \htmlonly
207  <a href="Paje_MSG_screenshot.jpg"><img src="Paje_MSG_screenshot_thn.jpg"></a>
208 \endhtmlonly
209 </center>
210
211 \subsection faq_context_1000 I want thousands of simulated processes
212
213 SimGrid can use either pthreads library or the UNIX98 contextes. On most
214 systems, the number of pthreads is limited and then your simulation may be
215 limited for a stupid reason. This is especially true with the current linux
216 pthreads, and I cannot get more than 2000 simulated processes with pthreads
217 on my box. The UNIX98 contextes allow me to raise the limit to 25,000
218 simulated processes on my laptop.
219
220 The <tt>--with-context</tt> option of the <tt>./configure</tt> script allows
221 you to choose between UNIX98 contextes (<tt>--with-context=ucontext</tt>)
222 and the pthread version ( (<tt>--with-context=pthread</tt>). The default
223 value is ucontext when the script detect a working UNIX98 context
224 implementation. On Windows boxes, the provided value is discarded and an
225 adapted version is picked up.
226
227 We experienced some issues with contextes on some rare systems (solaris 8
228 and lower comes to mind). The main problem is that the configure script
229 detect the contextes as being functional when it's not true. If you happen
230 to use such a system, switch manually to the pthread version, and provide us
231 with a good patch for the configure script so that it is done automatically ;)
232
233 \subsection faq_context_10000 I want hundred thousands of simulated processes
234
235 As explained above, SimGrid can use UNIX98 contextes to represent and handle
236 the simulated processes. Thanks to this, the main limitation to the number
237 of simulated processes becomes the available memory. 
238
239 Here are some tricks I had to use in order to run a token ring between
240 25,000 processes on my laptop (1Gb memory, 1.5Gb swap).
241
242  - First of all, make sure your code runs for a few hundreds processes
243    before trying to push the limit. Make sure it's valgrind-clean, ie that
244    valgrind does not report neither memory error nor memory leaks. Indeed,
245    numerous simulated processes result in *fat* simulation hindering debugging.
246
247  - It was really boring to write 25,000 entries in the deployment file, so I wrote 
248    a little script <tt>examples/gras/tokenS/make_deployment.pl</tt>, which you may
249    want to adapt to your case.
250
251  - The deployment file became quite big, so I had to do what is in the FAQ
252    entry \ref faq_flexml_limit
253
254  - Each UNIX98 context has its own stack entry. As debugging this is quite 
255    hairly, the default value is a bit overestimated so that user don't get 
256    into trouble about this. You want to tune this size to increse the number 
257    of processes. This is the <tt>STACK_SIZE</tt> define in 
258    <tt>src/xbt/context_private.h</tt>, which is 128kb by default.
259    Reduce this as much as you can, but be warned that if this value is too 
260    low, you'll get a segfault. The token ring example, which is quite simple, 
261    runs with 40kb stacks.
262
263
264 \section faq_SG Where has SG disappeared ?!?
265
266 OK, it's time to explain what's happening to the SimGrid project. Let's
267 start with a little bit of history.
268
269 * Historically, SimGrid was a low-level toolkit for scheduling with
270 classical models such as DAGs. That was SimGrid v.1.* aka SG, written by
271 Henri Casanova. I had been using it in its earliest versions during an
272 internship at UCSD.
273
274 Then we have realized that encoding distributed algorithm in SG was a
275 real pain.
276
277 * So we have built MSG on top of SG and have released SimGrid v.2.*. MSG
278 offered a very basic API to encode a distributed application easily.
279 However encoding MSG on top of SG was not really convenient and did not
280 use the DAG part since the control of the task synchronization was done
281 on top of MSG and no more in SG. We have been playing a little bit with
282 MSG. We have realized that:
283
284    \li 1) the platform modeling was quite flexible and could be "almost"
285        automated (e.g. using random generator and post-annotations);
286
287    \li 2) SG was the bottleneck because of the way we were using
288        it. We needed to simulate concurrent transfers, complex load
289        sharing mechanisms. Many optimizations (e.g. trace integration)
290        were totally inefficient when combined with MSG and made extending SG
291        to implement new sharing policies, parallel tasks models, or failures
292        (many people were asking for these kind of features) a real pain;
293
294    \li 3) the application modeling was not really easy. Even though the
295        application modeling depends on people's applications, we thought
296        we could improve things here. One of our target here was realistic
297 distributed applications ranging from computer sensor networks like
298 the NWS to peer-to-peer applications;
299
300 * So we have been planning mainly two things for SimGrid 3:
301
302    \li 1) I have proposed to get rid of SG and to re-implement a new kernel
303        that would be faster and more flexible. That is what I did in the
304 end of 2004: SURF. SURF is based on a fast max-min linear solver
305 using O(1) data-structures. I have quickly replaced SG by SURF in
306 MSG and the result has been that on the MSG example, the new
307 version was more than 10 times faster while we had gain a lot of
308 flexibility. I think I could still easily make MSG faster but I
309 have to work on MSG now (e.g. using some of the O(1)
310 data-structures I've been using to build SURF) since it has become
311 the bottleneck. Some MSG functions have been removed from the API
312 but they were mainly intended to build the platform by hand (they
313 had appeared in the earliest versions of MSG) and were therefore
314 not useful anymore since we are providing a complete mechanism to
315 automatically build the platform and deploy the agents on it.;
316
317    \li 2) GRAS is a new project Martin and I have come up with. The idea is
318 to have a programming environment that let you program real
319 distributed applications while letting you the ability to run it in
320 the simulator without having to change the slightest line of your
321 code. From the simulation point of view, GRAS performs the
322 application modeling automatically... Up until now, GRAS works on
323 top MSG for historical reasons but I'm going to make it work
324 directly on top of SURF so that it can use all the flex and the
325 speed provided by SURF.
326
327 Those two things are working, but we want to make everything as clean as
328 possible before releasing SimGrid v.3.
329
330 So what about those nice DAGs we used to have in SimGrid v.1. ? They're not
331 anymore in SimGrid v.3. Let me recall you the way SimGrid 3 is organized:
332
333 \verbatim
334 ________________
335 |   User code  |
336 |______________|
337 | | MSG | GRAS |
338 | -------------|
339 | |   SURF     |
340 | -------------|
341 |     XBT      |
342 ----------------
343 \endverbatim
344
345 XBT is our tool box and now, you should have an idea of what the other ones
346 are. As you can see, the primitive SG is not here anymore. However it could
347 still be brought back if people really need it. Here is how it would fit.
348
349 \verbatim
350 ______________________
351 |    User code       |
352 |____________________|
353 | | MSG | GRAS | SG  |
354 | -------------------|
355 | |      SURF        |
356 | -------------------|
357 |        XBT         |
358 ----------------------
359 \endverbatim
360
361 Re-implementing SG on top of SURF is really straightforward (it only
362 requires a little bit of time that I really don't have right now)
363 since the only thing that lacks to SURF is the DAG part. But adding it
364 to SURF would slow it down and therefore slow MSG and GRAS which is
365 not a good thing.  However it is really not on the top of our TODO
366 list because we have to work on GRAS, and its MPI counterpart, and a
367 parallel task model, and ... Anyway, we finally have migrated our CVS
368 to gforge so people that are interested by helping on this part will
369 have the possibility to do it.
370
371 \subsection faq_SG_DAG But I wanted to implement a distributed dynamic scheduler of DAGs... How can I do that it SG is not available anymore in the next versions ?
372
373 Distributed is somehow "contagious". If you start making distributed
374 decisions, there is no way to handle DAGs directly anymore (unless I am
375 missing something). You have to encode your DAGs in term of communicating
376 process to make the whole scheduling process distributed. Believe me, it is
377 worth the effort since you'll then be able to try your algorithms in a very
378 wide variety of conditions.
379
380 If you decide that the distributed part is not that much important and that
381 DAG is really the level of abstraction you want to work with (but it
382 prevents you from having "realistic" platform modeling), then you should
383 keep using the 2.18.5 versions until somebody has ported SG on top of SURF.
384 Note however that SURF will be slower than the old SG to handle traces with
385 a lots of variations (there is no trace integration anymore).
386
387
388 \subsection faq_SURF_dynami How can I have variable resource availability?
389
390 A nice feature of SimGrid is that it enables you to seamlessly have
391 resources whose availability change over time. When you build a
392 platform, you generally declare CPUs like that:
393
394 \verbatim
395   <cpu name="Cpu A" power="100.00"/>
396 \endverbatim 
397
398 If you want the availability of "CPU A" to change over time, the only
399 thing you have to do is change this definition like that:
400
401 \verbatim
402   <cpu name="Cpu A" power="100.00" availability_file="trace_A.txt" state_file="trace_A_failure.txt"/>
403 \endverbatim
404
405 For CPUs, availability files are expressed in fraction of available
406 power. Let's have a look at what "trace_A.txt" may look like:
407
408 \verbatim
409 PERIODICITY 1.0
410 0.0 1.0
411 11.0 0.5
412 20.0 0.9
413 \endverbatim
414
415 At time 0, our CPU will deliver 100 Mflop/s. At time 11.0, it will
416 deliver only 50 Mflop/s until time 20.0 where it will will start
417 delivering 90 Mflop/s. Last at time 21.0 (20.0 plus the periodicity
418 1.0), we'll be back to the beginning and it will deliver 100Mflop/s.
419
420 Now let's look at the state file:
421 \verbatim
422 PERIODICITY 10.0
423 1.0 -1.0
424 2.0 1.0
425 \endverbatim
426
427 A negative value means "off" while a positive one means "on". At time
428 1.0, the CPU is on. At time 1.0, it is turned off and at time 2.0, it
429 is turned on again until time 12 (2.0 plus the periodicity 10.0). It
430 will be turned on again at time 13.0 until time 23.0, and so on.
431
432 Now, let's look how the same kind of thing can be done for network
433 links. A usual declaration looks like:
434
435 \verbatim
436   <network_link name="LinkA" bandwidth="10.0" latency="0.2"/>
437 \endverbatim
438
439 You have at your disposal the following options: bandwidth_file,
440 latency_file and state_file. The only difference with CPUs is that
441 bandwidth_file and latency_file do not express fraction of available
442 power but are expressed directly in Mb/s and seconds.
443
444 \section faq_flexml_bypassing How could I have some C functions do what the platform and deployment files do?
445
446 So you want to bypass the XML files parser, uh? Maybe doin some parameter
447 sweep experiments on your simulations or so? This is possible, but it's not
448 really easy. Here is how it goes.
449
450 For this, you have to first remember that the XML parsing in SimGrid is done
451 using a tool called FleXML. Given a DTD, this gives a flex-based parser. If
452 you want to bypass the parser, you need to provide some code mimicking what
453 it does and replacing it in its interactions with the SURF code. So, let's
454 have a look at these interactions.
455
456 FleXML parser are close to classical SAX parsers. It means that a
457 well-formed SimGrid platform XML file might result in the following
458 "events":
459
460   - start "platform_description"
461   - start "cpu" with attributes name="host1" power="1.0"
462   - end "cpu"
463   - start "cpu" with attributes name="host2" power="2.0"
464   - end "cpu"
465   - start "network_link" with ...
466   - end "network_link"
467   - start "route" with ...
468   - end "route"
469   - start "route" with ...
470   - end "route"
471   - end "platform_description"
472
473 The communication from the parser to the SURF code uses two means:
474 Attributes get copied into some global variables, and a surf-provided
475 function gets called by the parser for each event. For example, the event
476   - start "cpu" with attributes name="host1" power="1.0"
477
478 let the parser do the equivalent of:
479 \verbatim
480   strcpy("host1",A_cpu_name);
481   A_cpu_power = 1.0;
482   (*STag_cpu_fun)();
483 \endverbatim
484
485 In SURF, we attach callbacks to the different events by initializing the
486 pointer functions to some the right surf functions. Example in
487 workstation_KCCFLN05.c (surf_parse_open() ends up calling surf_parse()):
488 \verbatim
489   // Building the routes
490   surf_parse_reset_parser();
491   STag_route_fun=parse_route_set_endpoints;
492   ETag_route_element_fun=parse_route_elem;
493   ETag_route_fun=parse_route_set_route;
494   surf_parse_open(file);
495   xbt_assert1((!surf_parse()),"Parse error in %s",file);
496   surf_parse_close();
497 \endverbatim
498     
499 So, to bypass the FleXML parser, you need to write your own version of the
500 surf_parse function, which should do the following:
501    - Call the corresponding STag_<tag>_fun function to simulate tag start
502    - Fill the A_<tag>_<attribute> variables with the wanted values
503    - Call the corresponding ETag_<tag>_fun function to simulate tag end
504    - (do the same for the next set of values, and loop)
505
506 Then, tell SimGrid that you want to use your own "parser" instead of the stock one:
507 \verbatim
508   surf_parse = surf_parse_bypass;
509   MSG_create_environment(NULL);
510 \endverbatim
511
512 An example of this trick is distributed in the file examples/msg/msg_test_surfxml_bypassed.c
513
514 \section faq_flexml_limit I get the message "surf_parse_lex: Assertion `next<limit' failed."
515
516 This is because your platform file is too big for the parser. 
517
518 Actually, the message comes directly from FleXML, the technology on top of
519 which the parser is built. FleXML has the bad idea of fetching the whole
520 document in memory before parsing it. And moreover, the memory buffer size
521 must be determinded at compilation time.
522
523 We use a value which seems big enough for our need without bloating the
524 simulators footprints. But of course your mileage may vary. In this case,
525 just edit src/surf/surfxml.l modify the definition of
526 FLEXML_BUFFERSTACKSIZE. E.g.
527
528 \verbatim
529 #define FLEXML_BUFFERSTACKSIZE 1000000000
530 \endverbatim
531
532 Then recompile and everything should be fine, provided that your version of
533 Flex is recent enough (>= 2.5.31). If not the compilation process should
534 warn you.
535
536 A while ago, we worked on FleXML to reduce a bit its memory consumtion, but
537 these issues remain. There is two things we should do:
538
539   - use a dynamic buffer instead of a static one so that the only limit
540     becomes your memory, not a stupid constant fixed at compilation time
541     (maybe not so difficult).
542   - change the parser so that it does not need to get the whole file in
543     memory before parsing
544     (seems quite difficult, but I'm a complete newbe wrt flex stuff).
545
546 These are changes to FleXML itself, not SimGrid. But since we kinda hijacked
547 the development of FleXML, I can grant you that any patches would be really
548 welcome and quickly integrated.
549
550 \section faq_host_load Where is the get_host_load function hidden in MSG?
551
552 There is no such thing because its semantic wouldn't be really clear. Of
553 course, it is something about the amount of host throughput, but there is as
554 many definition of "host load" as people asking for this function.
555
556 It may be instantaneous value or an average one. Moreover it may be only the
557 power of the computer, or may take the background load into account, or may
558 even take the currently running tasks into account. In some SURF models,
559 communications have an influence on computational power. Should it be taken
560 into account too?
561
562 So, we decided not to include such a function into MSG and let people do it
563 thereselves so that they get the value matching exactly what they mean. One
564 possibility is to run active measurement as in next code snippet. It is very
565 close from what you would have to do out of the simulator, and thus gives
566 you information that you could also get in real settings to not hinder the
567 realism of your simulation. 
568
569 \verbatim
570 double get_host_load() {
571    m_task_t task = MSG_task_create("test", 0.001, 0, NULL);
572    double date = MSG_get_clock();
573
574    MSG_task_execute(task);
575    date = MSG_get_clock() - date;
576    MSG_task_destroy(task);
577    return (0.001/date);
578 }
579 \endverbatim
580
581 Of course, it may not match your personal definition of "host load". In this
582 case, please detail what you mean on the mailing list, and we will extend
583 this FAQ section to fit your taste if possible.
584
585
586 \author Arnaud Legrand (arnaud.legran::imag.fr)
587 \author Martin Quinson (martin.quinson::loria.fr)
588
589
590 */
591