GDK_mmap_minsize again

Sjoerd Mullender sjoerd at acm.org
Tue Sep 20 18:24:02 CEST 2016


As far as I understand it, malloc on Linux will happily succeed even if
there is not enough memory+swap to hold all data.  So you can't rely on
malloc failures to tell you to switch to mmap.

On 09/20/2016 06:19 PM, Hannes Mühleisen wrote:
> Hello list,
> 
> we were wondering about the purpose of GDK_mmap_minsize when creating transient columns. The attached patch will always *try* to malloc/realloc a transient column but still fall back to memory-mapped files if malloc should fail. This dramatically improves performance. Any good reason why this should not be the default behaviour?
> 
> Thanks,
> 
> Mark and Hannes
> 
> 
> 

-- 
Sjoerd Mullender



-- 
Sjoerd Mullender

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


More information about the developers-list mailing list