From owner-cvs-all Mon Nov 6 15:11:11 2000 Delivered-To: cvs-all@freebsd.org Received: from earth.backplane.com (placeholder-dcat-1076843399.broadbandoffice.net [64.47.83.135]) by hub.freebsd.org (Postfix) with ESMTP id C03F137B65E; Mon, 6 Nov 2000 15:11:04 -0800 (PST) Received: (from dillon@localhost) by earth.backplane.com (8.11.1/8.9.3) id eA6NAvp69682; Mon, 6 Nov 2000 15:10:57 -0800 (PST) (envelope-from dillon) Date: Mon, 6 Nov 2000 15:10:57 -0800 (PST) From: Matt Dillon Message-Id: <200011062310.eA6NAvp69682@earth.backplane.com> To: "John W. De Boskey" Cc: Jordan Hubbard , Marcel Moolenaar , "David O'Brien" , "Jordan K. Hubbard" , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src Makefile References: <65206.973531176@winston.osd.bsdi.com> <200011062157.eA6LvSG68894@earth.backplane.com> <20001106173333.A23103@bsdwins.com> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :ps: Speaking of low memory, are there any known bugs when allocating : extremely large amounts of memory? I have 768Meg of ram, 5 gig : of swap: malloc tops out at 1gig and mmap(anon) tops out at : 2 gig... I need to alloc 4 gig. The following are in the : kernel config: : :# Increase the default maximum data size :options MAXDSIZ="((__int64_t)5*1024*1024*1024)" :options DFLDSIZ="((__int64_t)5*1024*1024*1024)" :... : see: ~jwd/public_html/ds.c : or: http://www.freebsd.org/~jwd/ds.c : : Probably something silly on my part. won't work on an I386 box, which only has a 4G address space. The address space is broken up as follows: 0 --- start --- | V user text/data/bss | user brk/sbrk space (used by malloc) V ( 'data' resource limit) | user mmap space (may actually be interwoven with the brk/sbrk | space) V ^ | user stack 3G ------------ KERNEL VM SPACE (not user accessible) 4G--- end --- Specifying a large MAXDSIZ will reduce the amount of space available for mmap()ing files. Generally speaking you do not want to specify a value greater then 512MB for MAXDSIZ. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message