Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implement the barrier action of MSG actions
[simgrid.git] / ChangeLog
1 SimGrid (3.3.5-svn) unstable; urgency=low
2
3  Java Bindings: Various Cleanups
4   * Remove put/get: no need to export deprecated interface in Java
5     Use send/receive instead.
6   * Cleanup the examples and add a README per directory
7   * Remove example autoDestination (that's the only way to go now)
8   * Remove example explicitDestination (was a plain copy of basic)  
9   * Make JniException a runtime exception, so that there is no need to
10     declare the fact that you may encounter such a beast. I guess that
11     nobody will ever want to survive such error.
12  Ruby Bindings: create it
13   * That's new and great, you should try it out. 
14     Kinda the same functionalities than Java bindings
15  SimDag:
16   * Kill the useless "rate" argument of SD_task_get_execution_time()
17     Everyone used to provide -1 as a value, it was not used, and the
18     semantic of a possible use wasn't even clear.
19   * SD_SCHED_NO_COST: Constant to use as cost in SD_task_schedule()
20     either as comm costs or compute costs to mean that there is no
21     such thing for that specific task. 
22  MSG: 
23   * In trace replay, allow to have one trace file per process.
24     Give the specific trace file as argument of each process, 
25       and call MSG_action_trace_run(NULL)
26     You can still have one merged file for each processes.
27   * Kill the MSG_paje_output() function. It's a noop since 2 years.
28  SIMIX:
29   * add a SIMIX_sem_get_capacity() function
30       
31  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr>
32
33
34 SimGrid (3.3.4) stable; urgency=low
35
36  The "Desktop Grid needs love too" release (also called Xmas release).
37
38  Models improvements:
39  * Major speedup in the maxmin system solving by using lazy evaluation
40    Instead of solving completely the maxmin system at each iteration, 
41      only invalidate (and recompute) the modified parts. 
42    This new feature is enabled in default models but you can try to
43      turn it on with "--cfg:maxmin-selective-update=1" for other models.
44  * Cas01 IMproved as default CPU model
45    This CPU model is the same Cas01 model, but it uses the
46      maxmin-selective-update flag and a heap structure to manage
47      actions on SURF kernel. 
48    It reduces the complexity to find the next action to finish and,
49      consequently, it's faster than the old Cas01.
50    This is the new default CPU model (Cas01).   
51  * Rename the old Cas01 model to Cas01_fullupdate
52    Keep the old cpu model Cas01 with the new name of Cas01_fullupdate.
53    Use "--cfg=cpu_model:Cas01_fullupdate" to use the old default CPU model.
54  * CpuTI (CPU Trace Integration)
55    A new CPU model whose objective is simulate faster when using
56      availability trace files. 
57    Instead of using a full featured, over engineered maxmin system for
58      CPU modeling, this model does the pre-integration of traces files
59      to calculate the amount of CPU power available, and so, executes
60      faster than the old CPU models. 
61    Use "--cfg=cpu_model:CpuTI" to change to this CPU model.
62  * Use LV08 as default network model since it gives better accuracy
63     for small messages and shouldn't change things for big ones.
64    Use --cfg=network_model:CM02 to get the previous behavior.
65    
66    
67          ******************************************
68          *DO NOT MIX 3.3.4 RESULTS WITH OLDER ONES* 
69          ******************************************
70    * The new CPU model may changes simulations!
71      The point is that events occurring at the exact same timestamp
72         are not scheduled in the same order with the old and new 
73         version. This may be enough to completely change the execution
74         of simulations in some cases. 
75    * The new network model will change simulations!
76      This new model is more realistic than the previous one, so you
77        should consider redoing your old experiments with this model.
78      Sorry for the inconvenience.
79      
80  Build System:
81  * Introduce the supernovae compilation mode
82    When compiled that way, the whole SimGrid (or almost) is put in a
83      single compilation unit and compiled in one shoot. 
84   This is to help gcc which has difficulties to inline stuff from one
85      file into another.
86   The speedup seem to be above 15%, althrough more tests are needed on
87      amd64 to confirm that gain.
88
89  MSG:
90  * Port of MSG's mailbox on top of SIMIX network
91    The put/get mechanism was greatly simplified on the way.
92
93  SIMIX:
94  * New SIMIX network module. Provides:
95    - Mailbox: rendez-vous mecanism to find with who you want to speak
96    - Synchronous send/recv: easier and hopefully faster since the
97      logic is handled in the maestro process directly now
98    - Asynchronous send/recv: you dreamt of it? It's here now
99      Too bad that nobody cared enough to propagate the change to MSG.
100  * Add semaphores as SIMIX synchronization mechanism.
101    
102  SimDag:
103  * new function SD_daxload(char*) to load a DAX file 
104    (see http://vtcpc.isi.edu/pegasus/index.php/WorkflowGenerator)
105  * Introduce typed tasks. Specify its kind and cost at creation. 
106    At scheduling, just give where it should be placed, and the cost
107    for each involved resource is automatically computed.
108    Existing constructors so far (more to come of course):
109     - SD_task_create_comm_e2e() for end-to-end communication
110     - SD_task_create_comp_seq() for sequential computation
111    Use SD_task_schedulev() / SD_task_schedulel() to schedule them.
112  * new function SD_task_dump() for debuging display
113  * new function SD_task_dotty(task,FILE*) writing to file the info
114    about the task in dotty format
115  * SD_task_dependency_exists() can now cope with having one of its
116    arguments NULL. If so, it tests whether the other argument has any 
117    dependency.
118  * Add getters on list of preceding/following tasks:
119     SD_task_get_parents(task) and SD_task_get_children(task)
120  * Add getters on amount of workstations and list:
121     SD_task_get_workstation_count(t) and SD_task_get_workstation_list(t)
122  * Add getter on task kind: SD_task_get_kind(task)
123  * Update the start_time and finish_time of tasks on completion/failure
124  * Bugfix: Remove task from state swags when destroyed
125  
126  GRAS:
127  * New function: void gras_cpu_burn(double flops) -- a simple CPU burner
128
129  XBT:
130  * New function: xbt_dynar_dopar(dynar,fun) to map a function over the
131    dynar with one separate thread per value of the dynar.
132  * Change the prototype of xbt_thread_create(), sorry. 
133    Added a boolean parameter indicating whether we want to join this
134    thread (used in SG only for now)
135  * Implement xbt_thread_join and xbt_thread_yield in SG also.
136    
137  Bug fixes:
138  * GTNetS wrappers should now be usable again (and betterly tested too)
139  * Fix a major regression from 3.2 where the timeout provided to
140    MSG_task_put_with_timeout() was used as absolute time before which
141    the comm should be done.
142  * Start to fix the <cluster> tag. 
143    - Internal links should be good now (beside of the loopback, which
144      use the private link instead)
145    - paths to the external world is still rather broken
146    - the <route:multi> tag is just broken. Actually that's brain-dead.
147      We need sth like <route:multi src="myCluster" dst="$*-${myCluster}">
148      to make it less stupid
149    ** Check your platform with teshsuite/simdag/platforms/flatifier **
150  * Fix a source-level compatibility glitch from 3.2: after defining
151    MSG_USE_DEPRECATED, you can use the old name
152    MSG_task_put_with_time_out() for MSG_task_put_with_timeout()
153  * Allow to compile from the SVN with automake 1.11
154  * Fix some problems when using the "start_time" tag in deployment XMLs.
155  * Fix #8569: XBT/synchro.h has redundant declarations
156  * Fix #8563: MSG return values and exceptions
157    Introduce a MSG_TIMEOUT_FAILURE return code and use it consistently.
158  * Integrate patch #8636: Obey DESTDIR when installing documentation.
159    Thanks to Robson Peixoto.
160  * Fix a vicious bug in dictionaries inducing that some elements were
161    not freed on xbt_dict_free()
162
163  Portability report of this version:
164   * Main portability targets:
165     - linux (ubuntu (804/810/910) /debian (4/5/testing) /fedora (core11)) 
166       on (amd64/i386/ia64)
167     - mac leopard on i386
168     Known problems: http://cdash.inria.fr/CDash/index.php?project=Simgrid
169      but nothing critical.
170   * Other platforms: windows, AIX and others were not tested for this release
171   
172  Timing report of this version:
173   * Lazy evaluation brings arbitrary speedup (ie, speedup depending on
174     scenario parameters). From 8h to a few seconds in desktop grid settings.
175   * Supernovae brings about 25% speedup on i386.
176
177  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr> Thu, 24 Dec 2009 19:07:39 +0100
178
179 SimGrid (3.3.3) stable; urgency=low
180
181  The "Need for Speed" release.
182  
183  The timings done to validate the 3.3.2 were faulty. 
184  Instead of being 5% faster, it was 15% slower (compared to 3.3.1).
185    
186  The problem was a conversion from a manually handled vector to
187    xbt_dynar_t on the critical path. 
188  xbt_dynar_foreach calls functions, inducing stack management crap.
189
190  We inlined these functions and xbt_dynar_foreach is now breath taking.
191  We also inlined xbt_swag_belong on the way.
192
193  Here are some approximate speedup measurements (on master/slaves
194   simulations lasting between 10s and 20s each):
195    3.3.1                   -> 3.3.2: about same performance
196    3.3.2                   -> 3.3.3: 40% speedup
197    3.3.1                   -> 3.3.3: 40% speedup
198    3.3.1 with inline patch -> 3.3.3: 30% speedup
199    
200  Our reading is that the refactoring which occurred in 3.3.2 made us
201   suffer much more from the xbt_dynar_foreach low performance, but
202   once we solved this, this refactoring proved to be very performance
203   effective. From the 40% speedup, somehow, 10% are due to the
204   inlining and 30% to the refactoring.
205
206  That's a pitty that gcc cannot inline functions placed in other files
207   alone. We have to choose between:
208   - break the encapsulation (by putting private data structures and
209     accessors in headers files to help gcc)
210   - live with low performance 
211   - switch to a decent compiler such as icc (not quite possible).
212
213  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr> Thu, 20 Aug 2009 21:21:33 +0200
214
215 SimGrid (3.3.2) stable; urgency=low
216
217  The "Simplicity does not preceed complexity, but follows it" release.
218
219  The main contributors of this release were (lexical order):
220    Silas De Munck, Stéphane Genaud, Martin Quinson, Cristian Rosa.
221        
222  SURF: 
223   * Extract the routing logic into its own object.
224     (was dupplicated in network.c and workstation_LV07.c;
225      Allows to implement other ways of storing that info)
226     => kill now useless network_card concept
227     - Use dynar to represent routes (instead of void** + int*)
228     - kill link_set (use surf_network_model->resource_set instead)
229     - Add a command-line option to choose the routing schema to use
230     - Add three new models: 
231       * Floyd (shortest path computed at initialization)
232       * Dijikstra (shortest path recomputed all the time)
233       * Cached Dijikstra (shortest path computed on need)
234       All these models where contributed by Silas De Munck, and are
235       described in his ICCS09 paper.
236
237   * Simplify model declaration
238     (less redirections, less function to write when defining a model)
239     - Factorize stuff between models:
240       - model_init/exit
241       - Set of resources:
242         surf_model_resource_set(model)
243         surf_model_resource_by_name(model, name)
244     - Unify the types of models in s_surf_model_t (using an union)
245     - Embeed fields of common_public directly into s_surf_model_t
246     - Rename model methods:
247       action_free ~> action_unref
248       action_change_state ~> action_state_set
249       action_get_state    ~> action_state_get
250     - Change model methods into functions :
251       (model)->common_public->action_use  ~> surf_action_ref
252       
253   * Implement a generic resource; use it as ancestor to specific ones
254     (allows to kill duplicated code in models)
255     Drawback: timer command don't need no name nor properties;
256               workstation_CLM03 don't need no properties
257     (but I guess we can live with those few bytes wasted)
258     
259   * Improve the action object model
260     - implement a constructor avoiding dupplicated code about field
261       initialization in generic_action part.
262       
263   * Kill the SDP model: it has an external dependency, is deprecated
264     in flavor of modern lmm models, and didn't compile since a while
265  
266  SIMIX:
267   * Relocation of the context module from XBT to SIMIX.
268     (the context were decoupled from the simix processes, duplicating a lot of code)
269     => a lot of code was factorized
270     - less overhead is introduced during scheduling
271     - simpler API for the context factory
272     - the logic for process creation,destruction and manipulation was simplified
273   * Simplification of the s_smx_process_t data structure.
274     => accesing the simix level data associated to a process is faster now, 
275        and the code is a lot more readable.
276        
277  SMPI:
278   * Implement some more MPI primitives: 
279     MPI_Bcast, MPI_Waitany, MPI_Waitall, MPI_Reduce, MPI_Allreduce, MPI_Scatter, MPI_Sendrecv, MPI_Alltoall
280     -implementation: Bcast: flat or 2-ary tree (default), 
281                      Barrier: 4-ary tree,
282                      Reduce: flat tree
283                      Allreduce: Reduce then Bcast
284                      Alltoall: "basic_linear" if data per proc < 3Kb, "otherwise pairwise". 
285                                Not yet implemented: "Bruck" for data per proc < 200b and comm size > 12
286                      Alltoallv: flat tree, like ompi
287                      Scatter: flat tree
288   * Add support for optimized collectives (Bcast is now binomial by default)
289   * Port smpirun and smpicc to OS X
290
291  SimDag:
292   * Kill SD_link_get_properties: hard to maintain and makes very little sense
293     Shout out if you used it.
294     
295  GRAS:
296   * Display the list of still queued messages in SG mode when existing
297     the process.
298
299  XBT:
300   * Add xbt_set_get_by_name_or_null() [Silas De Munck]
301   * Add xbt_graph_node_get_outedges() [Silas De Munck]
302   * Add xbt_str_from_file(FILE*)
303   * Add xbt_dict_get_key achieving a linear reverse search
304   * Remove the context module 
305
306  Portability report of this version:
307   * Main portability targets:
308     - Linux(debian)/x86/context   
309     - Linux(debian)/x86/pthreads 
310     - Linux(debian)/amd64/context 
311     - Linux(debian)/amd64/pthreads
312     On these, we still have the eratic breakages of gras/pmm and 
313       amok/saturate_sg reported in previous version. We still think
314       that the tests are the cause of the fault, not the tested code.
315       
316     - Mac OSX Leopard/x86/context
317     Still false negative in tesh autotesting.
318     Smpi still fails, but this time because readlink does not accept -f
319     Everything seems to work properly beside of that.
320     
321   * Exotic platforms:
322     - AIX version 5.3 (only tested contexts this time)
323       Smpi still fails there because mktemp is not installed. 
324       Everything seems to work properly beside of that.
325     - OpenSolaris 11
326       I managed to compile it for the first time, but several breakages.
327       Won't delay the release for this exotic platform.
328     
329   * Windows: it's still lagging behind. If you want to help, please
330     stand up.
331
332  Timing report of this version:
333   This version seem to be more than 5% faster than 3.3.1 (on linux
334     64bits with contextes). The gain is less than expected, we are
335     investigating this for next release.
336
337  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr> Wed, 19 Aug 2009 17:07:12 +0200
338
339 SimGrid (3.3.1) stable; urgency=low
340
341  OVERALL CHANGES:
342   * Implement a --cfg-help to show existing configuration variables
343   * Build chain do not require doxygen in maintainer mode
344
345  GRAS:
346   * fix a bug on struct sizeof computation, which prevented the
347     exchange of arrays of structs in some conditions
348     - added a regression test about this in datadesc_usage
349   * Allow the exchange of 0-long dynamic vectors.
350     - for that, use -1 as indicator of dynamic size instead of 0
351     - This implied to change any size from unsigned long to long,
352       reducing a bit communication abilities, but I guess that with
353       64bits being quite common, this is more than enough.
354     - This also induce a protocol change, thus bumping network protocol
355       version from 0 to 1 (if we have external users, we have to get
356       clean on that point too ;)
357     - added two regression tests about this in datadesc_usage
358   * Be more verbose when propagating local exceptions
359     This helps debugging.
360   * Display the status of simulated processes when receiving SIGINT in
361     simulation mode
362
363  MSG:
364   * Allow to control the simulation from a trace file.
365     New functions MSG_action_register() and MSG_action_trace_run()
366     The first one allows to associate a function execution to each
367      kind of action while the second one parses a trace file and
368      triggers the corresponding actions within the system.
369     For now, only a toy example is provided in examples/msg/actions
370   * Add an exemple of process migration in examples/msg/migration
371   * Fix a bug in task exchange which broke MSG_task_get_sender()
372     Add a teshsuite regression test for that.
373     [Bug: if MSG_task_get_sender() is called after sender exit,
374      bad things happen]
375   * Fix a bug which prevented suspend/resume to work properly
376   * Display the status of simulated processes when receiving SIGINT
377     This fixes a regression of v3.3. due to the introduction of SIMIX
378   * Bug fixing in failure management:
379     - trace could not start by a failure at time 0
380     - failure during communications were not working
381         
382  SIMIX:
383   * Add SIMIX_process_set_name() to change the name of the current
384     process in the log messages.
385   * Store smx_hosts in a dict since we only retrieve them by name
386   * Move the configuration infrastructure to surf
387
388  SIMDAG:
389   * Move the configuration infrastructure to surf
390
391  SMPI: 
392   * Massive internal cleanups:
393     - Store internal structures on processes instead of hosts (allows
394       to have more than one process per host, in addition of being more 
395       logical)
396     - Cleanup the initialization/finalization process
397     - Kill a whole bunch of unneeded synchronization: 
398       processes run in exclusive manner within the simulator
399     - Move queues from global tables to process data fields
400   * Improve smpirun:
401     - now accept -platform and -hostfile arguments
402     - Pass the right rank value to processes according to the hostfile
403   * Compile the examples by default, and use them as regression tests
404   * Implement MPI_Wtime()
405   * Change the reference speed to a command line option
406   
407  SURF:
408   * TCP_gamma can now be specified as command line option using
409     --cfg=TCP_gamma:10000000.0
410   * Change the --surf-path cmd line option into --cfg=path:
411   
412  XBT:
413   * Also include strbuff from xbt.h public header
414   * xbt_ex_display(): do not free the exception after displaying 
415     This allows to do more with the given exception afterward.
416     Users should call xbt_ex_free() themselves.
417     
418     
419
420  Portability report of this version:
421   * Main portability targets:
422     - Linux(debian)/x86/context   
423     - Linux(debian)/x86/pthreads 
424     - Linux(debian)/amd64/context 
425     - Linux(debian)/amd64/pthreads
426     These targets fail about 1/10 of times on gras/pmm, but we believe
427       that this is because of the test, not because of simgrid.
428     amok/saturate_sg fails even more rarely, and the test may not be
429       the problem.
430       
431     - Mac OSX Leopard/x86/context
432     The test suite still spits tons of errors because some obscure
433       force prevents us from removing the temporary directories
434       arguing that they still contain some metadata I've never heard of.
435     Smpi fails because seq is not installed.
436     Everything seems to work properly beside of that.
437     
438   * Exotic platforms:
439     - AIX version 5.3 (both contexts and pthread)
440       Smpi still fails there because mktemp is not installed. 
441       XML inclusions seems rosty on AIX.
442     
443   * Windows: it's still lagging behind. If you want to help, please
444     stand up.
445
446  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr>  Sat, 27 Jun 2009 00:14:30 +0200
447
448 SimGrid (3.3) stable; urgency=high
449
450  OVERALL CHANGES:
451
452   * JAVA BINDINGS for MSG (you dreamt of them? We made them)
453     [Malek Cherier & Mt]
454
455   * Introduce the SIMIX module: factorize code between MSG and GRAS.
456     [Bruno Donassolo]
457   
458     Until now, GRAS were using MSG as an interface to SURF. It was
459     quite difficult because both interface have several differences
460     (MSG channels vs GRAS sockets were the most notable point).
461    
462     This also opens the gate to SMPI (which should occur soon) and speed
463     up simulations by to 40% (even if it were not the main goal).
464   
465     ************************************** 
466     *DO NOT MIX 3.2 RESULTS WITH 3.3 ONES* Simix may changes simulations!
467     **************************************
468     The point is that events occuring at the exact same timestamp are
469     not scheduled in the same order with the old and new version. This
470     may be enough to completely change the execution of simulations in
471     some cases. Sorry for the inconvenience.
472
473   * Cleanup and upgrade the XML format to push further scalability
474     issues (check http://hal.inria.fr/inria-00256883/ for more info)
475
476   * Improve the testing infrastructure with tesh. Now a very large part of
477     the code is tested not only by being run but also by checking that the
478     output match an expected output [Mt].
479
480   * Move on to FleXML v1.7 for the embeeded XML parsers. This version
481     is really less memory-demanding, which should allow you to use
482     larger files in SimGrid [AL].
483     
484   * Inform valgrind about our contextes, so that it becomes usable
485     with the default (and more effecient) version of SimGrid
486     [contributed by Sékou Diakite, many thanks]
487
488  GRAS:
489   * Introduce a listener thread in charge of receiving incomming
490     messages from the network. It allows to overlap communication and
491     computation but most notably, it removes some stupid deadlocks due
492     to the fact that so far, a process could not send and receive at
493     the same time. This made most non trivial communication schema
494     impossible.
495   * Convert the PIDs from long int to int to match the MSG ones (and
496     linux ones too) [Mt]
497   * New function: gras_agent_spawn() to launch a new process on
498     current host. Only working in simulation for now. [Mt]
499   * New function: gras_os_hostport() returning a constant form (ie,
500     not needing to be freed) of "gras_os_hostname():gras_os_myport()"
501
502  XBT:
503   * Make the backtrace of exceptions more human readable [Mt]
504   * New module: xbt/str [Mt]
505     a ton of string utility functions (split, join, printf to a newly
506     allocated buffer, trim, etc)
507   * New module: xbt/hash [Mt]
508     SHA1 hashing algorithm (more to come if needed)
509   * New module: xbt/synchro [Mt]
510     synchronization tools (mutex and conditions) working the same way
511     in simulation and in real life (mainly useful for GRAS, but not
512     only).
513   * New module: xbt/queue [Mt]
514     classical producer/consumer synchronization scheme
515   * xbt_dynar_new_sync() creates a synchronized dynar. All access
516     (using the classical functions will get serialized) [Mt]
517   * Make dictionary internal table dynamic. No need to specify its size
518     anymore; functions xbt_dict_new_ext() and xbt_dict_hashsize_set()
519     thus dropped. [Mt].
520   * Make sure the log channels are organized as a tree under windows
521     (because of ANSI C compatibility issue, any channel were child of
522      root directly) [Mt].
523
524  SURF:
525   * Cleaned many thing in surf and fixed a few bugs [AL].
526   * Add a nice command line configuration mechanism to compose models [AL].
527   * Add a new model for parallel tasks (ptask_L07) that is less buggy than
528     the previous one (KCCFLN05). It relies on something that looks like
529     a max-min sharing mechanism but cannot be written as such. A new solver
530     was thus designed [AL].
531   * Add a new solver to lmm. Based on Lagrange optimization and
532     gradient-based descent, it enables to efficiently maximise systems s.a
533   
534      sum f_i(x_i) s.t Ax<= b  with A_{i,j}>=0 and f_i a concave function.
535
536     This solver enables to propose two new network models for TCP Reno and
537     TCP Vegas based on Low's work. These models still need to be fully
538     tested though [Pedro Velho].
539
540  SIMDAG [AL]:
541   * Bug fix in SD_simulate. Now the time bound given as argument is
542     used.
543   * Use the new parallel task model (ptask_L07) as default.
544   * Use the SURF command line configuration mechanism.
545   * 0-size tasks (for synchronization) should now work.
546
547  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr> Sun Apr 12 05:20:36 CEST 2009
548
549 SimGrid (3.2) stable; urgency=high
550
551   OVERALL CHANGES:
552    * Port to windows.
553      We still experience issues on this platform, but we believe that at
554      least MSG is usable.
555
556   GRAS API BREAKAGE (for simplification purpose, sorry):
557    * the gras_msgtype_by_name is not used anymore. Instead of 
558        gras_msg_send(toserver, gras_msgtype_by_name("request"), &request);
559      you can write (and must)
560        gras_msg_send(toserver, "request", &request);
561    - If you still want to pass a gras_msgtype_t to the function (to cache
562      the type and avoid the lookup time), use the gras_msg_send_() variant.
563    - Impacted functions:
564      gras_cb_register, gras_cb_unregister, gras_msg_send, gras_msg_wait,
565      gras_msg_rpccall, gras_msg_rpc_async_call, gras_msg_wait_ext
566    * The callbacks are now expected to return 0 when everything went well
567      (just like the main() function)
568
569   GRAS new features and improvements:
570   * New module mecanism where user code can use per process globals [Mt]
571     This is similar to gras_userdata_*() functions, but for libraries. It
572       factorize some code developped over and over in the examples and AMOK.
573     It has still to be documented and used (only amok/peermanagement is
574       converted for now).
575   * Fix a vicious bug in the TCP buffering mecanism which leaded to message
576     loss when they were small enough to fit into the buffer and sent quickly
577     enough so that they can all get received in one shoot.   
578   * gras_datadesc_by_name and gras_msgtype_by_name: now raise an exception
579     if not found. Use the *_or_null() variant for the old semantic.
580   * In gras_msg_handle, do not discard messages without callback.
581     They are probably messages to be explicitly awaited later (ie, proofs of
582     mis-synchronization in userland since they are sent before being awaited)
583     No big deal usually.
584   * gras_socket_meas_send/recv: semantic changed!
585     The numerical arguments used to be (1) the total amount of data to send
586     and (2) msg_size. This was changed to (1) msg_size and (2) amount of
587     messages. This was need for the fool willing to send more than MAXINT
588     bytes on quite fat pipes.       
589         
590   AMOK:
591   * Do really rename the hostmanagement module to peermanagement. [Mt]
592     Ie, rename functions from amok_hm_* to amok_pm_*. This breaks the API,
593     but this is rather new and this was documented in the module
594     documentation (poor excuses, I admit)
595   * Bandwidth measurement semantic changed! This follows the changes to
596     gras_socket_meas_send/recv explained above.
597     
598   SIMDAG:
599   * A sequential mode has been added to the workstations. When a workstation
600     is in sequential mode, it can execute only one task, and the other tasks
601     are waiting in a FIFO. [Christophe Thiery]
602
603   SURF:
604   * The KCCFLN05 workstation model now handles parallel tasks. It is the
605     model for SIMDAG. [Christophe Thiery]
606   * Bug fix in the maxmin solver: Some values were close to 0 instead of
607     equal to 0, which caused some bad behaviors in
608     saturated_constraint_set_update. I now use a threshold mechanism like in
609     surf. [AL]
610
611   XBT:
612   * When running manually src/testall, you select specific units [Mt]
613     testall is the result of our cunit mecanism, and should replace all
614     the scripty thingy around since bash don't run easily on billware.
615
616   * A mallocator system has been added. [Christophe Thiery]
617     Mallocators allow you to recycle your unused objects instead of freeing them
618     and allocating new ones.
619
620   Documentation update:
621   * FAQ reworking + New FAQs:
622     - "Valgrind spits tons of errors!" [Mt]
623     - "How to repport bugs" [Mt]
624     - "Cross-compiling a Windows DLL of SimGrid from Linux" [Mt]
625     - "What is the difference between MSG, SimDag, and GRAS?" [Mt]
626     - Communication time measurement within MSG [AL]
627     - I experience weird communication times when I change the latency [AL]
628   * GRAS tutorial [Mt]
629     It contains:
630      - an introduction to the framework and to the used communication model
631      - an initiatic tour introducing the most proheminent features:
632        o Part 1: Bases
633          . Lesson 0: Installing GRAS
634          . Lesson 1: Setting up your own project
635        o Part 2: Message passing
636          . Lesson 2: Exchanging simple messages
637          . Lesson 3: Passing arguments to the processes (in SG)
638          . Lesson 4: Attaching callbacks to messages
639          . Lesson 5: Using globals in processes
640          . Lesson 6: Logging informations properly
641          . Lesson 7: Using internal timers
642          . Lesson 8: Handling errors through exceptions
643          . Lesson 9: Exchanging simple data
644          . Lesson 10: Remote Procedure Calling (RPC)
645          . Lesson 11: Explicitely waiting for messages
646          . Recapping of message passing features in GRAS
647      - A HOWTO section containing:
648        o HOWTO design a GRAS application
649        More are due, of course. They will come latter. In the meanwhile, you can 
650        check the examples which are still here.
651
652  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr> Fri Mar 16 21:11:46 CET 2007
653
654 SimGrid (3.1) stable; urgency=high
655
656   General:
657   * Port to gcc 4.x   
658     There was a stack corruption somewhere, visible only when optimizing
659     with these versions. [Vince]
660
661   SIMDAG:
662   * This is a NEW module! SimDAG (SD for short) is a revival of the old SG
663     module that enabled to play with Directed Acyclic Graphs. It is built
664     directly on top of SURF and provides an API rather close to the old
665     SG. Some old codes using SG are currently under rewrite to check that
666     all needful functions are provided. [Christophe Thiery]
667         
668   SURF:
669   * Complete rewrite of the KCCFLN05 workstation model. It is now an
670     extension of the classical CLM03 model that gracefully handles
671     failures. This is now the default model for MSG and GRAS. It doesn't
672     handle parallel tasks yet though. [AL]
673   * Bug fix: Weights were not correctly set in the network part. 
674     WARNING: This may have resulted in incorrect results with simulations
675     where there are more than one flow on a given link. [AL]
676
677   SURF, MSG, GRAS:
678   * After a (long ?) discussion on simgrid-devel, we have decided that the
679     convention we had on units was stupid. That is why it has been decided
680     to move from (MBits, MFlops, seconds) to (Bits, Flops, seconds). 
681     WARNING : This means that all previous platform files will not work as
682     such with this version! A warning is issued to ask users to update
683     their files. [AL]
684     A conversion script can be found in the contrib module of the CVS, under
685     the name contrib/platform_generation/surfxml_update.pl [MQ]
686
687   MSG,GRAS:
688   * Bug fix: Processes were started in reverse order, wrt deployment file.
689     WARNING: if your code relies on this bug, please fix it.    [AL]
690   * Bug fix: Add a test in MSG_task_execute to stop whenever a task is
691     being executed on two different locations.                  [AL]
692   * Bug fix: Failures are now better supported thanks to Derrick's tests
693     (there was many failure situations I hadn't thought of and that weren't
694     correctly handled). [AL]
695   * New function: MSG_host_is_avail indicates you whether a given m_host_t
696     is up or down. [AL]
697
698   GRAS:
699   * New! a real RPC mecanism, as it ought to be since too long. [MQ]
700       Exception occurring on server-side are propagated back to client (!).
701       
702     API CHANGE: the callback changed their prototype. Change:
703         int my_handler(gras_socket_t expeditor, void *payload_data) {
704       to:
705         int my_handler(gras_msg_cb_ctx_t ctx  , void *payload_data) {
706           gras_socket_t expeditor=gras_msg_cb_ctx_from(ctx);
707       and you're set.
708   * New! function: gras_msg_handleall to deal with all messages arriving
709       within a given period.
710   * New! function: gras_socket_server_range to get a server socket in a
711     range of port numbers (ease to avoid port number conflicts) [MQ]
712   * New! gras processes display their backtrace when they get a SIGUSR1
713       or when Ctrl-C is pressed. Use Ctrl-C Ctrl-C to exit.
714       Sweet to debug RL processes [MQ]
715
716   AMOK:
717   * Bandwidth module: 
718     - Do not force experiment sizes to be expressed in kb, or it becomes
719       impossible to measure the latency this way (needs one byte-long tests)
720     WARNING: this changes the amok_bw_* function semantic. [MQ]
721     - Implements the link saturation stuff. [MQ]
722   * Peer management module: 
723     New! module factorizing code that we wrote over and over [MQ].
724       
725   XBT:
726   * New module: cunit (my jUnit implementation in ansi C) [MQ]
727     - Test units are placed directly into the library code, they get extracted
728       automatically and placed into the src/testall binary.
729     - Convert most of the XBT tests to this system.
730   * New functions: xbt_dynar_getfirst_as() and xbt_dynar_getlast_as() [MQ]
731   * XML parsing: rewrote parts of flexml to enable multiple xml parsers to
732     live in the same C code. This required to change a little bit the API
733     of surfxml parsing but shouldn't be an issue for end-users. [AL]
734   * New module: sparse graph structure with basic algorithms (this is work
735     in progress and the API is not considered to be frozen yet). [AL]
736   * Display more information on backtraces: source line & function names are
737     now displayed just like valgrind does (rely on addr2line tool) [MQ]
738   * New function: xbt_backtrace_display(). Sweet while debuging [MQ]
739   * Reworked a little bit some #include statements to load only required
740     headers. Some user code that relied on SimGrid to include stdlib or
741     stdio may need to include it by themselves. [AL]
742   * Fixed xbt/log.h. A missing SG_BEGIN_DECL prevented compilation with
743     g++. [AL]
744   * Renamed xbt_host_t into xbt_peer_t since it betterly describes what I
745     meant. This breaks the API of AMOK and of xbt/config. Sorry about this,
746     but I guess that almost nobody used those parts. [MQ]
747
748  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr> Fri, 14 Jul 2006 01:32:27 +0200
749
750 SimGrid (3.0.1) stable; urgency=low
751
752   XBT:
753   * Unfortunately, I had missed 5 misnamed functions:
754       xbt_fifo_item_t xbt_fifo_newitem(void);
755       void xbt_fifo_freeitem(xbt_fifo_item_t);
756       xbt_fifo_item_t xbt_fifo_getFirstItem(xbt_fifo_t l);
757       xbt_fifo_item_t xbt_fifo_getNextItem(xbt_fifo_item_t i);
758       xbt_fifo_item_t xbt_fifo_getPrevItem(xbt_fifo_item_t i);
759     They're now deprecated. Please use their new versions:
760       xbt_fifo_item_t xbt_fifo_new_item(void);
761       void xbt_fifo_free_item(xbt_fifo_item_t);
762       xbt_fifo_item_t xbt_fifo_get_first_item(xbt_fifo_t l);
763       xbt_fifo_item_t xbt_fifo_get_next_item(xbt_fifo_item_t i);
764       xbt_fifo_item_t xbt_fifo_get_prev_item(xbt_fifo_item_t i);
765     [AL]
766   * Bugfix: really disconnect fifo items which are remove_item()ed [AL]
767   * Documentation: xbt_log module unmercifully reworked [MQ]
768   * Bugfix: there was a problem with the ending of contexts with 
769     the pthread backend. It caused some weird deadlock or behavior
770     depending on the pthread implementation. [AL]
771   * Bugfix: get the exceptions raised in the simulator repport where
772     and why they come from when they are not catched in time [AL, MQ]
773
774   SURF:
775   * Bugfix: Do repport the error when two non-connected hosts try to
776     exchange data (Thanks to Flavien for stumbling into this one) [AL]
777   
778   SURF:
779   * Add additionnal checkings on communications. Assert that two
780     communicating hosts are connected by a set of links... [AL]
781         
782   MSG:
783   * Add additionnal checkings on channel values in communication [AL]
784   * New: MSG_task_get_source to see on which host a task was generated [HC]
785   * New: int MSG_task_probe_from_host(int channel, m_host_t host): returns
786     the number of tasks waiting to be received on channel and sent
787     by host. [AL]
788   * New: MSG_error_t MSG_task_get_from_host(m_task_t * task, int channel, m_host_t host); 
789     waits for the first task coming from a given host.. [AL]
790         
791   GRAS new functionnalities: [MQ]
792   * Enhance the parsing macro to allow the size of multidimentional objects
793     to be given thru annotations.
794   * New example (and documentation): Matrix Multiplication a la RPC 
795     (as when I was young!) and fix a bunch of bugs found on the way.
796
797   GRAS performance improvements: [MQ]
798   [DataDesc]
799   * Reduce the amount of cbps creation/destruction by making it static to 
800     datadesc_send/recv() and using a (newly created) cbps_reset (based on 
801     dynar_reset ())
802   [Virtu]
803   * Change libdata to a set so that we can search for stuff by ID (and thus 
804     reduce the insane amount of dict lookups)     
805   
806   [Transport]
807   * Actually implement gras_datadesc_copy() so that we don't have to mimick
808     RL communication on top of SG since it's so uneffective. 
809     It may also be used for inter-thread communication in RL, one day. 
810   * Use gras_datadesc_copy() to exchange messages on top of SG 
811     Allows to:
812     - improve message exchange performance on top of SG
813     - deprecate transport_plugin_sg.c:gras_trp_sg_chunk_send() & recv()
814   * Don't exchange on the network the size of the used part of buffer,
815     instead, specify the possible buffer size to read(). 
816     Advantages:
817      - reduces the amount of read/write calls (one pair per exchange)
818      - reduces the amount of exchanged data (the size)
819      - allows to retrieve all arrived data on receiver side, if we don't need
820        it right now (subsequent read will peek the buffer)
821      - allows the receiver to proceed with the begining of the stream before
822        everything is arrived
823      - make it possible to build an iov transport (using readv/writev)
824     Extra difficulty: 
825      - take care of the data with non-stable storage (like stacked data),
826        and bufferize them.
827   * If possible, TCP send uses vector I/O (when writev() is here) 
828      - Don't use it for receive since we send data sizes and data on the
829        same stream, so we wouldn't be able to chain large amount of chunks
830        before having to flush the stuff to read the size.
831   * Rework the transport plugin mecanism to simplify it and reduce the
832     amount of pointer dereferencement when searching for the right function 
833     to use. 
834
835   * I guess that now, we do almost as few system calls as possible while
836     doing as few data copy as possible.
837
838     To improve it further, we could try to send all the sizes first and then
839     all the data (to use iov on receiving size), but it's only a partial
840     solution: when you have 2 dimensional data, the sizes of the second
841     dimension is data of the first dimension, so you need 3 streams.
842
843     I'm not sure the potential performance gains justify the coding burden.
844
845  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr>  Fri, 21 Oct 2005 14:42:20 +0200
846
847 SimGrid (3.00) stable; urgency=high
848   
849  SURF:
850   * New! Give the possibility to hijack the surf parser and thus bypass 
851     MSG_create_environment and MSG_launch_application. Have a look at
852     examples/msg/msg_test_surfxml_bypassed.c to see how it can be done.
853         
854  -- Arnaud Legrand <simgrid-devel@lists.gforge.inria.fr>  Sat, 20 Aug 2005 23:25:25 -0700
855
856 SimGrid (2.96) unstable; urgency=low
857
858   AKA SimGrid 3 rc 2.
859   
860   XBT:
861   * New! Exception handling with setjmp or such (code from OSSP ex) [MQ]
862     This deprecates the xbt_error_t mecanisms. 
863     It modifies (simplifies) all XBT and GRAS API.
864     MSG API keeps unchanged (exceptions raised by XBT are catched from 
865      within MSG and masked with existing error handling facilities)
866
867   SURF:
868   * New! Add a FATPIPE model. [AL]
869   * New! Add a parallel task model. [AL]
870   * New! Add automatically a loopback interface (in the default
871     network model) if none was precised.
872
873   MSG
874   * Bugfix: MSG_process_resume now works with the current running process. 
875     [AL]
876   * New! Add MSG_parallel_task_create and MSG_parallel_task_execute. [AL]
877   * Modification of MSG_task_get_compute_duration. Once a task has been
878     processed, the value returned by this function is now equal to 0. [AL]
879   * New! Add double MSG_task_get_remaining_computation(m_task_t task) and
880     MSG_error_t MSG_task_cancel(m_task_t task). Add a state
881     (MSG_TASK_CANCELLED) to MSG_error_t corresponding to the cancelation
882     of a m_task. For now, MSG_task_cancel only works with computation
883     tasks. [AL]
884   * New! Add double MSG_get_host_speed(m_host_t h) that returns the speed
885     of the processor (in Mflop/s) regardless of the current load on the
886     machine. [AL]
887   * API Change: use proper naming convention for MSG_getClock and 
888     MSG_process_isSuspended: MSG_get_clock and MSG_process_is_suspended.
889     [AL]
890   * New! Add void MSG_task_set_priority(m_task_t task, double priority). 
891     This function changes the priority of a computation task. This priority
892     doesn't affect the transfer rate. A priority of 2 will make a task 
893     receive two times more cpu power than the other ones. This function 
894     has been added to suit the needs of Nguyen The Loc and hasn't been that
895     much tested yet. So if it fails, please report it and send me your code. 
896     [AL]
897   * API Change: removed all functions and types that were marked "deprecated" 
898     since many months. Renamed MSG_global_init_args to MSG_global_init.
899
900  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr>  Mon,  8 Aug 2005 17:58:47 -0700
901
902 SimGrid (2.95) unstable; urgency=low
903
904   XBT
905   * Steal some nice code to GNU pth to fix context detection and usage [AL]
906   * Cleanup in the xbt_config API; add configuration callbacks. [MQ]
907   * Cleanup in the initialization API: the unused "defaultlog" is dead. [MQ]
908
909   SURF
910   * Bugfix: Allow absolute paths for platform description files [MQ]
911   * Bugfix: do free the variables after use. Leads to drastic performance 
912     improvement [AL] 
913   * Implement max_duration (ie, timeouts) on resources [AL]
914
915   MSG
916   * Implement MSG_config to configure MSG at runtime. xbt_cfg test on a real
917     case ;) [MQ]
918   * Implement MSG_channel_select_from() to help GRAS now that SURF provide
919     the needed support (timeouts) [AL]
920
921   GRAS (new features)
922   * Implement measurement sockets. You can now get the bandwidth between two
923     hosts thanks to AMOK (see below). [MQ]
924   * gras_datadesc_dynar() builds a dynar type descriptor, allowing to send
925     dynar over the network (yeah) [MQ]
926   * Real (even if simplistic) implementation of gras_os_myname() on RL [MQ]
927   * simple/static token-ring example. [Alexandre Colucci and MQ]
928   * Use MSG_channel_select_from() and remove the *slow* hack we had to put
929     in place before [MQ]
930   
931   GRAS (bug fixes)
932   * Differentiate the types "char[22]" and "unsigned char[22]" in automatic
933     type parsing. "short" and "long" modifiers were also ignored; other
934     modifier (such as reference level) are still ignored. [MQ] 
935   * Embeed the buffer size within the buffer itself on SG. [MQ]
936     That way, send() are atomic and cannot get intermixed anymore (at least
937     the ones which are less than 100k; bigger messages still have the issue)
938   * Array size pushed by the field, not by the field type (or each
939     and every long int will push stuff to the cbps) [MQ]
940   * use select() to sleep since it allows to portably sleep less than one
941     second. [MQ]
942
943   GRAS (minor cleanups)
944   * <project>.Makefile.local (generated from gras_stub_generator) |MQ]:
945     - Do clean .o files
946     - Compile with -g
947   * Type Callbacks now receive the gras_datadesc_type_t they work on as argument.
948   * type category 'ignored' killed as it was never used and were difficult
949     to transmit.
950   * whether a type can cycle or not is now a flag, leaving room for more
951     flags (as "ignored", if we feel the need one day ;)
952   * Rename raw sockets to measurement sockets since "raw" has another
953     meaning in networking community. 
954   
955   AMOK 
956   * Advanced Metacomputing Overlay Kit introduction. It is based over GRAS
957     and offers features not belonging to GRAS but that most applications
958     need. One day, it may be a set of plugins loadable at runtime.
959   * New module: bandwidth 
960     bandwidth measurement between arbitrary nodes running this module. [MQ]
961
962  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr>  Thu, 30 Jun 2005 16:29:20 -0700
963
964 SimGrid (2.94) unstable; urgency=low
965
966   The first beta release of SimGrid 3 !
967
968   >>>Arnaud<<<
969   (documentation)
970   * Update the main page and the FAQ. Adding references to gforge.
971
972   (gras)
973   * Add a gras_os_getpid function.
974
975   (msg)
976   * Add MSG_task_get_compute_duration() and MSG_task_get_data_size()
977   * Extend the logs so that they also print PID, hostname, date, ... if
978     available.
979   * Convert the MSG example to the use of xbt_logs instead of PRINT_MESSAGE,
980     and kill the old version which were in testsuite/
981   * Rewrite tools/MSG_visualization/colorize.pl for using with logs instead
982     of PRINT_MESSAGE
983
984   (xbt)
985   * Add xbt_os_time(). As the rest of xbt/portability, this is not public
986     for users. Instead, each programming environment (GRAS, MSG,...) use it
987     when needed to provide such a feature to users.
988     Don't shortcut the mecanism or you will also shortcut the virtualization
989     you need on the simulator.
990
991   >>>Martin<<<
992   (infrastructure)
993   * Cleanups in configury with regard to compile optimization/warning flags.
994     Also add -fno-loop-optimize to any powerpc since it's the optimization
995     killing gcc (< 3.4.0).
996   * Doxygen cleanups: move MSG examples, kill the second Doxygen phase
997     needed by MSG examples complications
998   * Borrow configury beautifications from PHP
999
1000   (xbt)
1001   * Bugfix: XBT_LOG_NEW_DEFAULT_CATEGORY now compiles without compiler
1002     warning (thanks loris for stumbling into this one).
1003   * Bugfix: stop loading private headers (gras_config.h) from the public
1004     ones (xbt/swag.h).
1005
1006   (gras)
1007   * Change SIMGRID_INSTALL_PATH to GRAS_ROOT in Makefiles generated for user.
1008   * Rename gras_get_my_fqdn to gras_os_myname and implement it in the simulator
1009     RL would imply a DNS resolver, which is *hard* to do in a portable way
1010     (and therefore delayed).
1011   * Implement a real timer mecanism and use it in timing macros. This allows
1012     to avoid rounding errors and get a 0.000005 sec precision in timing
1013     macros. While I was at it, various cleanups:
1014      - allow to declare more than one timed section per file (fix a stupid bug)
1015      - move some private declaration to the right place
1016      - merge conditional execution and timing macros into emulation module
1017      - document the module
1018      - make sure the module cleanups its mess on gras_exit
1019   * Documentation improvements:
1020      - (new) how to compile applications using GRAS
1021      - (new) emulation support (timing macros)
1022
1023  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr>  Fri, 13 May 2005 10:49:31 +0200
1024
1025 SimGrid (2.93) unstable; urgency=low
1026
1027   Alpha 4 on the path to SimGrid 3 (aka the "neuf-trois" version)
1028
1029   [Arnaud]
1030    - Use Paje properly where used. Still to be sanitized properly.
1031    - Portability fix: Add an implementation of the contexts using pthread
1032
1033   [Martin]
1034   (misc)
1035    - Add xbt_procname(): returns the name of the current process.
1036      Use it to show the current process's name in all logging.
1037   (infrastructure)
1038    - fix detection of older flex version and the reaction, since we do
1039      depend on modern ones (we use lex_destroy)
1040    - Better separation of SG and RL in the libs: remove all simulation code
1041      from libgras. As a result, this lib is now only 200k when stripped.
1042      Some of the xbt modules may also be duplicated (two sets and such) and
1043      should be cleaned/killed before SG3.
1044    - Insist on using xlC on AIX because of weird problems involving gcc there.
1045    - Cleanup the make remote stuff. This is now done by scripts
1046      tools/graspe-{master,slave} (GRAS Platform Expender). This is still
1047      mainly for our private use, but we're working on changing them to user
1048      tools, too.
1049   (gras)
1050    - Bugfix: flush the socket on close only if there is some *output*.
1051    - Bugfix: flush idempotent when there's nothing to send (don't send size=0)
1052   (msg)
1053    - Add MSG_task_get_name. The task names are mainly for debugging purpose,
1054      but anyway.
1055
1056  -- SimGrid team <simgrid2-users@listes.ens-lyon.fr>  Fri,  4 Mar 2005 14:32:37 -0800
1057
1058 SimGrid (2.92) unstable; urgency=low
1059
1060   Alpha 3 on the path to SimGrid 3
1061   
1062   [Arnaud]
1063   (gras)
1064    - New! First try of benchmarking macros.
1065    - New! First try so that gras_stub_generator generate deployment and
1066      remote compilation helpers.
1067   (msg)
1068    - Bugfix: Initialization fix in msg_test.
1069
1070   [Martin]
1071   (surf)
1072    - Bugfix: applied patch to lexer so that it doesn't need a huge heap.
1073   (xbt)
1074    - Bugfix: let dicts work with NULL content (_foreach didn't) and cleanups
1075   (gras)
1076    - API Change: gras_os_sleep to take the amount of seconds as a double.
1077      Accepting an int was error prone since it was the only location where
1078      seconds were coded as such. It leaded to damn rounding errors.
1079    - Bugfix: Hard to belive that timers ever worked before this.
1080
1081  -- SimGrid team <simgrid2-users@listes.ens-lyon.fr>  Wed, 23 Feb 2005 22:09:21 +0100
1082
1083 SimGrid (2.91) unstable; urgency=low
1084
1085   Alpha 2 on the path to SimGrid 3
1086   
1087   [Arnaud]
1088   (surf)
1089    - Bug fix in the lmm_solver.
1090   (msg)
1091    - New! Interface to Paje (see http://www-id.imag.fr/Logiciels/paje/) 
1092      through the function MSG_paje_output.
1093    - New! Introducing two new functions MSG_process_kill() and MSG_process_killall().
1094    - It is possible to bound the rate of a communication in MSG with 
1095      MSG_task_put_bounded() (was already in the previous version but I had forgotten 
1096      to write it in the changelog).
1097    - Bug fix to let GRAS run on top of MSG until we move it directly on top
1098      of the SURF.
1099     
1100   [Martin]
1101   (infrastructure)
1102    - Various cleanups to the autotools stuff
1103    - Begin to move Gras examples to examples/gras/
1104    - Let make distcheck work again (yeah!)
1105   (documentation)
1106    - documentation overhauled using doxygen. 
1107      gtk-doc-tools is dead in SimGrid now.
1108    - Automatically extract all existing logging categories, and add the list
1109      to the documentation (long standing one, to say the less)
1110   (gras)
1111    - Cleanup the known architecture table. Reorder the entries to group what
1112      should be, and use a more consistent naming scheme.
1113      (some of the test dataset are still to be regenerated)
1114    - New! Allow library to register globals on each process just as userdata
1115      does. 
1116       This is implemented using a xbt_dict and not a xbt_set, so we loose the
1117        lookup time (for now).
1118       Use it in msg and trp.
1119       This cleans a lot the internals and helps enforcing privacy of the
1120        headers between the gras components.
1121    - New! Add a timer mechanism, not unlike cron(8) and at(1). 
1122    - Bugfix: gras_os_time was delirious in RL.
1123    - Bugfix: gras_trp_select/RL don't run into the wall when asked to select
1124      onto 0 sockets.
1125    - Reenable GRAS now that it works.
1126
1127  -- Arnaud Legrand <Arnaud.Legrand@imag.fr>  Mon, 14 Feb 2005 14:02:13 -0800
1128
1129 SimGrid (2.90) unstable; urgency=low
1130
1131   Alpha 1 on the path to SimGrid 3
1132
1133   * It is a long time since the last release of SimGrid. I'm sorry about
1134     that but as I had told you, I was rewriting a lot of things. I apologize 
1135     to those who had been reporting bugs to me and that I had not answered. 
1136     If your bug is still in the new version, please tell me. Here is a 
1137     summary of the main changes.
1138
1139   * REVOLUTION 1: The SimGrid project has merged with the GRAS project
1140     lead by Martin Quinson. As a consequence SimGrid gains a lot in
1141     portability, speed, and a lot more but you'll figure it out later. 
1142     SimGrid now comprises 3 different projects : MSG, GRAS and SMPI. 
1143     I wanted to release the new MSG as soon as possible and I have 
1144     broken GRAS, which is the reason why, for now, only MSG is fully 
1145     functional. A laconic description of these projects is available 
1146     in the documentation.
1147   
1148   * REVOLUTION 2: I have removed SG and I am now using a new simulation
1149     kernel optimized for our needs (called SURF but only the developers
1150     should use it). Hence, MSG is now roughly 30 times faster and I think
1151     that by rewriting a little bit MSG, I could event speed it up a little
1152     bit more. Beside the gain in speed, it is also much easier to encode a
1153     new platform model with SURF than it was with SG. More to come...
1154   
1155   * REVOLUTION 3: I have tried to change a little as possible the API of
1156     MSG but a few things really had to disappear. The main differences
1157     with the previous version are :
1158        1) no more m_links_t and the corresponding functions. Platforms are
1159          directly read from a XML description and cannot be hard-coded
1160          anymore. The same format is used for application deployment
1161          description. The new format is described in the documentation. 
1162          Have a look in tools/platform_generation. There is a tiny script 
1163          that converts from the old platform format to the new one. Concerning
1164          the application deployment format, parsing the old one is tricky.  
1165          I think most of you should however be able to convert your files.  If 
1166          it is really an issue, I can write a C code that does the conversion. 
1167          Let me know.
1168        2) the toolbox tbx does not exist anymore. We now have a library
1169           with much more data-structures but without the hash-tables (we have 
1170           dictionaries that are much faster).
1171
1172  -- Arnaud Legrand <Arnaud.Legrand@imag.fr>  Mon, 31 Jan 2005 10:45:53 -0800
1173
1174 *****************************************************************************
1175 * Follows the old GRAS changelog. It does not follow the same syntax, but I *
1176 * don't feel like converting the oldies. (Mt)                                *
1177 *****************************************************************************
1178
1179 2005-01-31 Arnaud
1180   Version 2.90: "the long awaited one"
1181   - Finished rewriting and debugging MSG. Rewrote the documentation.
1182   - disable GRAS for now since it needs to be ported to the newest SG
1183
1184 2004-12-16 Martin
1185   - Finish the port to windows (using mingw32 for cross-compile)
1186
1187 2004-11-28 Arnaud
1188   - Main loop and datastructures of SURF. A cpu resource object is
1189     functional. Surf can thus be used to create cpu's with variable
1190     performance on which you can execute some actions.
1191         
1192 2004-11-15 Martin Quinson
1193   - Port to ARM. Simply added the alignment and size descriptions. Should
1194     work, but the ARM machines are so slow that I didn't had the opportunity
1195     to 'make check' over there yet.
1196
1197 2004-11-15 Arnaud Legrand
1198   - Trace manager now written. It uses a heap structure and is therefore
1199     expected to be efficient. It may however be speeded up (particularly
1200     when many events occur at the same date) by using red and black
1201     trees. One day maybe... 
1202   - Max-min linear system solver written. It uses a sparse matrix
1203     structure taking advantage of its expected use. Most operations are
1204     O(1) and free/calloc are called as few as possible. The computation of
1205     the minimum could however be improved by using a red and black tree
1206     (again ! ;).
1207
1208 2004-11-03 Arnaud Legrand
1209   - Rename every gras_* function that was in xbt/ to its xbt_
1210     counterpart.
1211   - Add a heap and a doubly-linked list to xbt
1212   - Added a dichotomy to the dictionaries. make check works as well before
1213     so I assume that the patch is correct. I do not know however if things
1214     run effectively faster than before now. :)
1215
1216   Inclusion of the SimGrid tree in the GRAS one. The archive is renamed to
1217   SimGrid, and the version number is bumped to 2.x
1218
1219 2004-10-29 Martin Quinson
1220   - Introduction of the remote errors. 
1221     They are the result of a RMI/RPC on the remote machine.
1222     ErrCodes being scalar values, you can't get the host on which those
1223     errors did happen. Extending the error mechanism as in Gnome is possible.
1224     No idea yet whether it is a good idea.
1225     
1226 2004-10-28 Martin Quinson
1227   - Interface revolution: the Starred Structure Eradication.
1228     I used to do typedef struct {} toto_t; and then handle *toto_t.
1229     Arnaud (and Oli) didn't like it, and I surrendered. Now, you have:
1230       - ???_t is a valid type (builded with typedef)
1231       - s_toto_t is a structure (access to fields with .)
1232       - s_toto   is a structure needing 'struct' keyword to be used
1233       - e_toto_t is an enum
1234       -   toto_t is an 'object' (struct*)
1235     Exemple:
1236       typedef struct s_toto {} s_toto_t, *toto_t;
1237       typedef enum {} e_toto_t;
1238     Moreover, only toto_t (and e_toto_t) are public. The rest (mainly
1239      s_toto_t) is private.
1240     
1241   - While I was at it, all gras_<obj>_free() functions want a gras_<obj>_t*
1242     so that it can set the variable to NULL. It was so for dicts and sets,
1243     it changed for dynars.
1244     
1245   - Fix a bunch of memleaks in dict_remove
1246   - Fix a bug in sg/server_socket opening: it failed all the time.
1247
1248 2004-10-07 Martin Quinson
1249   - Speed up dynar lookup operation a bit.
1250   
1251     gras_dynar_get is dead. 
1252     
1253     Now, you can choose between gras_dynar_get_cpy (the old gras_dynar_get
1254     but should be avoided for efficiency reasons) and gras_dynar_get_ptr
1255     (which gives you the address of the stored data).
1256     
1257     gras_dynar_get_as is an helpful macro which allows you to retrieve a
1258     copy of the data using an affectation to do the job and not a memcpy.
1259     
1260     int toto = gras_dynar_get_as(dyn,0,int); rewrites itself to
1261     int toto = *(int*)gras_dynar_get_ptr(dyn,0);
1262     
1263     It does not really speedup the dynar test because they are
1264     setting elements all the time (and look them seldom). But the dict does
1265     far more lookup than setting.
1266
1267     So, this brings the dict_crash test from ~33s to ~25s (200000 elms).
1268
1269 2004-10-05 Martin Quinson
1270   - Allow to (en/dis)able the cycle detection at run time.
1271   
1272     Whether we should check for cycle or not is now a property of each
1273     datatype. When you think there may be some cycle, use datadesc_cycle_set.
1274     datadesc_cycle_unset allow to remove this property when previously set.
1275     
1276     Note that the cycle detection is off by default since it impacts the 
1277     performance. Watch the data you feed GRAS with ;)
1278     
1279     This property is hereditary. Any element embedded in a structure having it
1280     set have it set for the time of this data exchange.
1281     
1282     You should set it both on sender and receiver side. If you don't set it on
1283     sender side, it will enter an endless loop. If you forget on receiver
1284     side, the cycles won't be recreated after communication.
1285     
1286   - Header reorganization.
1287     Kill gras_private.h, each submodule must load the headers it needs.
1288
1289 2004-10-04 Martin Quinson
1290   - Interface revolution: do not try to survive to malloc failure.
1291   
1292     Now, gras_malloc and friends call gras_abort() on failure.
1293     As a conclusion, malloc_error is not a valid error anymore, and all
1294       functions for which it was the only gras_error_t return value are
1295       changed. They now return void, or there result directly. 
1296     This simplify the API a lot.
1297
1298 2004-09-29 Martin Quinson
1299   - Re-enable raw sockets.
1300     Created by gras_socket_{client,server}_ext;
1301     Used with gras_raw_{send,recv}
1302     No select possible.
1303     
1304     It should allow to kill the last bits of gras first version soon.
1305   
1306     This is not completely satisfactory yet (duplicate code with
1307      chunk_{send,recv}; a bit out of the plugin mechanism), but it should
1308      work. 
1309
1310   - Simplify transport plugin (internal) interface by not passing any
1311     argument to _server and _client, but embedding them in the socket
1312     struct directly. 
1313
1314 2004-09-28 Martin Quinson
1315   - Finish the port to AIX.
1316     autoconf was my problem (segfault within the malloc replacement
1317     function. No idea why)
1318         
1319 2004-09-16 Martin Quinson
1320   - Fix some size_t madness on 64bit architectures.
1321   
1322 2004-09-08 Martin Quinson
1323   - Reduce the number of system headers loaded, overload some more system
1324     calls (such as malloc to cast the result of the system one, and work
1325     properly on AIX)
1326   - Fix and reintroduce the config support
1327
1328 2004-09-07 Martin Quinson
1329   - Source code reorganization to allow Arnaud to surf all over there.
1330   - Allow to document the logging categories.
1331   - Remove all uppercase from logging categories and useless cleanup in names.
1332
1333 2004-08-18 Martin Quinson
1334   Version 0.6.2 (protocol not changed; API changed)
1335   - Interface cleanup: gras_msgtype_by_name returns the type (instead of a
1336      gras_error_t), and NULL when not found. Functions expecting a msgtype
1337      as argument (msg_wait; msg_send) deal with NULL argument by providing a
1338      hopefully usefull message.
1339   - Portability to prehistoric sparcs again
1340
1341 2004-08-17 Martin Quinson
1342   Version 0.6.1 (protocol not changed; ABI not changed)
1343   - prealloc some buffers to speed things up
1344
1345 2004-08-11 Martin Quinson
1346   Version 0.6 (protocol not changed; ABI expended)
1347   - The parsing macro can deal with the references, provided that you add
1348     the relevant annotations (using GRAS_ANNOTE(size,field_name))
1349
1350 2004-08-09 Martin Quinson
1351   Version 0.5 (protocol not changed; ABI changed)
1352   - Allow to off turn the cycle detection code in data exchange at
1353     compilation time. It should be at run time, but I'm short of time (and
1354     the config stuff is still broken). That way, we keep dict out of the
1355     critical path, which is good because the performance is poor:
1356      - search not dichotomial yet
1357      - dynar give no way to access their content and memcpy everytime
1358   - In composed data description (struct, ref and so on), stop foolness of
1359     keeping the subtype's ID, but store the type itself. This keeps sets out
1360     of the critical path, which is good since they rely on dynar and
1361     dictionnaries. The only loose of that is that we cannot detect the
1362     redeclaration of a structure/union with another content (but I'm not sure 
1363     the code detected well this error before anyway). We still can detect
1364     the redefinition discrepancy for the other types.
1365   - Use a whole bunch of optimisation flags (plus -fno-strict-aliasing since
1366     it breaks the code because of type-punning used all over the place).
1367     This breaks on all non-gcc architectures (for now).
1368     
1369   All those changes (plus the buffer of last time) allow me to gain 2 order
1370   of magnitude on cruel tests consisting of 800000 array of integers on two
1371   level of a hierarchical structure (200 secondes -> 4 secondes)
1372   
1373   API change:
1374     - the selector of reference must now return the type it points to, not
1375       the ID of this type.
1376
1377 2004-08-06 Martin Quinson
1378   Version 0.4 (protocol changed; ABI not changed)
1379   - Allow to pass --gras-log argument to processes in simulation mode. Really.
1380   - New debugging level: trace (under debug) to see effect of GRAS_IN/OUT
1381   - Implement a buffer transport, and use it by default (it relies on tcp in
1382      real life and on sg in simulation).
1383     That's a bit hackish since I had a new field to the structure to store
1384      its data without interfering with the subtype ones. Inheritance
1385      is tricky in C. And that's a kind of reverse inheritance with one class
1386      derivating two classes. Or maybe a game with java interfaces. Anyway,
1387      that's damn hard in C (at least).
1388     Moreover, I got tired while trying to ensure plugin separation and
1389      genericity in SG mode. MSG wants me to do weird things, so let's go for
1390      cruel hacks (temporarily of course ;).
1391      See comment in transport_private.h:71
1392   - do not include all the _interface headers in private but in the files
1393     which really need them (to cut the compilation time when they are
1394     modified) 
1395
1396 2004-07-26 Martin Quinson
1397   Version 0.3 (protocol not changed; ABI changed)
1398   - Major overhault of the datadesc interface to simplify it:
1399     - shorted the function names:
1400       s/gras_datadesc_declare_struct/gras_datadesc_struct/ and so on
1401     - add a trivial way to push/pop integers into the cbps without malloc.
1402       This allows to make really generic sub_type description, which simply
1403         pop their size of the stack.
1404     - add a function gras_datadesc_ref_pop_arr() which does what users want
1405       most of the time: Declare a dynamic array (which pops its size of the
1406       stack) and declare a reference to it. Poor name, but anyway.
1407     - kill the post-send callback, add a post-receive one
1408     
1409 2004-07-23 Martin Quinson
1410   Version 0.2 (protocol changed; ABI changed)
1411   - add some testing for cpbs in the test cases, and fix some more bugs.
1412     This invalidate again the little64 data file, since I cannot regenerate
1413     it myself.
1414   - remove an awfull optimization in the logging stuff, allowing me to:
1415     - understand it again
1416     - learn gcc how to check that the argument match the provided format
1417     - fix all errors revealed by gcc after that
1418   - internal keys of dict are not \0 terminated. Deal with it properly in
1419     loggings instead of segfaulting when the user want to see the logs :-/
1420
1421 2004-07-22 Martin Quinson
1422   - Fix some stupid bug preventing cbps (callback postit) from working
1423
1424 2004-07-21 Martin Quinson
1425   - Some documentation cleanups
1426   - remove the useless last argument of msgtype_declare
1427   - rename the Virtu functions to fit into the 'os' namespace
1428   - move headers src/include -> src/include/gras/ and stop fooling with 
1429     gras -> . symbolic link
1430   - make distcheck is now successful
1431
1432 2004-07-19 Martin Quinson
1433   Version 0.1.1
1434   - Build shared library also
1435   - Install html doc to the right location
1436   - stop removing maintainer files in make clean
1437   - build tests only on make check
1438   
1439 2004-07-13 Martin Quinson
1440   version 0.1
1441   - No major issue in previous version => change versionning schema
1442   - Re-enable little64 convertion test now that Abdou kindly regenerated the
1443     corresponding dataset.
1444   
1445 2004-07-11 Martin Quinson
1446   version 0.0.4
1447   - Get it working with any kind of structure (we can compute the padding
1448     bytes remotely for all the architectures I have access to)
1449   - Implement the structure parsing macro (still not quite robust/complete)
1450   - Improvement to the remote testing toysuite
1451   
1452 2004-07-10 Martin Quinson
1453  [autoconf mechanism]
1454   - get ride of a bunch of deprecated macros
1455   - actually run the test for two-compliment, not only compile it :-/
1456   - test whether the structures get packed (and bail out if yes. Damn.
1457     Alignment is a serious matter)
1458   - test whether the structures get compacted (but respecting the alignment
1459     constraints of each types)
1460   - test whether the array fields of structures can straddle alignment boundaries
1461  [base]
1462   - Damnit, double are bigger than float (typo in creation of 'double' datadesc)
1463     (took me 2 hours to find that bug, looking at the wrong place)
1464   - Add gras_datadesc_declare_{union,struct}_close(). They must be used
1465     before sending/receiving and are used to compute the offsets of fields
1466   - Given that padding size depend even on compiler options, keep track of
1467     alignment and aligned_size only for the current architecture. Not a big
1468     deal since we send structure fields one after the other (seems
1469     reasonable).    
1470   - Add the datastructure used for IEEE paper by the PBIO guys to the test
1471     program, let it work on linux/gcc/little32. portability todo.
1472
1473 2004-07-08 Martin Quinson
1474   - import and improve remote compilation support from FAST
1475   - make sure make check works on half a dozen of machines out there
1476
1477 2004-07-07 Martin Quinson
1478  Let's say it's version 0.0.3 ;)
1479   - Implement conversions (yuhu!)
1480   - Let it work on solaris (beside conversion, of course)
1481   - Stupid me, using rand() to generate the conversion datatests in not wise.
1482
1483 2004-07-06 Martin Quinson
1484   - Let make dist work, since I'm gonna need it to compile on remote hosts
1485   - Let Tests/datadesc_usage write the architecture on which the file was
1486     generated as first byte.
1487   - Add PowerPC (being also IRIX64), SPARC (also power4) and ALPHA
1488     architecture descriptions. 
1489   - Add datadesc_usage.{i386,ppc,sparc} files being the result of execution
1490     on those architectures.
1491   - Optimization: send/recv array of scalar in one shoot
1492
1493 2004-07-05 Martin Quinson
1494   - YEAH! GRAS/SG and GRAS/RL are both able to run the ping example !
1495   
1496   - Plug a whole bunch of memleaks
1497   - each process now have to call gras_{init,exit}. One day, their log
1498     settings will be separated
1499   - Continue the code factorisation between SG, RL and common in Transport.
1500
1501 2004-07-04 Martin Quinson
1502  [Transport]
1503   - Redistribution between SG and RL. 
1504     We wanna have to accept in SG, so move accepted related parts of RL in
1505     the common part. (more precisely, the dynar of all known sockets is no
1506     more a static in transport.c, but part of the process_data)
1507  [Core/module.c] 
1508  [gras_stub_generator]
1509   - Bug fix: Do call gras_process_init from gras_init (wasnt called in RL).
1510
1511 2004-07-03 Martin Quinson
1512   - Create a new log channel tbx containing dict, set, log, dynar (to shut
1513     them all up in one shot)
1514  [DataDesc]
1515   - Fix the ugly case of reference to dynamic array.
1516   - New (semi-public) function gras_datadesc_size to allow the messaging
1517     layer to malloc the needed space for the buffer.
1518  [Transport]
1519   - gras_socket_close now expect the socket to close (and not its address to
1520     put NULL in it after it). This is because the socket passed to handlers
1521     is one of their argument (=> not writable).
1522  [Messaging]
1523   - propagate the interface cleanup from last week in datadesc, ie remove a
1524     superfluous level of indirection. User pass adress of variable
1525     containing data (both when sending and receiving), and not of a variable
1526     being a pointer to the data. Let's say that I like it better ;)
1527       The price for that is constructs like "int msg=*(int*)payload" in
1528     handlers, but it's a fine price, IMHO.
1529  [examples/ping]
1530   - Let it work in RL (yuhu)
1531
1532 2004-06-21 Martin Quinson
1533  [Transport]
1534    - porting SG plugin and SG select to new standards (works almost).
1535    - plug memleaks and fix bugs around.
1536    
1537  [DataDesc] 
1538    - cleanup the prototype of data recv and force users to specify when they 
1539      want to handle references to objects. Test case working even for cycles.
1540    - plug memleaks. Valgrind is perfectly ok with this.
1541
1542 2004-06-12 Martin Quinson
1543  [Transport] 
1544    - cleanup the separation between plugin and main code in plugin creation 
1545
1546 2004-06-11 Martin Quinson
1547  [Transport]
1548    - Reput hook for raw sockets, needed for BW experiments
1549    - kill a few lines of dead code
1550  [Data description] Interface cleanup
1551    - gras_datadesc_by_name returns the searched type or NULL.
1552      That way, no variable is needed to use a type desc once, which makes
1553       the code clearer.
1554    - gras_datadesc_declare_[struct|union]_append_name is removed. The last
1555       two parameters were strings (field name, type name), leading to
1556       common errors.
1557  [Dicos] Interface cleanup
1558    - gras_dico_retrieve -> gras_dico_get ; gras_dico_insert -> gras_dico_set 
1559      This is consistant with the dynar API.
1560
1561 2004-04-21 Martin Quinson
1562  [Messaging]
1563    - Porting to new standards.
1564  [Data description]
1565    - interface cleanup. 
1566      There is no bag anymore, no need to take extra provision to mask the
1567        pointers behind "ID". 
1568      Better splitup of functions between files create/exchange/convert.
1569        This is still a bit artificial since convert and receive are so
1570        interleaved, but anyway.
1571  [Virtu(process)]
1572    - add a queued message list to procdata (the ones not matching criteria
1573      in msg_wait)
1574    - factorize some more code between SG and RL wrt procdata
1575  [Tests]
1576    - use gras_exit in example to track memleaks
1577    - get rid of gs_example now that GS is properly integrated into gras
1578    - update run_test to integrate the lastest tests (datadesc)
1579  [Logging]
1580    - rename WARNINGn macros to WARNn since it prooved error-prone
1581      
1582 2004-04-19 Martin Quinson
1583  [Data description]
1584    - register init/exit functions within gras module mechanism   
1585    - send/receive function. 
1586    Convertion is not implemented, but short-cutted if not needed.
1587    struct/array elements are sent one by one (instead of block-wise), but
1588      nobody really cares (yet). Get a prototype before optimizing.
1589    - tests (using a file socket) for DD send/receive on:
1590      - base types: int, float
1591      - array: fixed size, string (ie ref to dynamic string)
1592      - structure: homogeneous, heterogeneous
1593      - chained list, graph with cycle
1594    Believe it or not, valgrind is not too unhappy with the results. The
1595     cycle happily segfaults, but the others are ok. And I'm sick of pointers
1596     for now.
1597  [Transport]
1598    [File plugin] 
1599      - Bugfix when using a filename explicitely (instead of '-')
1600
1601 2004-04-09 Martin Quinson
1602  [Transport plugins]
1603    - factorize more code between RL and SG in socket creation
1604    - Complete the implementation and tests of:
1605      o TCP
1606      o file (only in RL, and mainly for debugging)
1607      
1608      I lost 3 days to design a portable address resolver, and then decided
1609        that the prototype mainly have to run on my box.
1610      Addressing portability too early may be like optimizing too early :-/
1611  [Tests]
1612    - use gras_init in the Tests instead of the crappy parse_log_opt 
1613      (the latter function is removed)
1614  [Conditional execution]
1615    - New functions: gras_if_RL/gras_if_SG (basic support for this)
1616  [Code reorganisation]
1617   - Get rid of libgrasutils.a since it makes more trouble than it solves.
1618     Build examples against the RL library, since there is no way to disable
1619     its creation for now.
1620
1621 For information, the beginning of coding on GRAS was back in june
1622 2003. I guess that every line has been rewritten at least twice since
1623 then.