3 ms·
Unfortunately some of this information is out of date and refers to Multicore with the concurrent minor collector - a collector we don't plan to upstream. We p
by sadiq 6y ago
Unfortunately some of this information is out of date and refers to Multicore with the concurrent minor collector - a collector we don't plan to upstream.
We plan to upstream the parallel minor collector, which has a shared minor heap across all domains. It maintains compatibility with the existing C API and seems to perform well.
You can find more information on both the concurrent minor collector and the parallel minor collector in the recent ICFP paper: https://dl.acm.org/doi/10.1145/3408995 https://dl.acm.org/doi/10.1145/3408995
You can also see KC's talk on the paper here: https://www.youtube.com/watch?v=ASX79I0jm6M&feature=youtu.be&t=6195 https://www.youtube.com/watch?v=ASX79I0jm6M&feature=youtu.be...
--
The TL;DR on Domains is that they're heavyweight threads. You essentially want as many as you have cores.
Our talk (separate to the one above) at the OCaml Workshop also covers a lot of the terminology and how to get started with Multicore today: https://www.youtube.com/watch?v=Z7YZR1q8wzI&list=PLKO_ZowsIOu5fHjRj0ua7_QWE_L789K_f&index=6&t=0s https://www.youtube.com/watch?v=Z7YZR1q8wzI&list=PLKO_ZowsIO...