From: jzhou Date: Fri, 2 Jul 2010 19:50:43 +0000 (+0000) Subject: set the shared mem as 16MB X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=590cab5929057584e4800faa58f8a4608624284b;p=IRC.git set the shared mem as 16MB --- diff --git a/Robust/src/Runtime/multicoregarbage.h b/Robust/src/Runtime/multicoregarbage.h index 76512210..997a646b 100644 --- a/Robust/src/Runtime/multicoregarbage.h +++ b/Robust/src/Runtime/multicoregarbage.h @@ -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; diff --git a/Robust/src/Runtime/multicoreruntime.h b/Robust/src/Runtime/multicoreruntime.h index e3a49174..1d584aa4 100644 --- a/Robust/src/Runtime/multicoreruntime.h +++ b/Robust/src/Runtime/multicoreruntime.h @@ -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