COREPROFOVERFLOW= #-coreprof-checkoverflow
-USECOREPROF= #coreprof $(COREPROFOVERFLOW) \
+USECOREPROF= #-coreprof $(COREPROFOVERFLOW) \
-coreprof-eventwords 1024*1024*128 \
-coreprof-enable cpe_main \
-coreprof-enable cpe_runmalloc \
-coreprof-enable cpe_taskexecute \
- -coreprof-enable cpe_taskdispatch
+ -coreprof-enable cpe_taskdispatch \
+ -coreprof-enable cpe_poolalloc
# -coreprof-enable cpe_preparememq
# -coreprof-enable cpe_runfree \
# -coreprof-enable cpe_count_poolalloc \
#!/bin/sh
-time ./JGFSORBenchSizeDp.bin
+time numactl --interleave=all ./JGFSORBenchSizeDp.bin
}
-
-
// allocate the space for this record
output.println( "#ifndef OOO_DISABLE_TASKMEMPOOL" );
+
+ output.println( "#ifdef CP_EVENTID_POOLALLOC");
+ output.println( " CP_LOGEVENT( CP_EVENTID_POOLALLOC, CP_EVENTTYPE_BEGIN );");
+ output.println( "#endif");
if( (state.MLP && fsen != mlpa.getMainSESE()) ||
(state.OOOJAVA && fsen != oooa.getMainSESE())
) {
-
- //output.println(" CP_LOGEVENT( CP_EVENTID_DEBUG_B, CP_EVENTTYPE_BEGIN );");
output.println(" "+
fsen.getSESErecordName()+"* seseToIssue = ("+
fsen.getSESErecordName()+"*) poolalloc( runningSESE->taskRecordMemPool );");
- //output.println(" CP_LOGEVENT( CP_EVENTID_DEBUG_B, CP_EVENTTYPE_END );");
-
} else {
output.println(" "+
fsen.getSESErecordName()+"* seseToIssue = ("+
fsen.getSESErecordName()+"*) mlpAllocSESErecord( sizeof( "+
fsen.getSESErecordName()+" ) );");
}
+ output.println( "#ifdef CP_EVENTID_POOLALLOC");
+ output.println( " CP_LOGEVENT( CP_EVENTID_POOLALLOC, CP_EVENTTYPE_END );");
+ output.println( "#endif");
+
output.println( "#else // OOO_DISABLE_TASKMEMPOOL" );
output.println(" "+
fsen.getSESErecordName()+"* seseToIssue = ("+
-
-
// set up the SESE in-set and out-set objects, which look
// like a garbage list
output.println(" struct garbagelist * gl= (struct garbagelist *)&(((SESEcommon*)(seseToIssue))[1]);");
#define CP_EVENTID_RUNFREE 0x11
#endif
+#ifdef cpe_poolalloc
+#define CP_EVENTID_POOLALLOC 0x14
+#endif
+
#ifdef cpe_count_poolalloc
#define CP_EVENTID_COUNT_POOLALLOC 0x15
#endif
echo -coreprof-eventwords NUM, space in words/thread for coreprof events
echo -coreprof-checkoverflow, ONLY use for debugging event overflow
echo -coreprof-enable EVENTNAME, only enable desired events to reduce overhead
-echo EVENTNAME can be: cpe_main, cpe_runmalloc, cpe_runfree, cpe_count_poolalloc, cpe_count_poolreuse, cpe_workschedgrab, cpe_taskdispatch, cpe_preparememq, cpe_taskexecute, cpe_taskretire, cpe_taskstallvar, cpe_taskstallmem
+echo EVENTNAME can be: cpe_main, cpe_runmalloc, cpe_runfree, cpe_poolalloc, cpe_count_poolalloc, cpe_count_poolreuse, cpe_workschedgrab, cpe_taskdispatch, cpe_preparememq, cpe_taskexecute, cpe_taskretire, cpe_taskstallvar, cpe_taskstallmem
echo "-ooojava <numberofcores> <maxseseage>"
echo -ooodebug general OOOJava debugging messages
echo -ooodebug-disable-task-mem-pool this is a tricky module, disable for simpler runtime