Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
10 years agoPrint messages on stderr so that they're correctly interleaved with xbt log outputs.
Arnaud Giersch [Fri, 14 Feb 2014 09:06:10 +0000 (10:06 +0100)]
Print messages on stderr so that they're correctly interleaved with xbt log outputs.

10 years agoExample was removed.
Arnaud Giersch [Thu, 13 Feb 2014 14:58:15 +0000 (15:58 +0100)]
Example was removed.

10 years agoCast enum to int.
Arnaud Giersch [Thu, 13 Feb 2014 14:34:12 +0000 (15:34 +0100)]
Cast enum to int.

Not sure if it's correct, but it's certainly not worse as before commit
48f8aa92514a5d0245b115263082b368f072c43e (Remove vm set state simcall)
which broke builds with clang.

10 years agoRemove old files.
Arnaud Giersch [Wed, 12 Feb 2014 13:34:51 +0000 (14:34 +0100)]
Remove old files.

10 years agoUse host's RngStream, instead of creating another one.
Arnaud Giersch [Thu, 13 Feb 2014 14:25:53 +0000 (15:25 +0100)]
Use host's RngStream, instead of creating another one.

It was already done in commit 2b9e15c1a85e32f98027ba1f1ce99bed29490f49
(Fix the parallel execution for the bittorrent example.), but lost by commit
d55f9548c659a1e31267748bde0f8bc9846cd1d4 (-Cleaning a bit the code).

10 years agoFix random lookup in chord example.
Arnaud Giersch [Thu, 13 Feb 2014 14:03:45 +0000 (15:03 +0100)]
Fix random lookup in chord example.

Use the same trick as in commit 2b9e15c1a85e32f98027ba1f1ce99bed29490f49
(Fix the parallel execution for the bittorrent example.)

10 years agoFix parallel tests for chord.
Arnaud Giersch [Thu, 13 Feb 2014 13:33:48 +0000 (14:33 +0100)]
Fix parallel tests for chord.

Verify that we got the expected answer, by checking ans_data->type.

The expected task may have been destroyed at line 413, and then
recycled at line 594, giving the same pointer.

The problem sometimes happened with parallel tests.

