Re: MonetDB: Feb2013 - Make MALresource independent of cntxt and mb
Any reason for undoing 0f30e64e9bb2? On 26-02-2013 14:52:15 +0100, Martin Kersten wrote:
Changeset: 33a1b7bfcb28 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=33a1b7bfcb28 Modified Files: monetdb5/mal/mal_dataflow.c monetdb5/mal/mal_interpreter.c monetdb5/mal/mal_resource.c monetdb5/mal/mal_resource.h Branch: Feb2013 Log Message:
Make MALresource independent of cntxt and mb
diffs (87 lines):
diff --git a/monetdb5/mal/mal_dataflow.c b/monetdb5/mal/mal_dataflow.c --- a/monetdb5/mal/mal_dataflow.c +++ b/monetdb5/mal/mal_dataflow.c @@ -328,13 +328,13 @@ DFLOWworker(void *t) } MT_lock_unset(&flow->flowlock, "MALworker");
+ q_enqueue(flow->done, fe); if ( fnxt == 0) { if (todo->last == 0) profilerHeartbeatEvent("wait"); else - MALresourceFairness(flow->cntxt, flow->mb, usec); + MALresourceFairness(usec); } - q_enqueue(flow->done, fe); } GDKfree(GDKerrbuf); GDKsetbuf(0);
-- Fabian Groffen fabian@monetdb.org column-store pioneer http://www.monetdb.org/Home
On 2013-02-26 14:57, Fabian Groffen wrote:
Any reason for undoing 0f30e64e9bb2?
MALresourceFairness can delay the calling thread for a long time, so you want the enqueue (sema up) to happen first.
On 26-02-2013 14:52:15 +0100, Martin Kersten wrote:
Changeset: 33a1b7bfcb28 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=33a1b7bfcb28 Modified Files: monetdb5/mal/mal_dataflow.c monetdb5/mal/mal_interpreter.c monetdb5/mal/mal_resource.c monetdb5/mal/mal_resource.h Branch: Feb2013 Log Message:
Make MALresource independent of cntxt and mb
diffs (87 lines):
diff --git a/monetdb5/mal/mal_dataflow.c b/monetdb5/mal/mal_dataflow.c --- a/monetdb5/mal/mal_dataflow.c +++ b/monetdb5/mal/mal_dataflow.c @@ -328,13 +328,13 @@ DFLOWworker(void *t) } MT_lock_unset(&flow->flowlock, "MALworker");
+ q_enqueue(flow->done, fe); if ( fnxt == 0) { if (todo->last == 0) profilerHeartbeatEvent("wait"); else - MALresourceFairness(flow->cntxt, flow->mb, usec); + MALresourceFairness(usec); } - q_enqueue(flow->done, fe); } GDKfree(GDKerrbuf); GDKsetbuf(0);
-- Sjoerd Mullender
Hi,
I would like to include "$(top_builddir)/monetdb5/modules/kernel/algebra.h in $(top_srcdir)/sql/server/rel_optimizer.h. I modified $(top_srcdir)/sql/server/Makefile.in. But, this file is generated during configuration.
Could you explain how I would modify the configuration script to include "$(top_builddir)/monetdb5/modules/kernel/" in the INCLUDES varialbe for sql/server?
Thanks in advance.
Chi
________________________________
From: Fabian Groffen
Changeset: 33a1b7bfcb28 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=33a1b7bfcb28 Modified Files: monetdb5/mal/mal_dataflow.c monetdb5/mal/mal_interpreter.c monetdb5/mal/mal_resource.c monetdb5/mal/mal_resource.h Branch: Feb2013 Log Message:
Make MALresource independent of cntxt and mb
diffs (87 lines):
diff --git a/monetdb5/mal/mal_dataflow.c b/monetdb5/mal/mal_dataflow.c --- a/monetdb5/mal/mal_dataflow.c +++ b/monetdb5/mal/mal_dataflow.c @@ -328,13 +328,13 @@ DFLOWworker(void *t) } MT_lock_unset(&flow->flowlock, "MALworker"); + q_enqueue(flow->done, fe); if ( fnxt == 0) { if (todo->last == 0) profilerHeartbeatEvent("wait"); else - MALresourceFairness(flow->cntxt, flow->mb, usec); + MALresourceFairness(usec); } - q_enqueue(flow->done, fe); } GDKfree(GDKerrbuf); GDKsetbuf(0);
-- Fabian Groffen fabian@monetdb.org column-store pioneer http://www.monetdb.org/Home _______________________________________________ developers-list mailing list developers-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/developers-list
What does this have to do with the message you're responding to? Please start a new email thread when you introduce a new subject. Just send mail to the mailing list with a proper subject. On 2013-03-04 18:04, Chi-Young Ku wrote:
Hi,
I would like to include "$(top_builddir)/monetdb5/modules/kernel/algebra.h in $(top_srcdir)/sql/server/rel_optimizer.h. I modified $(top_srcdir)/sql/server/Makefile.in. But, this file is generated during configuration.
Could you explain how I would modify the configuration script to include "$(top_builddir)/monetdb5/modules/kernel/" in the INCLUDES varialbe for sql/server?
Edit the file sql/server/Makefile.ag in the directory and add ../../monetdb5/modules/kernel to the list of INCLUDES. Then run ./bootstrap, and then the normal configure; make; make install.
Thanks in advance.
Chi
------------------------------------------------------------------------ *From:* Fabian Groffen
*To:* developers-list@monetdb.org *Sent:* Tuesday, February 26, 2013 8:57 AM *Subject:* Re: MonetDB: Feb2013 - Make MALresource independent of cntxt and mb Any reason for undoing 0f30e64e9bb2?
On 26-02-2013 14:52:15 +0100, Martin Kersten wrote:
Changeset: 33a1b7bfcb28 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=33a1b7bfcb28 Modified Files: monetdb5/mal/mal_dataflow.c monetdb5/mal/mal_interpreter.c monetdb5/mal/mal_resource.c monetdb5/mal/mal_resource.h Branch: Feb2013 Log Message:
Make MALresource independent of cntxt and mb
diffs (87 lines):
diff --git a/monetdb5/mal/mal_dataflow.c b/monetdb5/mal/mal_dataflow.c --- a/monetdb5/mal/mal_dataflow.c +++ b/monetdb5/mal/mal_dataflow.c @@ -328,13 +328,13 @@ DFLOWworker(void *t) } MT_lock_unset(&flow->flowlock, "MALworker");
+ q_enqueue(flow->done, fe); if ( fnxt == 0) { if (todo->last == 0) profilerHeartbeatEvent("wait"); else - MALresourceFairness(flow->cntxt, flow->mb, usec); + MALresourceFairness(usec); } - q_enqueue(flow->done, fe); } GDKfree(GDKerrbuf); GDKsetbuf(0);
-- Fabian Groffen fabian@monetdb.org mailto:fabian@monetdb.org column-store pioneer http://www.monetdb.org/Home _______________________________________________ developers-list mailing list developers-list@monetdb.org mailto:developers-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/developers-list
_______________________________________________ developers-list mailing list developers-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/developers-list
-- Sjoerd Mullender
Hi,
I would like to include "$(top_builddir)/monetdb5/modules/kernel/algebra.h in $(top_srcdir)/sql/server/rel_optimizer.h. I modified $(top_srcdir)/sql/server/Makefile.in. But, this file is generated during configuration.
Could you explain how I would modify the configuration script to include "$(top_builddir)/monetdb5/modules/kernel/" in the INCLUDES varialbe for sql/server?
Thanks in advance.
Chi
________________________________
From: Fabian Groffen
Changeset: 33a1b7bfcb28 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=33a1b7bfcb28 Modified Files: monetdb5/mal/mal_dataflow.c monetdb5/mal/mal_interpreter.c monetdb5/mal/mal_resource.c monetdb5/mal/mal_resource.h Branch: Feb2013 Log Message:
Make MALresource independent of cntxt and mb
diffs (87 lines):
diff --git a/monetdb5/mal/mal_dataflow.c b/monetdb5/mal/mal_dataflow.c --- a/monetdb5/mal/mal_dataflow.c +++ b/monetdb5/mal/mal_dataflow.c @@ -328,13 +328,13 @@ DFLOWworker(void *t) } MT_lock_unset(&flow->flowlock, "MALworker"); + q_enqueue(flow->done, fe); if ( fnxt == 0) { if (todo->last == 0) profilerHeartbeatEvent("wait"); else - MALresourceFairness(flow->cntxt, flow->mb, usec); + MALresourceFairness(usec); } - q_enqueue(flow->done, fe); } GDKfree(GDKerrbuf); GDKsetbuf(0);
-- Fabian Groffen fabian@monetdb.org column-store pioneer http://www.monetdb.org/Home _______________________________________________ developers-list mailing list developers-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/developers-list _______________________________________________ developers-list mailing list developers-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/developers-list
Quoting Sjoerd:
Edit the file sql/server/Makefile.ag in the directory and add
../../monetdb5/modules/kernel to the list of INCLUDES. Then run
./bootstrap, and then the normal configure; make; make install.
On Mon, Mar 4, 2013 at 7:29 PM, Chi-Young Ku
Hi,
I would like to include "$(top_builddir)/monetdb5/modules/kernel/algebra.h in $(top_srcdir)/sql/server/rel_optimizer.h. I modified $(top_srcdir)/sql/server/Makefile.in. But, this file is generated during configuration.
Could you explain how I would modify the configuration script to include "$(top_builddir)/monetdb5/modules/kernel/" in the INCLUDES varialbe for sql/server?
Thanks in advance.
Chi
________________________________ From: Fabian Groffen
To: developers-list@monetdb.org Sent: Tuesday, February 26, 2013 8:57 AM Subject: Re: MonetDB: Feb2013 - Make MALresource independent of cntxt and mb Any reason for undoing 0f30e64e9bb2?
On 26-02-2013 14:52:15 +0100, Martin Kersten wrote:
Changeset: 33a1b7bfcb28 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=33a1b7bfcb28 Modified Files: monetdb5/mal/mal_dataflow.c monetdb5/mal/mal_interpreter.c monetdb5/mal/mal_resource.c monetdb5/mal/mal_resource.h Branch: Feb2013 Log Message:
Make MALresource independent of cntxt and mb
diffs (87 lines):
diff --git a/monetdb5/mal/mal_dataflow.c b/monetdb5/mal/mal_dataflow.c --- a/monetdb5/mal/mal_dataflow.c +++ b/monetdb5/mal/mal_dataflow.c @@ -328,13 +328,13 @@ DFLOWworker(void *t) } MT_lock_unset(&flow->flowlock, "MALworker");
+ q_enqueue(flow->done, fe); if ( fnxt == 0) { if (todo->last == 0) profilerHeartbeatEvent("wait"); else - MALresourceFairness(flow->cntxt, flow->mb, usec); + MALresourceFairness(usec); } - q_enqueue(flow->done, fe); } GDKfree(GDKerrbuf); GDKsetbuf(0);
-- Fabian Groffen fabian@monetdb.org column-store pioneer http://www.monetdb.org/Home _______________________________________________ developers-list mailing list developers-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/developers-list
_______________________________________________ developers-list mailing list developers-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/developers-list
_______________________________________________ developers-list mailing list developers-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/developers-list
Thanks a lot!
Chi
________________________________
From: Lefteris
Hi,
I would like to include "$(top_builddir)/monetdb5/modules/kernel/algebra.h in $(top_srcdir)/sql/server/rel_optimizer.h. I modified $(top_srcdir)/sql/server/Makefile.in. But, this file is generated during configuration.
Could you explain how I would modify the configuration script to include "$(top_builddir)/monetdb5/modules/kernel/" in the INCLUDES varialbe for sql/server?
Thanks in advance.
Chi
________________________________ From: Fabian Groffen
To: developers-list@monetdb.org Sent: Tuesday, February 26, 2013 8:57 AM Subject: Re: MonetDB: Feb2013 - Make MALresource independent of cntxt and mb Any reason for undoing 0f30e64e9bb2?
On 26-02-2013 14:52:15 +0100, Martin Kersten wrote:
Changeset: 33a1b7bfcb28 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=33a1b7bfcb28 Modified Files: monetdb5/mal/mal_dataflow.c monetdb5/mal/mal_interpreter.c monetdb5/mal/mal_resource.c monetdb5/mal/mal_resource.h Branch: Feb2013 Log Message:
Make MALresource independent of cntxt and mb
diffs (87 lines):
diff --git a/monetdb5/mal/mal_dataflow.c b/monetdb5/mal/mal_dataflow.c --- a/monetdb5/mal/mal_dataflow.c +++ b/monetdb5/mal/mal_dataflow.c @@ -328,13 +328,13 @@ DFLOWworker(void *t) } MT_lock_unset(&flow->flowlock, "MALworker");
+ q_enqueue(flow->done, fe); if ( fnxt == 0) { if (todo->last == 0) profilerHeartbeatEvent("wait"); else - MALresourceFairness(flow->cntxt, flow->mb, usec); + MALresourceFairness(usec); } - q_enqueue(flow->done, fe); } GDKfree(GDKerrbuf); GDKsetbuf(0);
-- Fabian Groffen fabian@monetdb.org column-store pioneer http://www.monetdb.org/Home _______________________________________________ developers-list mailing list developers-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/developers-list
_______________________________________________ developers-list mailing list developers-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/developers-list
_______________________________________________ developers-list mailing list developers-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/developers-list
_______________________________________________ developers-list mailing list developers-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/developers-list
participants (4)
-
Chi-Young Ku
-
Fabian Groffen
-
Lefteris
-
Sjoerd Mullender