[Gc] RAM enough but out of virtual memory?

Zhang Le 69dbb24b2db3daad932c457cccfd6 at gmail.com
Tue Jul 19 04:27:12 PDT 2005

On 7/19/05, mental at rydia.net <mental at rydia.net> wrote:
> Quoting Zhang Le <69dbb24b2db3daad932c457cccfd6 at gmail.com>:
> > Interestingly, when I try to run my program on a Linux machine
> > with 4G
> > RAM, it stops at the same position as on the 512 RAM machine. I'd
> > expected it runs longer!  Also, I keep getting warning message
> > like:
> > GC Warning: Repeated allocation of very large block (appr. size
> > 20480):
> >         May lead to memory leak and poor performance.
> > after it consumes more than 400MB vram, though real RAM used is
> > always
> > under 100MB reported by top.
> Two Linux-specific questions (they're not GC options): is memory
> overcommit enabled or disabled, and are there any rlimits in
> effect?
I do not know how to test memory overcommit. But ulimits is unlimited
in my case. The problem lies in the fact that GC_MALLOC has difficulty
in freeing false referenced memory, as pointed out by Hans. GC_MALLOC
can not be used as a drop-in replacement for malloc(), at least in my

Zhang Le

More information about the Gc mailing list