diff --git a/benchmarks/benchmarks/StressTestMalloc/memaccesstest.c b/benchmarks/benchmarks/StressTestMalloc/memaccesstest.c index 7693bab..3296b61 100644 --- a/benchmarks/benchmarks/StressTestMalloc/memaccesstest.c +++ b/benchmarks/benchmarks/StressTestMalloc/memaccesstest.c @@ -20,8 +20,8 @@ All rights reserved. #include "malloc.h" -// #define malloc MALLOCCHERI -// #define free FREECHERI +#define malloc MALLOCCHERI +#define free FREECHERI @@ -267,7 +267,7 @@ void * walk(void *param) int main(int argc,char **argv) { clock_t tic = clock(); -// INITREGULARALLOC(); +INITREGULARALLOC(); //#ifdef DEBUG printf("DEBUG:sizeof(struct l)=%ld\n",sizeof(struct l)); // #endif @@ -275,7 +275,7 @@ clock_t tic = clock(); unsigned long working_set_size; int i; struct thread_start_data *tdata; - + pthread_t threads[NTHREADS]; root=malloc(MAX_WSS/sizeof(struct l) * sizeof(struct l)); diff --git a/benchmarks/benchmarks/StressTestMalloc/memaccesstest.sh b/benchmarks/benchmarks/StressTestMalloc/memaccesstest.sh index e663370..153f0f0 100644 --- a/benchmarks/benchmarks/StressTestMalloc/memaccesstest.sh +++ b/benchmarks/benchmarks/StressTestMalloc/memaccesstest.sh @@ -1,5 +1,5 @@ # sh build.sh -LD_PRELOAD=/home/akilan/Alloc-Test/Reverse/CHERI-Allocator/bin/libjemalloc.so time pmcstat -d -w 1 -p l1d_tlb_rd -p l2d_tlb_rd -p l1d_tlb_refill -p cpu_cycles -p dtlb_walk -p stall_backend -p ll_cache_miss_rd -o memaccesstest-cheri-32000.stat ./memaccesstest.out -LD_PRELOAD=/home/akilan/Alloc-Test/Reverse/CHERI-Allocator/bin/regularjemalloc.so time pmcstat -d -w 1 -p l1d_tlb_rd -p l2d_tlb_rd -p l1d_tlb_refill -p cpu_cycles -p dtlb_walk -p stall_backend -p ll_cache_miss_rd -o memaccesstest-regular-32000.stat ./memaccesstest.out +# LD_PRELOAD=/home/akilan/Alloc-Test/Reverse/CHERI-Allocator/bin/libjemalloc.so time pmcstat -d -w 1 -p l1d_tlb_rd -p l2d_tlb_rd -p l1d_tlb_refill -p cpu_cycles -p dtlb_walk -p stall_backend -p ll_cache_miss_rd -o memaccesstest-cheri-32000.stat ./memaccesstest.out +# LD_PRELOAD=/home/akilan/Alloc-Test/Reverse/CHERI-Allocator/bin/regularjemalloc.so time pmcstat -d -w 1 -p l1d_tlb_rd -p l2d_tlb_rd -p l1d_tlb_refill -p cpu_cycles -p dtlb_walk -p stall_backend -p ll_cache_miss_rd -o memaccesstest-regular-32000.stat ./memaccesstest.out -# time pmcstat -d -w 1 -p l1d_tlb_rd -p l2d_tlb_rd -p l1d_tlb_refill -p cpu_cycles -p dtlb_walk -p stall_backend -p ll_cache_miss_rd -o memaccesstest-huge-alloc-16000.stat ./memaccesstest.out \ No newline at end of file +time pmcstat -d -w 1 -p l1d_tlb_rd -p l2d_tlb_rd -p l1d_tlb_refill -p cpu_cycles -p dtlb_walk -p stall_backend -p ll_cache_miss_rd -o memaccesstest-huge-alloc-32000.stat ./memaccesstest.out \ No newline at end of file