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

make mal_parallelism grow linearly with GDKnr_threads

Before we forget it, I implement what I suggested in the log message
of changeset 552e730a8fd0.


diffs (16 lines):

diff --git a/monetdb5/mal/mal.c b/monetdb5/mal/mal.c
--- a/monetdb5/mal/mal.c
+++ b/monetdb5/mal/mal.c
@@ -234,7 +234,11 @@ int mal_init(void){
        MT_lock_init( &mal_profileLock, "mal_profileLock");
        MT_lock_init( &mal_copyLock, "mal_copyLock");
        MT_lock_init( &mal_delayLock, "mal_delayLock");
-       MT_sema_init( &mal_parallelism, (GDKnr_threads > 1 ? GDKnr_threads/2: 
4), "mal_parallelism");
+       /* "/2" is arbitrarily used / chosen, as on systems with
+        * hyper-threading enabled, using all hardware threads rather than
+        * "only" all physical cores does not necessarily yield a linear
+        * performance benefit */
+       MT_sema_init( &mal_parallelism, (GDKnr_threads > 1 ? GDKnr_threads/2: 
1), "mal_parallelism");
 
        tstAligned();
        MCinit();
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to