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 (was: bug#41077: [feature/native-comp] Segfaults when compiling ELC+ELN)
Date: Wed, 06 May 2020 16:15:17 +0200	[thread overview]
Message-ID: <87d07hcfpm.fsf_-_@gmail.com> (raw)
In-Reply-To: <xjfy2q7ieqb.fsf@sdf.org> (Andrea Corallo's message of "Mon, 04 May 2020 21:15:24 +0000")

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

Andrea Corallo <akrl@sdf.org> writes:

> All versions should work but at this point I'd go for releases/gcc-10 or
> releases/gcc-9.3.0

Thanks, I went with 9.3.0.  Now the "ELC+ELN" steps start smoothly,
unfortunately I don't think the little buster can finish the job :(

I first ran a -j2 build which crashed after 14 hours while compiling
char-fold.elc.  I didn't get anything more precise than "virtual memory
exhausted: Cannot allocate memory" on the console.

Thinking it might help to compile only one file at a time, after
removing the temporary files related to char-fold.el[1], I started a -j1
build which picked up where the previous build left off, i.e. with
char-fold.elc.

Unfortunately that file alone seems to be too much for my system to
handle; compilation ended with the same "virtual memory exhausted" error
after less than an hour and a half.

I recorded some information related to memory usage during this second
run (cf. attached graph[2]).  My takeway is that at some point, the
compilation process's memory usage skyrockets, until the system's memory
(2GB RAM + 2GB swap) is completely exhausted.


I haven't reopened/created a new issue because I'm not sure there's a
way forward; let me know if you'd like me to perform some more in-depth
profiling.


[1] lisp/char-fold.elc… and lisp/eln-i686-pc-linux-gnu-…/char-fold….eln.

[2] The graph shows:
    - the VSZ of the process using the most virtual memory,
    - the RSS of the process using the most virtual memory,
    - the "available" column shown by free(1) on the "Mem:" line,
    - the "used" column shown by free(1) on the "Swap:" line,
    - the name of the process using the most virtual memory.

    Measurements were taken every minute.  I can upload the sources for
    this graph (measurement script, measurements, and plotting script)
    if that helps.


[-- Attachment #2: memory.png --]
[-- Type: image/png, Size: 81454 bytes --]

  reply	other threads:[~2020-05-06 14:15 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       ` Kévin Le Gouguec [this message]
     [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
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=87d07hcfpm.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).