outmethod.println("printf(\"nmhashSearch= %d\\n\", nmhashSearch);");
outmethod.println("printf(\"nprehashSearch= %d\\n\", nprehashSearch);");
outmethod.println("printf(\"nRemoteReadSend= %d\\n\", nRemoteSend);");
+ outmethod.println("printf(\"getResponse= %d\\n\", getResponse);");
outmethod.println("printf(\"bytesSent= %d\\n\", bytesSent);");
outmethod.println("printf(\"bytesRecv= %d\\n\", bytesRecv);");
} else if (state.SINGLETM) {
outclassdefs.print("extern int nmhashSearch;\n");
outclassdefs.print("extern int nprehashSearch;\n");
outclassdefs.print("extern int nRemoteSend;\n");
+ outclassdefs.print("extern int getResponse;\n");
outclassdefs.print("extern int bytesSent;\n");
outclassdefs.print("extern int bytesRecv;\n");
outclassdefs.print("extern void handle();\n");
// will fail in odd subtle ways
#define DEFAULT_OBJ_STORE_SIZE (4194304-16) //just a little less the 4MB
-#define PREFETCH_FLUSH_THRESHOLD 10 //MINIMUM SIZE BEFORE FLUSHING
+#define PREFETCH_FLUSH_THRESHOLD 20 //MINIMUM SIZE BEFORE FLUSHING
#define STALL_THRESHOLD 15 //number of prefetches stores before we can start freeing old ones
}
// Search for an address for a given oid
-void *prehashSearch(unsigned int key) {
+INLINE void *prehashSearch(unsigned int key) {
int index;
prehashlistnode_t *ptr, *node;