Changeset: ef29c5917e97 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ef29c5917e97
Modified Files:
        monetdb5/optimizer/opt_mitosis.c
Branch: Sep2022
Log Message:

small change of the mitosis partitioning, new code seems more, how it was 
intended, ie each round (using all cores) should
fit in memory.


diffs (17 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
@@ -181,11 +181,11 @@ OPTmitosisImplementation(Client cntxt, M
                        /* the number of pieces affects SF-100, going beyond 8x 
increases
                         * the optimizer costs beyond the execution time
                         */
-                       pieces = 4 * (int) ceil((double)rowcnt / m / threads);
+                       pieces = threads * ((int) ceil((double)rowcnt / m));
                } else if (rowcnt > MINPARTCNT) {
                /* exploit parallelism, but ensure minimal partition size to
                 * limit overhead */
-                       pieces = 4 * (int) ceil(MIN((double)rowcnt / 
MINPARTCNT, threads));
+                       pieces = MIN((int) ceil((double)rowcnt / MINPARTCNT), 
threads);
                }
        }
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to