Changeset: 1561fd29d5ff for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1561fd29d5ff
Modified Files:
        monetdb5/mal/mal_recycle.c
Branch: default
Log Message:

Be a little bit more aggressive
in removing old instructions from the cache.


diffs (16 lines):

diff --git a/monetdb5/mal/mal_recycle.c b/monetdb5/mal/mal_recycle.c
--- a/monetdb5/mal/mal_recycle.c
+++ b/monetdb5/mal/mal_recycle.c
@@ -254,8 +254,11 @@ int chooseVictims(Client cntxt, int *lea
                                        break;
                                }
                        } else break; 
-       } else
+       } else{
                i=1;    /* at least one instruction removed */
+               if ( ltop > 20) /* reduce 5% of the pool */
+                       i = ltop/20;
+       }
 #ifdef _DEBUG_CACHE_
                mnstr_printf(cntxt->fdout,"#To be evicted based on space %d and 
time %5.2f\n" ,i, ((double)recycleSearchTime) / recycleSearchCalls);
                mnstr_printf(cntxt->fdout,"#leaf[%d], cheap benefit %6.2f\n" 
,leaves[0], recycleProfit2(leaves[0]));
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to