X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4473af9870e4f9046aa96524876d84cd219dd973..90f50bba185f1c86225aa498dcc3a01c9080b52b:/src/simix/smx_context.cpp diff --git a/src/simix/smx_context.cpp b/src/simix/smx_context.cpp index b947a6b749..2edefd4031 100644 --- a/src/simix/smx_context.cpp +++ b/src/simix/smx_context.cpp @@ -184,7 +184,12 @@ void *SIMIX_context_stack_new() #ifndef _WIN32 if (mprotect(stack, smx_context_guard_size, PROT_NONE) == -1) { - xbt_die("Failed to protect stack %p: %s", stack, strerror(errno)); + 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