10 years agoenforce the use of the routing attribute of an AS, as stated in the doc (avoid defaul...
Augustin Degomme [Thu, 13 Feb 2014 15:13:32 +0000 (16:13 +0100)]
enforce the use of the routing attribute of an AS, as stated in the doc (avoid defaulting to None, which is juste here to crash)

10 years agoAllow receives to be posted before send in smpi tracing.
Augustin Degomme [Thu, 13 Feb 2014 12:40:18 +0000 (13:40 +0100)]
Allow receives to be posted before send in smpi tracing.

10 years agoFix Remove host data
Paul Bédaride [Thu, 13 Feb 2014 13:52:35 +0000 (14:52 +0100)]
Fix Remove host data

10 years agoFix simcalls without BODY
Paul Bédaride [Thu, 13 Feb 2014 13:20:22 +0000 (14:20 +0100)]
Fix simcalls without BODY

10 years agoRemove comm destroy simcall
Paul Bédaride [Thu, 13 Feb 2014 13:10:33 +0000 (14:10 +0100)]
Remove comm destroy simcall

10 years agoRemove unused include
Paul Bédaride [Thu, 13 Feb 2014 12:55:46 +0000 (13:55 +0100)]
Remove unused include

10 years agoRemove vm set state simcall
Paul Bédaride [Thu, 13 Feb 2014 10:29:11 +0000 (11:29 +0100)]
Remove vm set state simcall

10 years agoRemove host data and had JAVA_HOST_LEVEL
Paul Bédaride [Thu, 13 Feb 2014 10:07:54 +0000 (11:07 +0100)]
Remove host data and had JAVA_HOST_LEVEL

10 years agoRemove masterslave virtual machine old example
Paul Bédaride [Wed, 12 Feb 2014 10:38:07 +0000 (11:38 +0100)]
Remove masterslave virtual machine old example

10 years agoUse XBT_INFO only after MSG_init, so that log parameters given on the command line...
Arnaud Giersch [Wed, 12 Feb 2014 15:35:19 +0000 (16:35 +0100)]
Use XBT_INFO only after MSG_init, so that log parameters given on the command line are taken into account.

10 years agoFix: missing ifdef
Paul Bédaride [Wed, 12 Feb 2014 10:00:40 +0000 (11:00 +0100)]
Fix: missing ifdef

10 years agoFix NS3 and latency bound tracking
Paul Bédaride [Wed, 12 Feb 2014 09:27:37 +0000 (10:27 +0100)]
Fix NS3 and latency bound tracking

10 years agoUnify surf action_cost type
Paul Bédaride [Wed, 5 Feb 2014 10:21:05 +0000 (11:21 +0100)]
Unify surf action_cost type

10 years agoClean bound in surf
Paul Bédaride [Wed, 5 Feb 2014 09:29:38 +0000 (10:29 +0100)]
Clean bound in surf

10 years agoRemove lmm_elem_set_value (Not used)
Paul Bédaride [Tue, 4 Feb 2014 15:52:38 +0000 (16:52 +0100)]
Remove lmm_elem_set_value (Not used)

10 years ago[mc] Make usage of state hash a runtime parameter (instead of compile-time)
Gabriel Corona [Tue, 11 Feb 2014 12:38:04 +0000 (13:38 +0100)]
[mc] Make usage of state hash a runtime parameter (instead of compile-time)

"off" by default.

10 years ago[mc] Code for evaluation of the impact of the hash
Gabriel Corona [Mon, 10 Feb 2014 14:02:13 +0000 (15:02 +0100)]
[mc] Code for evaluation of the impact of the hash

Generate log for evaluating the result of the test:
* true positive;
* true negative;
* false negative (there must not be any of them);
* false positive (should be minimised).

10 years agoDon't completely short-circuit these loops!
Arnaud Giersch [Tue, 11 Feb 2014 07:41:26 +0000 (08:41 +0100)]
Don't completely short-circuit these loops!

We really need some validated tesh files for cloud/vm examples to detect
such stupid mistakes.

10 years agoRevert "Typo."
Arnaud Giersch [Mon, 10 Feb 2014 14:58:59 +0000 (15:58 +0100)]
Revert "Typo."

This reverts commit 2f7c9b47e9e61369a4fc1f96d924c9e5349d9f4c.

10 years agoTypo.
Arnaud Giersch [Mon, 10 Feb 2014 13:58:23 +0000 (14:58 +0100)]
Typo.

10 years agoMake a list of WorkstationVM, instead of iterating over all hosts to list them.
Arnaud Giersch [Mon, 10 Feb 2014 13:51:25 +0000 (14:51 +0100)]
Make a list of WorkstationVM, instead of iterating over all hosts to list them.

With this change, execution time is reduced by 50% on a chord example with 10000 hosts.

10 years agoAdd some spaces in help messages.
Arnaud Giersch [Mon, 10 Feb 2014 10:56:53 +0000 (11:56 +0100)]
Add some spaces in help messages.

10 years agoFactorize repetitive code.
Arnaud Giersch [Mon, 10 Feb 2014 10:41:43 +0000 (11:41 +0100)]
Factorize repetitive code.

10 years agoFix help message for vm_workstation/model.
Arnaud Giersch [Mon, 10 Feb 2014 10:02:18 +0000 (11:02 +0100)]
Fix help message for vm_workstation/model.

10 years agoSupernovae mode was deprecated. It is currently broken too. Remove it.
Arnaud Giersch [Mon, 10 Feb 2014 08:17:46 +0000 (09:17 +0100)]
Supernovae mode was deprecated. It is currently broken too. Remove it.

10 years agoReplace SMPI finalization by a barrier with synchronized messages.
Augustin Degomme [Mon, 10 Feb 2014 14:07:45 +0000 (15:07 +0100)]
Replace SMPI finalization by a barrier with synchronized messages.
This avoids to looping over sleep when communications are not finished, which was ugly and annoying for MC

10 years ago[mc] Cache stack unwindinwg
Gabriel Corona [Mon, 10 Feb 2014 12:39:09 +0000 (13:39 +0100)]
[mc] Cache stack unwindinwg

Too much time is spent in libunwind.

10 years ago[mc] Fix broken type lookup code
Gabriel Corona [Mon, 10 Feb 2014 10:49:07 +0000 (11:49 +0100)]
[mc] Fix broken type lookup code

10 years agoMerge branch 'mc' into mc-perf
Gabriel Corona [Mon, 10 Feb 2014 10:15:29 +0000 (11:15 +0100)]
Merge branch 'mc' into mc-perf

10 years ago[mc] Remove useless code (get SP register)
Gabriel Corona [Mon, 10 Feb 2014 10:13:37 +0000 (11:13 +0100)]
[mc] Remove useless code (get SP register)

10 years ago[mc] Use optimized local implementation of libuwind (UNW_LOCAL_ONLY)
Gabriel Corona [Mon, 10 Feb 2014 10:11:09 +0000 (11:11 +0100)]
[mc] Use optimized local implementation of libuwind (UNW_LOCAL_ONLY)

10 years ago[mc] Restore old behaviour when comparing pointers leading to different segments
Gabriel Corona [Mon, 10 Feb 2014 09:31:50 +0000 (10:31 +0100)]
[mc] Restore old behaviour when comparing pointers leading to different segments

Do not terminate the program but assume the state is different.

10 years agoThese release goals are nearly achieved.
Arnaud Giersch [Sat, 8 Feb 2014 22:41:10 +0000 (23:41 +0100)]
These release goals are nearly achieved.

10 years agoFree surf_energy on exit.
Arnaud Giersch [Sat, 8 Feb 2014 22:35:31 +0000 (23:35 +0100)]
Free surf_energy on exit.

10 years agoAdd callbacks for surf_exit.
Arnaud Giersch [Sat, 8 Feb 2014 22:35:03 +0000 (23:35 +0100)]
Add callbacks for surf_exit.

10 years agojava-cloud-migration: destroy VMs at the end of the simulation.
Arnaud Giersch [Sat, 8 Feb 2014 22:07:52 +0000 (23:07 +0100)]
java-cloud-migration: destroy VMs at the end of the simulation.

10 years agoGo ahead for cleanup, even if process was suspended.
Arnaud Giersch [Sat, 8 Feb 2014 13:53:36 +0000 (14:53 +0100)]
Go ahead for cleanup, even if process was suspended.

Prevents memory leaks in examples from msg/cloud.

10 years agoDon't hide type real type, smx_process_t, behind a void*.
Arnaud Giersch [Sat, 8 Feb 2014 10:35:39 +0000 (11:35 +0100)]
Don't hide type real type, smx_process_t, behind a void*.

10 years agoSlightly improve debug messages.
Arnaud Giersch [Fri, 7 Feb 2014 14:46:27 +0000 (15:46 +0100)]
Slightly improve debug messages.

10 years agoUncomment code, and fix meomry leaks in WorkstationVMHL13.
Arnaud Giersch [Fri, 7 Feb 2014 13:21:22 +0000 (14:21 +0100)]
Uncomment code, and fix meomry leaks in WorkstationVMHL13.

10 years agoFree memory in msg/cloud examples.
Arnaud Giersch [Fri, 7 Feb 2014 11:15:23 +0000 (12:15 +0100)]
Free memory in msg/cloud examples.

10 years agoSet path for command.
Arnaud Giersch [Fri, 7 Feb 2014 10:48:18 +0000 (11:48 +0100)]
Set path for command.

10 years agoCall getBound before unref on p_action.
Arnaud Giersch [Fri, 7 Feb 2014 10:28:45 +0000 (11:28 +0100)]
Call getBound before unref on p_action.

10 years agoAvoid useless strdup.
Arnaud Giersch [Fri, 7 Feb 2014 10:26:46 +0000 (11:26 +0100)]
Avoid useless strdup.

10 years agosimdata may already be freed at this point.
Arnaud Giersch [Fri, 7 Feb 2014 10:25:53 +0000 (11:25 +0100)]
simdata may already be freed at this point.

10 years agoInitialize ramsize, and simply use an assignment to copy struct.
Arnaud Giersch [Fri, 7 Feb 2014 10:09:11 +0000 (11:09 +0100)]
Initialize ramsize, and simply use an assignment to copy struct.

10 years agom_bound belongs to CpuAction; initialize it.
Arnaud Giersch [Fri, 7 Feb 2014 09:34:42 +0000 (10:34 +0100)]
m_bound belongs to CpuAction; initialize it.

10 years ago[mc] Fix sefault where a variable has no name
Gabriel Corona [Fri, 7 Feb 2014 14:44:15 +0000 (15:44 +0100)]
[mc] Fix sefault where a variable has no name

This happen when optimisation is enabled.

As the current code needs a name for the variable, we generate a fake
one. We might want to remove this assumption.

10 years agoRun test with --log=no_loc.
Arnaud Giersch [Fri, 7 Feb 2014 09:02:33 +0000 (10:02 +0100)]
Run test with --log=no_loc.

10 years agoMerge branch mc into mc-perf
Gabriel Corona [Fri, 7 Feb 2014 12:16:09 +0000 (13:16 +0100)]
Merge branch mc into mc-perf

10 years agofix bug waiting to happen and destroy some simulations or their results randomly...
Augustin Degomme [Fri, 7 Feb 2014 13:00:02 +0000 (14:00 +0100)]
fix bug waiting to happen and destroy some simulations or their results randomly (mainly with MC).

10 years ago[mc] Split address/location in dw_variable_t (which were in a union)
Gabriel Corona [Fri, 7 Feb 2014 11:45:28 +0000 (12:45 +0100)]
[mc] Split address/location in dw_variable_t (which were in a union)

10 years ago[mc] Fix segfaults when type->name==NULL
Gabriel Corona [Fri, 7 Feb 2014 10:56:08 +0000 (11:56 +0100)]
[mc] Fix segfaults when type->name==NULL

10 years ago[mc] Disable communication pattern code (segfault)
Gabriel Corona [Fri, 7 Feb 2014 10:55:50 +0000 (11:55 +0100)]
[mc] Disable communication pattern code (segfault)

10 years ago[mc] Remove dead code for ignoring variables
Gabriel Corona [Fri, 7 Feb 2014 08:50:09 +0000 (09:50 +0100)]
[mc] Remove dead code for ignoring variables

10 years ago[mc] Remove old hash code
Gabriel Corona [Fri, 7 Feb 2014 08:25:30 +0000 (09:25 +0100)]
[mc] Remove old hash code

10 years ago[mc] Avoid useless zero-initialisations in the hot spot
Gabriel Corona [Tue, 4 Feb 2014 13:33:57 +0000 (14:33 +0100)]
[mc] Avoid useless zero-initialisations in the hot spot

10 years ago[mc] Avoid type lookups and calls to get_type_description()
Gabriel Corona [Tue, 4 Feb 2014 12:34:53 +0000 (13:34 +0100)]
[mc] Avoid type lookups and calls to get_type_description()

Faster and cache-friendlier.

10 years ago[mc] Pass mc_object_info_t arguiments in many places intead of info->types
Gabriel Corona [Tue, 4 Feb 2014 12:00:52 +0000 (13:00 +0100)]
[mc] Pass mc_object_info_t arguiments in many places intead of info->types

Preparation to remove get_type_description() calls which are very
inneficient.

10 years ago[mc] Preprocess type lookup
Gabriel Corona [Tue, 4 Feb 2014 10:18:38 +0000 (11:18 +0100)]
[mc] Preprocess type lookup

Avoid looking up the types in the dictionnaries.

10 years ago[mc] Compute a single hash (64 bits) of the current state
Gabriel Corona [Tue, 21 Jan 2014 11:25:30 +0000 (12:25 +0100)]
[mc] Compute a single hash (64 bits) of the current state

This is an attempt to speedup state comparison by using
a very fast first pass.

Compared to previous attempt:

* use a simple 64 bits djb2 hash instead of SHA-1;
* add has much info as possible into the hash;
* do not add anything suspicious;
* it could be used for efficient state comparison
  * index for hashtable,
  * cache-friendly data-structure.

10 years agoUse the result of sprintf, instead of computing strlen again.
Arnaud Giersch [Thu, 6 Feb 2014 11:06:04 +0000 (12:06 +0100)]
Use the result of sprintf, instead of computing strlen again.

10 years agoFix help message.
Arnaud Giersch [Thu, 6 Feb 2014 11:00:01 +0000 (12:00 +0100)]
Fix help message.

Error was introduced by commit a957a7eb7a096470feb367832c201b71b58ea51e.

10 years agofix some SMPI+MC bugs
Augustin Degomme [Thu, 6 Feb 2014 16:59:15 +0000 (17:59 +0100)]
fix some SMPI+MC bugs

10 years agoAdd script used as a basis to update copyright notices.
Arnaud Giersch [Wed, 5 Feb 2014 21:40:29 +0000 (22:40 +0100)]
Add script used as a basis to update copyright notices.

10 years agoAdd/update copyright notices.
Arnaud Giersch [Wed, 5 Feb 2014 15:14:07 +0000 (16:14 +0100)]
Add/update copyright notices.

All source files (C, C++, Java, Fortran, Perl, Ruby, Lua, Python, Sh)
should be updated by this commit.

Note however that the following directories (and their subdirectories)
were not considered:
  ./buildtools/jenkins/
  ./buildtools/pipol/
  ./examples/smpi/NAS/
  ./teshsuite/smpi/mpich3-test/

Use: git grep -L 'Copyright.*SimGrid'
to list the files remaining without copyright notice.

10 years agoWrite error messages on stderr.
Arnaud Giersch [Wed, 5 Feb 2014 10:13:46 +0000 (11:13 +0100)]
Write error messages on stderr.

10 years agoremove tests to avoid spending too much time testing this again and again. Saves...
Augustin Degomme [Tue, 4 Feb 2014 16:37:34 +0000 (17:37 +0100)]
remove tests to avoid spending too much time testing this again and again. Saves one minute at least

10 years agoallow replay to handle -1 as a value for the size of a receive.
Augustin Degomme [Tue, 4 Feb 2014 16:01:06 +0000 (17:01 +0100)]
allow replay to handle -1 as a value for the size of a receive.
The real size will be determined by probing the first incoming message from the sender.
This is used to keep compatibility with tools that don't store the size on receiver's size

10 years agoavoid changing smpi process index to handle finalization, as this lead to problems
Augustin Degomme [Tue, 4 Feb 2014 15:58:08 +0000 (16:58 +0100)]
avoid changing smpi process index to handle finalization, as this lead to problems

10 years agoensure processes are still alive before altering their communications from another one
Augustin Degomme [Tue, 4 Feb 2014 15:51:10 +0000 (16:51 +0100)]
ensure processes are still alive before altering their communications from another one

10 years agoFix cpu issues with VMs
Paul Bédaride [Tue, 4 Feb 2014 15:15:26 +0000 (16:15 +0100)]
Fix cpu issues with VMs

10 years ago[mc] Remove code for finding an array byte size
Gabriel Corona [Tue, 4 Feb 2014 09:18:59 +0000 (10:18 +0100)]
[mc] Remove code for finding an array byte size

This was useless as it was already handled by libdw dwarf_aggregate_size.

10 years ago[mc] Fix broken type in compare_heap_area_with_type
Gabriel Corona [Mon, 3 Feb 2014 11:09:25 +0000 (12:09 +0100)]
[mc] Fix broken type in compare_heap_area_with_type

10 years agoAlso remove include/simgrid.h on make uninstall.
Arnaud Giersch [Fri, 31 Jan 2014 16:40:33 +0000 (17:40 +0100)]
Also remove include/simgrid.h on make uninstall.

10 years agofix copyright template
Martin Quinson [Fri, 31 Jan 2014 20:39:53 +0000 (21:39 +0100)]
fix copyright template

10 years agoAdd simple vm tesh
Paul Bédaride [Fri, 31 Jan 2014 16:11:56 +0000 (17:11 +0100)]
Add simple vm tesh

10 years agoAdd c and tesh files for the new test
Paul Bédaride [Fri, 31 Jan 2014 15:43:48 +0000 (16:43 +0100)]
Add c and tesh files for the new test

10 years agoAdd RoutingEdge wrapper to manage vm not destroy
Paul Bédaride [Fri, 31 Jan 2014 15:31:13 +0000 (16:31 +0100)]
Add RoutingEdge wrapper to manage vm not destroy

10 years ago[mc] Enforce some assumption about the relationship of the compared areas in compare_...
Gabriel Corona [Mon, 20 Jan 2014 14:23:54 +0000 (15:23 +0100)]
[mc] Enforce some assumption about the relationship of the compared areas in compare_areas_with_type

Compare_areas_with_type expects that either :

 * both area are in the heap;
 * both area are in the current segment R/W segment.

Otherwise, it falls back to comparing pointers.

Changes to code to fail if both areas are not in the same segment

10 years ago[mc] Add comments to compare_areas_with_type
Gabriel Corona [Mon, 20 Jan 2014 13:43:31 +0000 (14:43 +0100)]
[mc] Add comments to compare_areas_with_type

10 years ago[mc] Do not ignore DW_TAG_const_type
Gabriel Corona [Mon, 20 Jan 2014 12:09:22 +0000 (13:09 +0100)]
[mc] Do not ignore DW_TAG_const_type

10 years ago[mc] In compare_global_variables only compare values in the R/W segment
Gabriel Corona [Mon, 20 Jan 2014 12:06:07 +0000 (13:06 +0100)]
[mc] In compare_global_variables only compare values in the R/W segment

The algorithme is only relevant if the variable is in the R/W segment
otherwise the resulting pointer will be broken and might result in a
SIGSEV.

This happen if we try to compare a pointer on the .rodata (such as
__FUNCTION__).

Values are supposed to be constant and we do not expect to find
pointers to something which is not reachable by the global variables.

10 years ago[mc] DRY in snapshot_compare
Gabriel Corona [Mon, 20 Jan 2014 10:21:43 +0000 (11:21 +0100)]
[mc] DRY in snapshot_compare

10 years ago[mc] Have a more complete/accurate view of an given object mapping in memory
Gabriel Corona [Mon, 20 Jan 2014 09:19:38 +0000 (10:19 +0100)]
[mc] Have a more complete/accurate view of an given object mapping in memory

* Change the terminology (exec/rw instead of text/data)
  as we do not have information about the sections but only
  about the segments.

 * Add information about the read only segment.

10 years ago[mc] Fix element count computation for a givena array dimension
Gabriel Corona [Fri, 31 Jan 2014 10:58:07 +0000 (11:58 +0100)]
[mc] Fix element count computation for a givena array dimension

element_count = upper_bound - lower_bound + 1

and not

element_count = upper_bound - lower_bound

10 years ago[mc] Fix handling of location
Gabriel Corona [Wed, 29 Jan 2014 10:35:04 +0000 (11:35 +0100)]
[mc] Fix handling of location

The handling of member offsets was broken (DW_AT_data_member_location)
and was always 0.

Add support for the class of a given attribute value.

10 years ago[mc] Comment logging in order to fix the unit tests
Gabriel Corona [Mon, 20 Jan 2014 09:18:14 +0000 (10:18 +0100)]
[mc] Comment logging in order to fix the unit tests

10 years agoThe Debian package is actually libsimgrid-dev.
Arnaud Giersch [Fri, 31 Jan 2014 09:51:20 +0000 (10:51 +0100)]
The Debian package is actually libsimgrid-dev.

10 years agoFix warning about "min" and "max" being redefined in f2c.h.
Arnaud Giersch [Fri, 31 Jan 2014 09:37:53 +0000 (10:37 +0100)]
Fix warning about "min" and "max" being redefined in f2c.h.

10 years agoSlightly improve FindF2c.cmake.
Arnaud Giersch [Fri, 31 Jan 2014 09:00:28 +0000 (10:00 +0100)]
Slightly improve FindF2c.cmake.

* print diagnostic message after each step
* use LD_LIBRARY_PATH as a hint to find libf2c.so
* use the location of libf2c.so as a hint to find f2c.h

10 years agoReintroduce MC stuff lost by commit 11af893.
Arnaud Giersch [Thu, 30 Jan 2014 21:27:22 +0000 (22:27 +0100)]
Reintroduce MC stuff lost by commit 11af893.

10 years agoOnly install smpi scripts when support is available.
Arnaud Giersch [Thu, 30 Jan 2014 17:21:02 +0000 (18:21 +0100)]
Only install smpi scripts when support is available.