Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Nov 2000 15:10:57 -0800 (PST)
From:      Matt Dillon <dillon@earth.backplane.com>
To:        "John W. De Boskey" <jwd@bsdwins.com>
Cc:        Jordan Hubbard <jkh@winston.osd.bsdi.com>, Marcel Moolenaar <marcel@cup.hp.com>, "David O'Brien" <obrien@FreeBSD.ORG>, "Jordan K. Hubbard" <jkh@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src Makefile
Message-ID:  <200011062310.eA6NAvp69682@earth.backplane.com>
References:  <65206.973531176@winston.osd.bsdi.com> <200011062157.eA6LvSG68894@earth.backplane.com> <20001106173333.A23103@bsdwins.com>

next in thread | previous in thread | raw e-mail | index | archive | help
: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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011062310.eA6NAvp69682>