unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
To: Andrea Corallo <akrl@sdf.org>
Cc: 41077-done@debbugs.gnu.org
Subject: bug#41077: [feature/native-comp] virtual memory exhausted
Date: Mon, 11 May 2020 00:04:44 +0200	[thread overview]
Message-ID: <871rnrphtv.fsf@gmail.com> (raw)
In-Reply-To: <xjfftc7al49.fsf@sdf.org> (Andrea Corallo's message of "Sun, 10 May 2020 08:02:46 -0700")

[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

Andrea Corallo <akrl@sdf.org> writes:

>> As soon as I've figured out how to use the elisp-benchmarks package,
>> I'll post some figures; is there a specific place (bug number,
>> emacs-devel thread) where you usually collect such feedback?
>
> Cool, we have no bug number for that.  I guess you can use the "On elisp
> running native" thread or as you feel.

Mmm, I've installed the elisp-benchmarks package, and I've run

    $SOURCEDIR/src/emacs -Q -batch -l ./elisp-benchmarks.el -f elisp-benchmarks-run

from ~/.emacs.d/elpa/elisp-benchmarks-1.1, once with SOURCEDIR pointing
to the master worktree and once again with SOURCEDIR pointing to the
feature/native-comp worktree, and I get more or less the exact same
performance[1].

I've run the feature/native-comp emacs under strace and AFAICT the
native libraries get loaded[2]; I suspect I'm making some very basic
mistake but I can't put my finger on it.  Is there anything else I
should be looking for to assert that things work as intended?

Thank you for your patience.


[1] With the master branch:


[-- Attachment #2: master.log --]
[-- Type: text/plain, Size: 2586 bytes --]

-*- mode: compilation; default-directory: "~/.emacs.d/elpa/elisp-benchmarks-1.1/" -*-
Compilation started at Sun May 10 17:06:01

~/Downloads/sources/emacs/src/emacs -Q -batch -l ./elisp-benchmarks.el -f elisp-benchmarks-run
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/bubble-no-cons...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/bubble...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/fibn-rec...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/fibn-tc...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/fibn...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/inclist...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/listlen-tc...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/pidigits...
Iteration number: 1
Running bubble-no-cons...
Running bubble...
Running fibn-rec...
Running fibn-tc...
Running fibn...
Running inclist...
Running listlen-tc...
Running pidigits...
Iteration number: 2
Running bubble-no-cons...
Running bubble...
Running fibn-rec...
Running fibn-tc...
Running fibn...
Running inclist...
Running listlen-tc...
Running pidigits...
Iteration number: 3
Running bubble-no-cons...
Running bubble...
Running fibn-rec...
Running fibn-tc...
Running fibn...
Running inclist...
Running listlen-tc...
Running pidigits...
* Results

  | test           | non-gc avg (s) | gc avg (s) | gcs avg | tot avg (s) | tot avg err (s) |
  |----------------+----------------+------------+---------+-------------+-----------------|
  | bubble-no-cons |         122.06 |       0.22 |       4 |      122.28 |            0.43 |
  | bubble         |          49.22 |      26.59 |     491 |       75.81 |            0.18 |
  | fibn-rec       |          62.00 |       0.00 |       0 |       62.00 |            0.00 |
  | fibn-tc        |         133.97 |      87.95 |    1520 |      221.91 |            0.36 |
  | fibn           |         280.64 |     251.97 |    4425 |      532.61 |            0.14 |
  | inclist        |         174.41 |       0.06 |       1 |      174.47 |            0.00 |
  | listlen-tc     |          68.04 |       0.00 |       0 |       68.04 |            0.02 |
  | pidigits       |          56.97 |      36.60 |     605 |       93.57 |            0.53 |
  |----------------+----------------+------------+---------+-------------+-----------------|
  | total          |         947.30 |     403.39 |    7046 |     1350.69 |            0.80 |


Compilation finished at Sun May 10 18:13:36

[-- Attachment #3: Type: text/plain, Size: 43 bytes --]


    With the feature/native-comp branch:


[-- Attachment #4: native-comp.log --]
[-- Type: text/plain, Size: 2611 bytes --]

-*- mode: compilation; default-directory: "~/.emacs.d/elpa/elisp-benchmarks-1.1/" -*-
Compilation started at Sun May 10 18:18:56

~/Downloads/sources/emacs-meta/feature/native-comp/src/emacs -Q -batch -l ./elisp-benchmarks.el -f elisp-benchmarks-run
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/bubble-no-cons...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/bubble...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/fibn-rec...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/fibn-tc...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/fibn...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/inclist...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/listlen-tc...
Loading /home/peniblec/.emacs.d/elpa/elisp-benchmarks-1.1/benchmarks/pidigits...
Iteration number: 1
Running bubble-no-cons...
Running bubble...
Running fibn-rec...
Running fibn-tc...
Running fibn...
Running inclist...
Running listlen-tc...
Running pidigits...
Iteration number: 2
Running bubble-no-cons...
Running bubble...
Running fibn-rec...
Running fibn-tc...
Running fibn...
Running inclist...
Running listlen-tc...
Running pidigits...
Iteration number: 3
Running bubble-no-cons...
Running bubble...
Running fibn-rec...
Running fibn-tc...
Running fibn...
Running inclist...
Running listlen-tc...
Running pidigits...
* Results

  | test           | non-gc avg (s) | gc avg (s) | gcs avg | tot avg (s) | tot avg err (s) |
  |----------------+----------------+------------+---------+-------------+-----------------|
  | bubble-no-cons |         124.78 |       0.22 |       4 |      125.00 |            0.09 |
  | bubble         |          49.80 |      26.49 |     491 |       76.29 |            0.19 |
  | fibn-rec       |          63.12 |       0.00 |       0 |       63.12 |            0.00 |
  | fibn-tc        |         135.08 |      87.60 |    1520 |      222.68 |            0.26 |
  | fibn           |         279.26 |     251.12 |    4425 |      530.38 |            0.12 |
  | inclist        |         174.42 |       0.06 |       1 |      174.48 |            0.06 |
  | listlen-tc     |          64.84 |       0.00 |       0 |       64.84 |            0.00 |
  | pidigits       |          56.46 |      36.50 |     605 |       92.97 |            0.14 |
  |----------------+----------------+------------+---------+-------------+-----------------|
  | total          |         947.77 |     401.99 |    7046 |     1349.76 |            0.38 |


Compilation finished at Sun May 10 19:26:30

[-- Attachment #5: Type: text/plain, Size: 197 bytes --]


[2] I've attached traces for the first benchmark iteration; from what I
    can tell .eln files are "loaded" correctly (I can see successful
    calls to openat, read, fstat, mmap and mprotect).


[-- Attachment #6: native-comp.strace.gz --]
[-- Type: application/x-gzip, Size: 210341 bytes --]

[-- Attachment #7: Type: text/plain, Size: 111 bytes --]


    I've run emacs master under strace too, out of paranoia; no .eln
    file gets loaded there, as expected.

  reply	other threads:[~2020-05-10 22:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-04 15:08 bug#41077: [feature/native-comp] Segfaults when compiling ELC+ELN Kévin Le Gouguec
2020-05-04 16:31 ` Andrea Corallo
2020-05-04 20:57   ` Andrea Corallo
2020-05-04 21:05   ` Kévin Le Gouguec
2020-05-04 21:15     ` Andrea Corallo
2020-05-06 14:15       ` bug#41077: [feature/native-comp] virtual memory exhausted (was: bug#41077: [feature/native-comp] Segfaults when compiling ELC+ELN) Kévin Le Gouguec
     [not found]         ` <xjfftcd5chc.fsf@sdf.org>
2020-05-06 20:12           ` bug#41077: [feature/native-comp] virtual memory exhausted Andrea Corallo
2020-05-10 14:26             ` Kévin Le Gouguec
2020-05-10 15:02               ` Andrea Corallo
2020-05-10 22:04                 ` Kévin Le Gouguec [this message]
2020-05-10 22:17                   ` Andrea Corallo
2020-05-11  9:12                     ` Kévin Le Gouguec
2020-05-11 10:00                       ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rnrphtv.fsf@gmail.com \
    --to=kevin.legouguec@gmail.com \
    --cc=41077-done@debbugs.gnu.org \
    --cc=akrl@sdf.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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