Changeset: 0524c89354a2 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0524c89354a2
Modified Files:
        monetdb5/extras/crackers/crackers_select_ops.mx
        monetdb5/extras/crackers/crackers_selectholpl_ops.mx
        monetdb5/mal/mal_profiler.c
Branch: holindex
Log Message:

Minor changes for experimental analysis.


diffs (105 lines):

diff --git a/monetdb5/extras/crackers/crackers_select_ops.mx 
b/monetdb5/extras/crackers/crackers_select_ops.mx
--- a/monetdb5/extras/crackers/crackers_select_ops.mx
+++ b/monetdb5/extras/crackers/crackers_select_ops.mx
@@ -949,7 +949,7 @@ CRKRangeLeftNilTree_@1(int *vid, int *bi
                if (gapH>0) addCrackerIndex_@1(m,hgh,HBound,vh,c);
                vl = BUNfirst(b);
                pieces=pieces+2;
-               fprintf(ofp,"%d\n",pieces);
+               fprintf(ofp,"%d \t %d\n",*bid,pieces);
                fclose(ofp);
                BBPincref(b->batCacheid,TRUE);
                BBPunfix(bo->batCacheid);
@@ -1003,7 +1003,7 @@ CRKRangeLeftNilTree_@1(int *vid, int *bi
        }       
        else
                vh = ch2;
-       fprintf(ofp,"%d\n",pieces);
+       fprintf(ofp,"%d \t %d\n",*bid,pieces);
        fclose(ofp);
        
        @:CreateResult()@
diff --git a/monetdb5/extras/crackers/crackers_selectholpl_ops.mx 
b/monetdb5/extras/crackers/crackers_selectholpl_ops.mx
--- a/monetdb5/extras/crackers/crackers_selectholpl_ops.mx
+++ b/monetdb5/extras/crackers/crackers_selectholpl_ops.mx
@@ -223,7 +223,7 @@ CRKrandomholpl_@1(int *bid, bit *inclusi
                exit(1);
        }
 
-       L1=32000/ATOMsize(TYPE_@1);
+       L1=512000/ATOMsize(TYPE_@1);
 
        ofp = fopen(outputFilename1,"a");
        if (ofp == NULL) {
@@ -536,7 +536,7 @@ createView:
                exit(1);
        }
 
-       L1=32000/ATOMsize(TYPE_@1);
+       L1=512000/ATOMsize(TYPE_@1);
 
        ofp = fopen(outputFilename1,"a");
        if (ofp == NULL) {
@@ -1399,7 +1399,7 @@ CRKRangeLeftNilTree_@1(int *vid, int *bi
                exit(1);
        }
 
-       L1=32000/ATOMsize(TYPE_@1);
+       L1=512000/ATOMsize(TYPE_@1);
        
        mod_bid=ABS(*bid)%LOCKS;
 
@@ -1634,7 +1634,7 @@ CRKRangeRightNilTree_@1(int *vid, int *b
                exit(1);
        }
 
-       L1=32000/ATOMsize(TYPE_@1);
+       L1=512000/ATOMsize(TYPE_@1);
 
        mod_bid=ABS(*bid)%LOCKS;
 
diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c
--- a/monetdb5/mal/mal_profiler.c
+++ b/monetdb5/mal/mal_profiler.c
@@ -1357,8 +1357,8 @@ void HeartbeatCPUload(void *arg)
        float load;
        int n=0;  /*number of idle cores*/
        double N=0;  /*number of busy cores*/
-       FILE *ofp;
-        char *outputFilename1 = 
"/scratch/petraki/experiments/multiple_clients_cputhreshold/breakdown1/load.txt";
+       //FILE *ofp;
+        //char *outputFilename1 = 
"/scratch/petraki/experiments/multiple_clients_cputhreshold/breakdown1/load.txt";
        void (*IdleFunc)(void *) = arg;
 
 
@@ -1370,11 +1370,11 @@ void HeartbeatCPUload(void *arg)
                threshold = atoi(p);
                max_threads=atoi(cores);
        }
-       ofp = fopen(outputFilename1,"a");
+       /*ofp = fopen(outputFilename1,"a");
         if (ofp == NULL) {
                 fprintf(stderr, "Can't open output file!\n");
                 exit(1);
-        }
+        }*/
 
        if (max_threads > 0){
                while(1){
@@ -1386,14 +1386,14 @@ void HeartbeatCPUload(void *arg)
                                if(n>0)
                                        MRschedule(n, NULL, IdleFunc);
                                (void) getCPULoad(cpuload);
-                               fprintf(ofp,"%f\t%d\n",load,n);
+                               //fprintf(ofp,"%f\t%d\n",load,n);
                                MT_sleep_ms(1000);
                        }
                        else
                                 MT_sleep_ms(1000);
                }
        }
-       fclose(ofp);
+       //fclose(ofp);
 }
 
 // Give users the option to check for the system total load between two heart 
beats
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to