Changeset: 0a0c98c7a967 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0a0c98c7a967
Modified Files:
monetdb5/mal/mal_interpreter.mx
Branch: default
Log Message:
Also adjust based on sleeping workers
Both the actual resident memory and number of sleepers
determines the clock speed.
diffs (11 lines):
diff --git a/monetdb5/mal/mal_interpreter.mx b/monetdb5/mal/mal_interpreter.mx
--- a/monetdb5/mal/mal_interpreter.mx
+++ b/monetdb5/mal/mal_interpreter.mx
@@ -1154,6 +1154,7 @@ runDFLOWworker(void *t)
/* speed up wake up when we have memory
or too many sleepers */
factor = MT_getrss()/(MEMORY_THRESHOLD
* monet_memory);
delay = (long)( DELAYUNIT * (factor >
1.0 ? 1.0:factor));
+ delay = (long) (delay * (1.0 -
asleep/GDKnr_threads));
if ( delay)
MT_sleep_ms( delay );
clk -= DELAYUNIT;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list