set the shared mem as 16MB
authorjzhou <jzhou>
Fri, 2 Jul 2010 19:50:43 +0000 (19:50 +0000)
committerjzhou <jzhou>
Fri, 2 Jul 2010 19:50:43 +0000 (19:50 +0000)
Robust/src/Runtime/multicoregarbage.h
Robust/src/Runtime/multicoreruntime.h

index 765122102fa85b6287dff35b9a910b69ff00cdc0..997a646b52fd73a15a89699cf4dc7111f9db6581 100644 (file)
@@ -12,9 +12,9 @@
 
 // data structures for GC
 #ifdef GC_DEBUG
-#define BAMBOO_SMEM_SIZE_L (BAMBOO_SMEM_SIZE * 2)
+#define BAMBOO_SMEM_SIZE_L (BAMBOO_SMEM_SIZE) // * 2)
 #else
-#define BAMBOO_SMEM_SIZE_L (2 * BAMBOO_SMEM_SIZE)
+#define BAMBOO_SMEM_SIZE_L (BAMBOO_SMEM_SIZE) // * 2)
 #endif
 #define BAMBOO_LARGE_SMEM_BOUND (BAMBOO_SMEM_SIZE_L*NUMCORES4GC)
 // let each gc core to have one big block, this is very important
@@ -115,7 +115,7 @@ void * gcmappingtbl[NUMCORESACTIVE][NUM_MAPPING];*/
 //                                  + NUMCORES4GC bamboo_rmsp
 // These three types of table are always reside at the bottom of the shared 
 // memory and will never be moved or garbage collected
-#define BAMBOO_RMSP_SIZE (BAMBOO_SMEM_SIZE * 45)
+#define BAMBOO_RMSP_SIZE (BAMBOO_SMEM_SIZE) // (45 * 16 * 1024)
 mspace bamboo_rmsp;
 // shared pointer mapping tbl
 //volatile struct GCSharedHash * gcsharedptbl;
index e3a49174633a12bffb39aa7a35f6ec007d7f78fa..1d584aa4b7d89c5067f1a20c14fbb18e29b8f608 100644 (file)
@@ -282,11 +282,11 @@ struct Queue * totransobjqueue; // queue to hold objs to be transferred
 #define BAMBOO_SMEM_SIZE (64 * 64) // (BAMBOO_PAGE_SIZE)
 #define BAMBOO_SHARED_MEM_SIZE ((BAMBOO_PAGE_SIZE) *(BAMBOO_NUM_PAGES))
 #else
-#define BAMBOO_NUM_PAGES (15 * 1024) //(64 * 4 * 0.75) //(1024 * 1024 * 3.5)  3G
-#define BAMBOO_PAGE_SIZE (16 * 1024) // * 1024)  // (4096)
-#define BAMBOO_SMEM_SIZE (16 * 1024)
-#define BAMBOO_SHARED_MEM_SIZE (1024 * 1024 * 240) //(1024 * 1024 * 1024)
-//(3.0 * 1024 * 1024 * 1024) // 3G// ((BAMBOO_PAGE_SIZE) * (BAMBOO_NUM_PAGES))
+#define BAMBOO_NUM_PAGES (256) //(15 * 1024) //(64 * 4 * 0.75) //(1024 * 1024 * 3.5)  3G
+#define BAMBOO_PAGE_SIZE (4 * 1024 * 1024)  // (4096)
+#define BAMBOO_SMEM_SIZE (4 * 1024 * 1024)
+#define BAMBOO_SHARED_MEM_SIZE (1024 * 1024 * 1024) //(1024 * 1024 * 240)
+//((unsigned long long int)(3.0 * 1024 * 1024 * 1024)) // 3G// ((BAMBOO_PAGE_SIZE) * (BAMBOO_NUM_PAGES))
 #endif // GC_DEBUG
 
 #ifdef MULTICORE_GC