From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#41077: [feature/native-comp] virtual memory exhausted Date: Mon, 11 May 2020 11:12:47 +0200 Message-ID: <87d07avnqo.fsf@gmail.com> References: <878si768l2.fsf@gmail.com> <87d07jfm2o.fsf@gmail.com> <87d07hcfpm.fsf_-_@gmail.com> <877dxjn9wy.fsf@gmail.com> <871rnrphtv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="35723"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41077-done@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 11 11:13:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jY4Up-0009Ay-26 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 May 2020 11:13:11 +0200 Original-Received: from localhost ([::1]:37806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jY4Uo-0000GO-19 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 May 2020 05:13:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY4Uh-0000G5-QB for bug-gnu-emacs@gnu.org; Mon, 11 May 2020 05:13:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jY4Uh-0001HD-HI for bug-gnu-emacs@gnu.org; Mon, 11 May 2020 05:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jY4Ug-0000NE-CU for bug-gnu-emacs@gnu.org; Mon, 11 May 2020 05:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 May 2020 09:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41077 X-GNU-PR-Package: emacs Original-Received: via spool by 41077-done@debbugs.gnu.org id=D41077.15891883781425 (code D ref 41077); Mon, 11 May 2020 09:13:02 +0000 Original-Received: (at 41077-done) by debbugs.gnu.org; 11 May 2020 09:12:58 +0000 Original-Received: from localhost ([127.0.0.1]:51217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jY4Uc-0000Mu-8m for submit@debbugs.gnu.org; Mon, 11 May 2020 05:12:58 -0400 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:33483) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jY4Ua-0000Mf-C6 for 41077-done@debbugs.gnu.org; Mon, 11 May 2020 05:12:56 -0400 Original-Received: by mail-wr1-f53.google.com with SMTP id l11so4031587wru.0 for <41077-done@debbugs.gnu.org>; Mon, 11 May 2020 02:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=GvchpdKpOaWPPGzyOjjyoTkotqOVJRQY7MGd1pnbO0M=; b=a5DK/g0Lza8j5StyAIiOL8ly/GU9qSfpPsbkY6Z7QqDUZD6o5QNwutDHpDoA/pSmH7 rgCitEgDZGLf/PdBQ1whJtKwfrVulXMDGwXmut9ywObsZQUptw3cCYaapsmYGn5EIG6C sM+mBGZAdQpnFwaAvJarBnUwuybn47rbYepJ1cF0PKOQM4fCwfuwCSqE7jBpWL4RNOwY 0HqHwNc5HwNCaI9Xeyn5zd47T5xXZyTOZdavKqBtN1dLv5tov+Nktur3QYb2YhEcnXxy HjNsX59HBM+EFzVIWwVVMmvKhkoaOiW9XX0LCZ47gK9gv4t1grm8lGCT9ZPCBH/O849E jicA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=GvchpdKpOaWPPGzyOjjyoTkotqOVJRQY7MGd1pnbO0M=; b=m0agCHLi8BUPtiD2J3Ri6+2wDJsi/FgJtcCEBSfGA70qAU59wiZEGOPo0fOxNmzxy4 PSbLILGVeua46LAJyzVOJLyH4SMEBdK9g7a67hbqKOhDB70Bsis0wCn8pnz4tu2IXjY8 BJT7fuFDat5i8S8+swuISXKGJCKCwrUdXe393C3R9pL8RwyrbtnW2uwea5wyma3r+5pt b9CONW3IqSZAetiwrMVFuIHv9keR50HVIHerjPbRybPBIejrnDENC5aOASjoFlhEeMgU s9C32DRHOkK2rzlKcYHkGhKtqZpLyOqmNO/sZk+gC4cyexNhNO5YrUyFCP8LDcCxAT68 4LcQ== X-Gm-Message-State: AGi0Puaa5heudgPx7g+38JUadt3bP/igXfS7A77MCOnmQkVPZGtN8msX fiFdwZUy7D14snWOROzthHKEyq8rKlk= X-Google-Smtp-Source: APiQypImxsxSLXlXpvuNsVeYuN0xmmbo8CY1yh+4RnrzZxDZ6d+MEAz2V4GivWQYcMPHox/XPm0AHQ== X-Received: by 2002:adf:e7cb:: with SMTP id e11mr16966405wrn.145.1589188369859; Mon, 11 May 2020 02:12:49 -0700 (PDT) Original-Received: from my-little-tumbleweed (200.143.13.109.rev.sfr.net. [109.13.143.200]) by smtp.gmail.com with ESMTPSA id c128sm26959917wma.42.2020.05.11.02.12.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 02:12:48 -0700 (PDT) In-Reply-To: (Andrea Corallo's message of "Sun, 10 May 2020 22:17:56 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180058 Archived-At: Ah, right; I don't know what I was thinking. I guess I assumed that the benchmarks covered Emacs subroutines, so not compiling the benchmark sources would not have a big impact. I got that completely backward =F0=9F= =A4=A6 Andrea Corallo writes: > Other option maybe quicker: you can manually native compile the > benchmarcks and the native emacs instance should load them. > > You will see that when a .eln is loaded the message is a little > different to indicate that. I went with this option, using M-: (native-compile "foo.el"). I had one last surprise: the native-compiled fibn test exhausts the laptop's memory (2GB RAM + 2GB swap). I recompiled fibn.eln setting comp-speed to 1 and 0, but the result was the same. Here are the results: except for pidigits, the improvements are quite noticeable :) I'll post a write-up (giving my hardware specs and computing the speedups) to emacs-devel when I find the time. * Results ** master | 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 | | 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 | 666.67 | 151.42 | 2621 | 818.08 | = 0.79 | ** feature/native-comp | test | non-gc avg (s) | gc avg (s) | gcs avg | tot avg (s) | = tot avg err (s) | |----------------+----------------+------------+---------+-------------+-= ----------------| | bubble-no-cons | 24.53 | 0.22 | 4 | 24.75 | = 0.02 | | bubble | 17.83 | 5.79 | 100 | 23.62 | = 0.27 | | fibn-rec | 18.63 | 0.00 | 0 | 18.63 | = 0.01 | | fibn-tc | 67.39 | 86.45 | 1519 | 153.84 | = 0.07 | | inclist | 10.99 | 0.06 | 1 | 11.05 | = 0.04 | | listlen-tc | 0.82 | 0.00 | 0 | 0.82 | = 0.00 | | pidigits | 54.03 | 36.84 | 605 | 90.87 | = 0.69 | |----------------+----------------+------------+---------+-------------+-= ----------------| | total | 194.22 | 129.35 | 2229 | 323.57 | = 0.75 | Again, thanks for your help!