atomic {
depth = ((GlobalQuery)myWork).getDepth();
- max = this.maxDepth;
+ max = this.maxDepth;
maxSearch = this.maxSearchDepth;
}
atomic {
firstmachine = global new GlobalString(fm);
- firstpage = global new GlobalString("");;
+ firstpage = global new GlobalString("");
works = global new Work[NUM_THREADS];
qt = global new QueryTask[NUM_THREADS];
GlobalQueue todoList = global new GlobalQueue();
DistributedHashMap visitedList = global new DistributedHashMap(500, 500, 0.75f);
+ //DistributedHashMap visitedList = global new DistributedHashMap(500, 0.75f);
DistributedHashMap results = global new DistributedHashMap(100, 100, 0.75f);
+ //DistributedHashMap results = global new DistributedHashMap(100, 0.75f);
DistributedLinkedList results_list = global new DistributedLinkedList();
todoList.push(firstquery);
-128.195.180.21
-128.195.180.26
-#128.195.180.24
-#128.195.136.162
-#128.195.136.163
-#128.195.136.164
+128.195.136.162
+128.195.136.163
+128.195.136.164
+128.195.136.165
+128.195.136.166
+128.195.136.167
+128.195.136.168
+128.195.136.169
SRC1=${MAINCLASS}.java
SRC2=Global${SUBCLASS}.java
SRC3=${SUBCLASS}Task.java
-FLAGS= -recoverystats -recovery -dsmcaching -dsm -dsmtask -optimize -mainclass ${MAINCLASS}
+FLAGS=-recoverystats -recovery -transstats -dsmcaching -dsm -dsmtask -debug -nooptimize -mainclass ${MAINCLASS}
+DSMFLAGS=-dsm -dsmtask -sandbox -transstats -debug -nooptimize -mainclass ${MAINCLASS}
default:
- ../../../../buildscript ${FLAGS} -o ${MAINCLASS} ${SRC2} ${SRC3} ${SRC1}
+# ../../../../buildscript ${FLAGS} -o ${MAINCLASS} ${SRC2} ${SRC3} ${SRC1}
+ ../../../../buildscript ${DSMFLAGS} -o ${MAINCLASS}DSM ${SRC2} ${SRC3} ${SRC1}
clean:
rm -rf tmpbuilddirectory
//Prefetch tuning paramters
//#define RETRYINTERVAL 20 //N (For Em3d, SOR, Moldyn benchmarks)
//#define SHUTDOWNINTERVAL 3 //M
-#define RETRYINTERVAL 100 //N (For MatrixMultiply, 2DFFT, 2DConv benchmarks)
-#define SHUTDOWNINTERVAL 1 //M
+#define RETRYINTERVAL 1 //N (For MatrixMultiply, 2DFFT, 2DConv benchmarks)
+#define SHUTDOWNINTERVAL 75 //M
#define NUM_TRY_TO_COMMIT 2
#define MEM_ALLOC_THRESHOLD 20485760//20MB
char msg[1+ 2 * sizeof(unsigned int) + sizeof(unsigned short)];
int sd;
struct sockaddr_in remoteAddr;
- int bytesSent;
+ //int bytesSent;
int size;
int i = 0;
return memory+tailoffset+sizeof(int);
}
+
int numavailable() {
int tmp=tailoffset;
int available=0;
void handle();
extern pfcstats_t *evalPrefetch;
+/*
void transStatsHandler(int sig, siginfo_t* info, void *context) {
#ifdef TRANSSTATS
char filepath[200], exectime[10];
exit(0);
#endif
}
+*/
-/*
void transStatsHandler(int sig, siginfo_t* info, void *context) {
#ifdef TRANSSTATS
printf("****** Transaction Stats ******\n");
exit(0);
#endif
}
-*/
void handle() {
#ifdef TRANSSTATS
return max;
}
-//#define INLINEPREFETCH
+#define INLINEPREFETCH
#define PREFTHRESHOLD 0
/* This function is a prefetch call generated by the compiler that
* Sends a transrequest() to each remote machines for objects found remotely
* and calls handleLocalReq() to process objects found locally */
int transCommit() {
- char buffer[30];
+ //char buffer[30];
unsigned int tot_bytes_mod, *listmid;
plistnode_t *pile, *pile_ptr;
char treplyretry; /* keeps track of the common response that needs to be sent */
/* wait a random amount of time before retrying to commit transaction*/
if(treplyretry) {
treplyretryCount++;
- if(treplyretryCount >= NUM_TRY_TO_COMMIT)
- exponentialdelay();
- else
+ // if(treplyretryCount >= NUM_TRY_TO_COMMIT)
+ // exponentialdelay();
+ // else
randomdelay();
#ifdef TRANSSTATS
nSoftAbort++;
int sock;
struct sockaddr_in remoteAddr;
char msg[1 + sizeof(unsigned int)];
- int bytesSent;
+ //int bytesSent;
int status;
if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
struct sockaddr_in remoteAddr;
char msg[1 + numoid * (sizeof(unsigned short) + sizeof(unsigned int)) + 3 * sizeof(unsigned int)];
char *ptr;
- int bytesSent;
+ //int bytesSent;
int status, size;
unsigned short version;
unsigned int oid,mid;
unsigned int mid;
struct sockaddr_in remoteAddr;
char msg[1 + sizeof(unsigned short) + 2*sizeof(unsigned int)];
- int sock, status, size, bytesSent;
+ int sock, status, size;
+ //int bytesSent;
while(*head != NULL) {
ptr = *head;