[Monetdb-developers] [Monetdb-checkins] MonetDB5/src/modules/kernel unix.mx, , 1.24, 1.25

Sjoerd Mullender sjoerd at acm.org
Tue Jul 28 10:49:27 CEST 2009


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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-checkins


-- 
Sjoerd Mullender

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 369 bytes
Desc: OpenPGP digital signature
URL: <http://www.monetdb.org/pipermail/developers-list/attachments/20090728/884e453e/attachment.sig>


More information about the developers-list mailing list