From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#46881: 28.0.50; pdumper dumping causes way too many syscalls Date: Thu, 4 Mar 2021 07:25:13 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16104"; mail-complaints-to="usenet@ciao.gmane.io" To: Alan Third , Pip Cet , 46881@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 04 08:27:09 2021 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 1lHiO5-00045T-Hw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Mar 2021 08:27:09 +0100 Original-Received: from localhost ([::1]:51678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHiO4-0003bn-GX for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Mar 2021 02:27:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHiNy-0003bU-3j for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 02:27:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHiNx-00087o-Ss for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 02:27:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHiNx-0001a0-PI for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 02:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Mar 2021 07:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46881 X-GNU-PR-Package: emacs Original-Received: via spool by 46881-submit@debbugs.gnu.org id=B46881.16148427666007 (code B ref 46881); Thu, 04 Mar 2021 07:27:01 +0000 Original-Received: (at 46881) by debbugs.gnu.org; 4 Mar 2021 07:26:06 +0000 Original-Received: from localhost ([127.0.0.1]:57554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHiMu-0001YM-D1 for submit@debbugs.gnu.org; Thu, 04 Mar 2021 02:26:05 -0500 Original-Received: from mail-ot1-f46.google.com ([209.85.210.46]:32946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHiMs-0001Y9-Pw for 46881@debbugs.gnu.org; Thu, 04 Mar 2021 02:25:55 -0500 Original-Received: by mail-ot1-f46.google.com with SMTP id j8so890800otc.0 for <46881@debbugs.gnu.org>; Wed, 03 Mar 2021 23:25:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=RSykA11zPfpk99eUA+3H9NyfJn/uSfzUhZ5+YCNxFng=; b=E78xJTA7uWmlzYQJE1IeHqQNFFY6+Wtp7Ar74ep4OvuHiHfL5q3LhLABY2j3w4b5VB Cst0ltm5mRlx2nKOKOqFfHa5pSHOoqdISjylBHceSa5rCrA510MdiII2TbedCrWVF0bR wCTngaw+hyyR4PbFAm+pI0VtFYCx9nm6Ldz48Lsycw49d54rlFVvdB1GvurOGAvmNFdS ZK34w7T4k6HI/vPGnpEd3BjMJV6rTg6M7e0lm9GV8ZdAvoFX+JLnP2gg66shQttpcyKU i3JQss61a9E6+m5M1F0k/nHB9b72kCi3QzJkXtGN5NadFRcDBvkBcGL6HNdP3mRmur9s uyEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=RSykA11zPfpk99eUA+3H9NyfJn/uSfzUhZ5+YCNxFng=; b=Es7j4L/xZW13zFc0l9ayd0JHYyhXh/gHcdktwEzong/fi49Cd9yvrFa4qull8CSx5x 0YiiOD6XTAdYyd8kyyCI+7QDVn90GYLqXsoV744ntBJAJ778aw8MKarxIXyS1a1ngflM 6LqMuGexN44E6G1Xxzei3GMcwp2LoZxDySxilpHX5t7vatWqA222hGrClorzmYICsU2S RmTxueiBvLbTjhbF3dHzEE0N45Dy64Gj0tsWpj/8eFouY+6XB6cJaR9h7cIIPjHD66Al m2Qp4s61IKz8y/Qd7qKMS2wdpK41lF7l+bPMGcjFGu17Bbe+l+HCs/Lw5j42rfN2ksEm D58A== X-Gm-Message-State: AOAM532o/AO7vFQYcqkzg4PbXK41/gfgme5KnXNVwo4X+UtbiZY3Y33V KSMY9s9Dhk3q3xcwwj/EoGj3RArmI6WHFs8NSUA= X-Google-Smtp-Source: ABdhPJzfXsuMZZGujGssQAPGbkQ0pGdkuJA0UB77t7oy2v3f+nRA7ValeOLHaxX5xlx0HSEJQiMSWPdwnW+fKfihdro= X-Received: by 2002:a05:6830:1011:: with SMTP id a17mr221042otp.154.1614842749289; Wed, 03 Mar 2021 23:25:49 -0800 (PST) In-Reply-To: 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:201363 Archived-At: On Wed, Mar 3, 2021 at 7:58 PM Alan Third wrote: > On Wed, Mar 03, 2021 at 07:10:28AM +0000, Pip Cet wrote: > > > My quick test on macOS by doing: > > > > > > rm src/*.pdmp > > > time make > > > > > > sees it going from ~26s without patch to ~10s with patch, so a > > > considerable improvement. > > > > Thanks for testing! > > > > > > > Patch will be attached once this has a bug number. > > > > > > > > And here's the patch. Testing would be very appreciated. > > > > > > It appears to work fine here, but I don't know if there's anything > > > specific to test other than just running Emacs. > > > > I suspect there may be problems on systems with very little memory. Do > > you have an easy way to determine maximum resident size (on Debian > > GNU/Linux, /bin/time works)? It would be interesting to see if that's > > actually different. > > I tried using time -l the same as above and both came out with > roughly the same values, but I suspect that's probably just me getting > the values for running make. Thanks. > Is there a better way of testing dumping? I guess you could run "time ./temacs --batch -l loadup --temacs=pbootstrap" directly (in src/)... I realize that's not an answer to your question, but IME, dumping bugs will often lead to immediate failures to bootstrap, whereas GC bugs are tricky and don't. Since this bug doesn't affect GC in any way, I think we've done enough initial testing. Pip