Update of /cvsroot/monetdb/MonetDB/src/gdk
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4965

Modified Files:
        gdk_utils.mx 
Log Message:
- lower the threshold for creation of mmap-backed heaps to 64MB

  this gives the advantage that if those are made persistent later,
  saving to disk is much cheaper. It makes the system also better
  resistent against swapping.

  For non-persistent bats, the performance difference should be small.
  That does not hold for Windows, as it will effectively materialize 
  a full file on disk before the mmap can be done (Linux and other Unixes
  just use a file with a hole whose creation is very cheap).

  Therefore, we retain the 1/3 of RAM limit for Windows.



Index: gdk_utils.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_utils.mx,v
retrieving revision 1.200
retrieving revision 1.201
diff -u -d -r1.200 -r1.201
--- gdk_utils.mx        11 Dec 2007 12:49:46 -0000      1.200
+++ gdk_utils.mx        14 Dec 2007 13:18:50 -0000      1.201
@@ -1476,7 +1476,11 @@
 
        /* Mserver intends to rob 80% of all memory as a default */
        GDK_mem_maxsize = (size_t) ((double) MT_npages() * (double) 
MT_pagesize() * 0.815);
+#ifdef WIN32
        GDK_vm_minsize = (size_t) ((double) MT_npages() * (double) 
MT_pagesize() * 0.33);
+#else
+       GDK_vm_minsize = 64*1024*1024;
+#endif
 
        GDKmemchk(TRUE, TRUE);
        GDKremovedir(DELDIR);


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to