From: Kevin Ryde <user42@zip.com.au>
To: guile-user@gnu.org
Subject: Re: What is best way to limit memory alloc?
Date: Sat, 01 Sep 2007 10:02:47 +1000 [thread overview]
Message-ID: <87zm076ymw.fsf@zip.com.au> (raw)
In-Reply-To: <1188382968.8043.578.camel@localhost.localdomain> (Roland Orre's message of "Wed, 29 Aug 2007 12:22:47 +0200")
Roland Orre <roland.orre@neurologic.se> writes:
>
>> What is the best way to limit the memory allocation in guile?
Perhaps setrlimit would be the most reliable overall.
>> I'm still running 1.7 as I haven't got the time and energy
>> to change the array implementation yet.
I struck a bug lately in 1.8 where the collected cell counts are somehow
botched, leading to it wrongly thinking new heap is needed again and
again.
>> It seems as the memory allocator in guile doesn't care about
>> the physical memory limits and it seems as it prefers to
>> allocate big chunks of more memory instead of performing gc
>> despite very little extra memory should be needed.
It's not supposed to. The rule is supposed to be to increase the heap
to make 40% of it free, after gc figures what's free and what's not, or
something like that. In practice it means blocks each 1.6x (or so)
bigger than the one before getting allocated. (As seen in `gc-stats'.)
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
next prev parent reply other threads:[~2007-09-01 0:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 10:14 MMCI 1.1.1 available Thien-Thi Nguyen
[not found] ` <1188367992.8043.508.camel@localhost.localdomain>
2007-08-29 10:22 ` What is best way to limit memory alloc? Roland Orre
2007-08-29 15:20 ` Ludovic Courtès
2007-09-01 0:02 ` Kevin Ryde [this message]
2007-08-29 11:47 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zm076ymw.fsf@zip.com.au \
--to=user42@zip.com.au \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).