From: Andrea Corallo <akrl@sdf.org>
To: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
Cc: 41194@debbugs.gnu.org
Subject: bug#41194: 28.0.50; [feature/native-comp] fibn benchmark exhausts memory
Date: Sat, 13 Jun 2020 15:00:33 +0000 [thread overview]
Message-ID: <xjfsgezui26.fsf@sdf.org> (raw)
In-Reply-To: <874krj1hjh.fsf@gmail.com> ("Kévin Le Gouguec"'s message of "Wed, 10 Jun 2020 09:55:30 +0200")
Kévin Le Gouguec <kevin.legouguec@gmail.com> writes:
> Andrea Corallo <akrl@sdf.org> writes:
>
>> sorry for the very late reply I just had a look.
>
> No need to apologize! You've obviously been busy on other fronts.
>
>> The following is going on: being on 32bit system you get into bignums
>> end this allocates memory while is looping inside `elb-fibn'.
>> Unfortunatelly there's no opportunity of passing through maybe_gc to
>> trigger garbage collection because I've not implemented the equivalent
>> of what is the quitcounter in the byte interpreter.
>>
>> I'll come-up with a patch to generate the equivalent code of the
>> quitcounter when compiling for speed < 3.
>>
>> Thanks for the feedback
>>
>> Andrea
>>
>> PS FYI I think memory consumption during compilation (as compile time)
>> should be now considerably lowered (but I've still haven't measured it).
>
> Alright! I'll keep an eye on your branch and on the bugtracker, and
> recompile & run my measurements when I spot your patch.
Hi Kévin,
5a55a845a7 * Implement 'maybe_gc_or_quit' to allow correct GC in compiled Lisp
34ed9d2498 * Introduce latches
are fixing here this issue, now running fibn at speed 2 the memory
consuptions stays constant.
You'll still see the same behavior at speed 3 because there the
programmer is supposedly responsible to add manually possible GC entry
points.
I think now 32bit should be in a much better state but I hadn't time to
test it still.
Thanks!
Andrea
--
akrl@sdf.org
next prev parent reply other threads:[~2020-06-13 15:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-11 20:47 bug#41194: 28.0.50; [feature/native-comp] fibn benchmark exhausts memory Kévin Le Gouguec
2020-06-09 22:24 ` Andrea Corallo
2020-06-10 7:55 ` Kévin Le Gouguec
2020-06-13 15:00 ` Andrea Corallo [this message]
2020-06-13 18:17 ` Kévin Le Gouguec
2020-06-14 15:19 ` Kévin Le Gouguec
2020-06-14 16:19 ` Andrea Corallo
2020-06-14 20:47 ` Kévin Le Gouguec
2020-06-14 21:45 ` Andrea Corallo
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xjfsgezui26.fsf@sdf.org \
--to=akrl@sdf.org \
--cc=41194@debbugs.gnu.org \
--cc=kevin.legouguec@gmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.