Hi, Martin We are doing some research on how MonetDB will perform on multi-core machines. So, in the first place, we would like to understand how MonetDB utilize multiple threads to process a query. According to you, M5/SQL with dataflow optimizer forks multiple threads to process a single query plan. To activate dataflow optimizer, do I use flag "--enable-optimize" when I build M5? Do you know what files I may look at to get a overall view of the thread implementation? Thanks a lot. Xiang Martin Kersten wrote:
xxiao wrote:
Hi,
does anyone know whether there is any doc on how the server is implemented in Pthreads, such as how many threads are forked and what job each different thread is responsible for?
The source is the most complete documentation in this ;) The number of threads depend on the back end used and the advice coming from the frontends.
In the M5/SQL setting each client connection receives its own thread of control. Within a single query plan multiple threads of control may become active when the dataflow optimizer is activated.
There is one thread awaiting connection requests and a separate thread to flush memory.
Please explain what you plan to do in this area.
regards, Martin
Thanks a lot.
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- View this message in context: http://www.nabble.com/MonetDB-server-thread-architecture-tp20134440p20137113... Sent from the monetdb-users mailing list archive at Nabble.com.