Why do you want to be able to flush all changed files to disk? MonetDB already does flushes when they are needed for transaction support. I don't think we need to tell the kernel to synchronize any other files with the disk. This function doesn't do anything with memory management within the process. Furthermore, this function is not available on Windows. Martin Kersten wrote:
Update of /cvsroot/monetdb/MonetDB5/src/modules/kernel In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv20459
Modified Files: unix.mx Log Message: We want to experiment with complete flushing memory in out of memory queries.
U unix.mx Index: unix.mx =================================================================== RCS file: /cvsroot/monetdb/MonetDB5/src/modules/kernel/unix.mx,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- unix.mx 7 Jan 2009 14:15:12 -0000 1.24 +++ unix.mx 27 Jul 2009 06:29:44 -0000 1.25 @@ -35,6 +35,10 @@ address UNIXsetenv comment "Set the environment variable string.";
+command sync() :void +address UNIXsync +comment "Flush memory, expensive but sometimes needed"; + @- Implementation The remainder is a straight forward mapping to the underlying facilities @@ -113,4 +117,10 @@ return MAL_SUCCEED; }
+unix_export str UNIXsync(int *res); +str UNIXsync(int *res){ + (void) res; + sync(); + return MAL_SUCCEED; +} @}
------------------------------------------------------------------------------ _______________________________________________ Monetdb-checkins mailing list Monetdb-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-checkins
-- Sjoerd Mullender