added two conv-mach macros CMK_MMAP_PROBE and CMK_MMAP_TEST to control the default...
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 25 Feb 2011 18:59:42 +0000 (12:59 -0600)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 25 Feb 2011 18:59:42 +0000 (12:59 -0600)
another command line option +isomalloc_test to switch to testing method.

src/conv-core/isomalloc.c

index 394a0cd26425e13c6c7aeb743e9f7478b6480b5e..b6395c6c99497e8672185c4a77dfea9aac4b14bb 100644 (file)
@@ -2373,8 +2373,15 @@ void CmiIsomallocInit(char **argv)
     disable_isomalloc("isomalloc disabled by user.");
     return;
   }
-  if (CmiGetArgFlagDesc(argv,"+isomalloc_probe","mmap probe isomalloc region"))
+#if CMK_MMAP_PROBE
+  _mmap_probe = 1;
+#elif CMK_MMAP_TEST
+  _mmap_probe = 0;
+#endif
+  if (CmiGetArgFlagDesc(argv,"+isomalloc_probe","call mmap to probe the largest available isomalloc region"))
     _mmap_probe = 1;
+  if (CmiGetArgFlagDesc(argv,"+isomalloc_test","mmap test common areas for the largest available isomalloc region"))
+    _mmap_probe = 0;
   if (CmiGetArgFlagDesc(argv,"+isomalloc_sync","synchronize isomalloc region globaly"))
     _sync_iso = 1;
   init_comm(argv);