Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 1997 02:45:21 -0700
From:      David Greenman <dg@root.com>
To:        Poul-Henning Kamp <phk@dk.tfs.com>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: kern/4070: cannot access over 64MB memory 
Message-ID:  <199707100945.CAA28234@implode.root.com>
In-Reply-To: Your message of "Thu, 10 Jul 1997 08:17:01 %2B0200." <6461.868515421@critter.dk.tfs.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>
>>    Malloc is kind of strange when it comes to allocating the virtual address
>> space and will consume up to twice the amount requested.
>
>Well, true, but that is not the case here:
>
>The maximum overallocation for any one call to malloc(bytes) is:
>
>	min(pagesize-1, bytes*2-1)
>
>This is because when "bytes" is > pagesize/2, an integral number of
>pages is allocated, otherwise a 2^n size chunk is allocated.

   Nonetheless, the problem is that he's hitting the process ulimit. As you
know, the failure mode for running out of memory (RAM + swap) is quite
different than the error indicated in this problem report. Perhaps the problem
is caused by VM fragmentation? Or a bug in malloc?

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project



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