Changeset: 8b55beb76489 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8b55beb76489
Modified Files:
monetdb5/optimizer/opt_mitosis.c
Branch: Sep2022
Log Message:
Restore use of multiple of threads to determine nr of pieces in mitosis.
diffs (21 lines):
diff --git a/monetdb5/optimizer/opt_mitosis.c b/monetdb5/optimizer/opt_mitosis.c
--- a/monetdb5/optimizer/opt_mitosis.c
+++ b/monetdb5/optimizer/opt_mitosis.c
@@ -173,7 +173,7 @@ OPTmitosisImplementation(Client cntxt, M
else {
memclaim= MCmemoryClaim();
if(memclaim == GDK_mem_maxsize){
- m = GDK_mem_maxsize / (size_t) MAL_MAXCLIENTS
/ argsize;
+ m = GDK_mem_maxsize / (size_t)
MCactiveClients() / argsize;
} else
m = (GDK_mem_maxsize - memclaim) / argsize;
}
@@ -197,7 +197,7 @@ OPTmitosisImplementation(Client cntxt, M
} else if (rowcnt > MINPARTCNT) {
/* exploit parallelism, but ensure minimal partition size to
* limit overhead */
- pieces = MIN((int) ceil((double)rowcnt / MINPARTCNT),
threads);
+ pieces = MIN((int) ceil((double)rowcnt / MINPARTCNT), 4
* threads);
}
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]