bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41194: 28.0.50; [feature/native-comp] fibn benchmark exhausts memory


From: Kévin Le Gouguec
Subject: bug#41194: 28.0.50; [feature/native-comp] fibn benchmark exhausts memory
Date: Sun, 14 Jun 2020 17:19:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Andrea Corallo <akrl@sdf.org> writes:

> 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.

Alright, feedback time!

Commits:
- master: 82a632edc8b80bf16d9b9f205474bf9724b084c0
- feature/native-comp: 5a55a845a7c426e82e8a6a6d02bc4a39992871e3


The Good News
=============

- I can compile the branch without adding files to the default
  blacklist,

- compilation (-j1) now only takes less than 6 hours instead of 3 days
  (compared with 1.5 hour on master),

- at no point during compilation did the system swap; in fact, I could
  probably have risked a -j2 build,

- elisp-benchmarks doesn't show any obvious performance regression
  (… though see Bad News).

For details on memory usage during compilation, see attached memory
profile (to compare with bug#41077#28).

Attachment: compilation-memory.pdf
Description: Adobe PDF document

Few files take more than 3 minutes to compile now:

ELC+ELN emacs-lisp/comp.el      0:09:49
ELC+ELN org/org.el              0:03:39
ELC+ELN ../lisp/window.el       0:03:16
ELC+ELN emacs-lisp/bytecomp.el  0:03:16

For details on performance, see attached tables for master and
feature/native-comp, respectively (to compare with bug#41077#40).

Attachment: perfs.org
Description: Text Data


The Bad News
============

- fibn still exhausts memory,
- now pidigits does too.

Attachment: fibn.pdf
Description: Adobe PDF document

Attachment: pidigits.pdf
Description: Adobe PDF document

I've only tried the default comp-speed (2) so far.  I've attached the
results of M-x disassemble on the functions in fibn.el and pidigits.el.

Attachment: elb-eliminate-digit.s
Description: Text Data

Attachment: elb-extract-digit.s
Description: Text Data

Attachment: elb-fibn.s
Description: Text Data

Attachment: elb-fibn-entry.s
Description: Text Data

Attachment: elb-next-term.s
Description: Text Data

Attachment: elb-pidigits.s
Description: Text Data

Attachment: elb-pidigits-entry.s
Description: Text Data

Let me know what I can do to help diagnose this further.  Again, thank
you for the time spent on this issue!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]