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: Wed, 3 Mar 2021 07:10:28 +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="28286"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46881@debbugs.gnu.org To: Alan Third , Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 03 08:14:23 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 1lHLiB-0007Fc-3Q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 08:14:23 +0100 Original-Received: from localhost ([::1]:55986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHLiA-0002yp-54 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 02:14:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHLfu-0001vM-EN for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 02:12:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHLfu-0001wh-6f for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 02:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHLfu-0005Ed-0I for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 02:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Mar 2021 07:12: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.161475547320069 (code B ref 46881); Wed, 03 Mar 2021 07:12:01 +0000 Original-Received: (at 46881) by debbugs.gnu.org; 3 Mar 2021 07:11:13 +0000 Original-Received: from localhost ([127.0.0.1]:55030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHLf7-0005Dc-5n for submit@debbugs.gnu.org; Wed, 03 Mar 2021 02:11:13 -0500 Original-Received: from mail-oo1-f46.google.com ([209.85.161.46]:38681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHLf3-0005DN-TD for 46881@debbugs.gnu.org; Wed, 03 Mar 2021 02:11:11 -0500 Original-Received: by mail-oo1-f46.google.com with SMTP id f26so5451516oog.5 for <46881@debbugs.gnu.org>; Tue, 02 Mar 2021 23:11:09 -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 :cc; bh=ohuOvlUVhjnXo88gJbDdHE0o+bd1U4Y1hNfdQ5HU7+A=; b=TdVVj+jXpk9iCc0QbhdwAqheQ4uL/NVsohBHY65b4OQPjgs9Fw9XWvpMsADl9sXv6R PIZCdYmbwVVjQYLeNKA0IiH8xGx1OzhUSPAuwumJi+/PEdGRDJoyuBTvYuzJFO8TYtwA J0W4Iu3SqjJrSGRHZaQtuc8trDGoPP+0bz0QjclLvNYkFxtLsVn6B5KolajG/sfyHvGy qPFIp9+L1hsnsWCmH7pP8xFZ4VgmBmCrU/OHcVDpN9QlCtxUh8NWVTghY+yNlCCRalyr OIqCcCdb35s5A+A21zcKW1Fuq0t32zW1KMzUClh91AyEaCEZQzKXOPPXTgJhzlnrQNOX hA3Q== 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:cc; bh=ohuOvlUVhjnXo88gJbDdHE0o+bd1U4Y1hNfdQ5HU7+A=; b=rm/GI8yhU2RQ/KfPcXDNQiqmM0PHvYpEaf37OJD1P486hrhXqwI+HyhCRBL/yMZRrt AyFrWjLc+ns2sqvYsB+65QVgTpsEx43FH6zV+OhHJHT3G2GAMqXuHr5yB54RS1hmK7dH o3aWc0sZXrZ6uwt2PIKYI9dUy9X27tEncc6C8jxnmhx7F/sLGDtmZ2VEcQk/TkVuYTCx kyEm3O3rrymwpSTuB/jiaBvFvwvSjVw2i7CklmZSGS+neww+wPvWp7tCFR1x9xRZ2Iml f6wxaz4cQwreDrOPA/2Z0+vtc6W3jSl8/ZvrTOKyQPIDsnc34r1c2ostsvmUdMSzAW12 rOZA== X-Gm-Message-State: AOAM530HNHCincOZ4uj7LqEU8tjF3pDsER/vLWSllq3a02yoLpnIgcSM j1L7S4VGa2AksrLwdvpmrP2oAYzI3qA0YxMoUqc= X-Google-Smtp-Source: ABdhPJwDiWksJBkLfj1cBZo0thE98VJ2g8+ALlu2EPNzM/ePAwZHKRJ9nvGlZDFcCUsGYcdm4vl6mJ/+OD2GwgjJWuo= X-Received: by 2002:a4a:2511:: with SMTP id g17mr20213317ooa.22.1614755464381; Tue, 02 Mar 2021 23:11:04 -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:201260 Archived-At: > 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. Thanks again! Pip