X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9c92907fc7a130fd6abc60b98791daa320742ba2..a4ab179f11ae2afec1467c4ca9256fc5ba6fa85b:/src/simix/smx_context.cpp diff --git a/src/simix/smx_context.cpp b/src/simix/smx_context.cpp index 0238f90c51..2edefd4031 100644 --- a/src/simix/smx_context.cpp +++ b/src/simix/smx_context.cpp @@ -184,9 +184,13 @@ void *SIMIX_context_stack_new() #ifndef _WIN32 if (mprotect(stack, smx_context_guard_size, PROT_NONE) == -1) { - xbt_die("Failed to protect stack: %s", strerror(errno)); - /* This is fatal. We are going to fail at some point when - we tryi reusing this. */ + xbt_die( + "Failed to protect stack: %s.\n" + "If you are running a lot of actors, you may be exceeding the amount of mappings allowed per process.\n" + "On Linux systems, change this value with sudo sysctl -w vm.max_map_count=newvalue (default value: 65536)\n" + "Please see http://simgrid.gforge.inria.fr/simgrid/latest/doc/html/options.html#options_virt for more info.", + strerror(errno)); + /* This is fatal. We are going to fail at some point when we try reusing this. */ } #endif stack = (char *)stack + smx_context_guard_size;