Changeset: cf2ff66d08fa for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cf2ff66d08fa
Modified Files:
        gdk/gdk_utils.mx
Branch: Dec2011
Log Message:

GDKinit: reduce GDK_mmap_minsize & GDK_mem_bigsize by number of threads

With T concurrent threads, we reduce GDK_mmap_minsize & GDK_mem_bigsize
by 1/T such that the combined size does not exceed physical memory.


diffs (12 lines):

diff --git a/gdk/gdk_utils.mx b/gdk/gdk_utils.mx
--- a/gdk/gdk_utils.mx
+++ b/gdk/gdk_utils.mx
@@ -1755,7 +1755,7 @@ GDKinit(opt *set, int setlen)
 #else
        /* WARNING: This unconditionally overwrites above settings, */
        /* incl. setting via MonetDB env. var. "gdk_mmap_minsize" ! */
-       GDK_mmap_minsize = GDK_mem_bigsize = MIN( 1<<30 , 
(GDK_mem_maxsize_max/6) );
+       GDK_mmap_minsize = GDK_mem_bigsize = MIN( 1<<30 , 
(GDK_mem_maxsize_max/6) / (GDKnr_threads ? GDKnr_threads : 1) );
        /*    per op:  2 args + 1 res, each with head & tail  =>  (2+1)*2 = 6  
^ */
 #endif
 
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to