From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#46881: 28.0.50; pdumper dumping causes way too many syscalls Date: Wed, 3 Mar 2021 19:57:59 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37010"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46881@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 03 20:59:11 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 1lHXeJ-0009WJ-Jh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 20:59:11 +0100 Original-Received: from localhost ([::1]:40490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHXeI-00051d-HE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 14:59:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHXeA-00050N-RF for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 14:59:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHXeA-0003v0-DE for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 14:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHXeA-0003kU-Bi for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 14:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Mar 2021 19:59:02 +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.161480149214353 (code B ref 46881); Wed, 03 Mar 2021 19:59:02 +0000 Original-Received: (at 46881) by debbugs.gnu.org; 3 Mar 2021 19:58:12 +0000 Original-Received: from localhost ([127.0.0.1]:57064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHXdM-0003jR-I7 for submit@debbugs.gnu.org; Wed, 03 Mar 2021 14:58:12 -0500 Original-Received: from outbound.soverin.net ([116.202.65.218]:43347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHXdK-0003jE-DZ for 46881@debbugs.gnu.org; Wed, 03 Mar 2021 14:58:11 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 8F72160293 for <46881@debbugs.gnu.org>; Wed, 3 Mar 2021 19:58:02 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1614801482; bh=NX9Txa0W5RxAPS57duXK5gx3K+SNhSY779l6SVevE8E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OA3Tv6McME/Xc9gQLKlTxJhKAUwdL+hLgwlLrUocZX5dKjdWiVtkiXEBHAjP2ackY HctFnCYWjSl8/j7FinLxj3F+VrvI/20xWNiYpZiP/Yp5V+EU2QE56b+ab6YBrtFE8c RdBgZCl3G0pijOsLgggYmgmPZgaH/3+a3/m4/4GsVjlj8VTw2EQhZ3lk0CWEaU/aHp GJeLmOeqz4HcTPe9uYxeP9b2Z0OO4ph3QI3HcWI86zC7SPaoxWj6P775TzGiosofhs VJch/fK6TbuctnWF1Kdz+vEF6/36FVEHHSzMnAsCeh3Xc0QrJpUeZ5LyXN8V6XRpAB N4B2fbWMZZFsQ== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 6D72D202AC618E; Wed, 3 Mar 2021 19:57:59 +0000 (GMT) Mail-Followup-To: Alan Third , Pip Cet , 46881@debbugs.gnu.org Content-Disposition: inline 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:201318 Archived-At: 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. Is there a better way of testing dumping? -- Alan Third