
On Fri, Jan 04, 2008 at 12:09:05AM +0800, Rahul Chopra wrote:
Can you please explain gdk_mem_bigsize and gdk_vm_minsize? I searched around on the site and I am not really clear on what the optimal settings for these are.
Memory blocks allocated via GDKmalloc and friends larger then gdk_mem_bigsize will be mmaped using virtual swap space (vmalloc). This is done to avoid fragmentation.
So this is just for an individual block, and not for total allocated memory? Is a "block" allocated via entire BATs? Or are blocks allocated in segments when read from a single BAT?
BATs have heaps, these can be malloced (GDKmalloc), virtual mmapped using swap space (GDKvmalloc) or mmapped (needs a filename). Blocks (heaps) larger then vm_minsize will be vmalloced. The backends (sql/xquery) control when we switch to mmapped with files.
I am currently using the defaults, on a system with 8 GB of RAM.
It depends on your os if thats okay.
Thanks. I am using Linux (64 bit), CentOS 5.1. My main concern was if setting these too low somehow restricts the amount of memory used and leads to more swapping. I am not familiar enough with the system to understand all of this, but with 8 GB of ram, should I be using a larger gdk_mem_bigsize than the config default of 262144? The config file mentions these being set to 1/2 of available memory, but default values appear commented out. Are those the values that are actually used? Or, if these are commented out, are these dynamically set? -Rahul
Niels
Thanks,
Rahul
= Limousine and Luxury Bus Wine Tours Private Napa & Sonoma wine-tasting tours via luxury limousine or bus. http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=2c5439db6084d9969b4f63e2...
-- Powered by Outblaze
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
--
Niels Nes, Centre for Mathematics and Computer Science (CWI) Kruislaan 413, 1098 SJ Amsterdam, The Netherlands room C0.02, phone ++31 20 592-4098, fax ++31 20 592-4312 url: http://www.cwi.nl/~niels e-mail: Niels.Nes@cwi.nl
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
= Mercedes Homes - In FL, TX, NC, & SC Mercedes Homes builds homes in Florida, Texas, and the Carolinas. http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=e0639e1f90664efd00411106... -- Powered by Outblaze