From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.bugs Subject: bug#59321: ice-9's open-input-pipe is unexpectedly slow on some systems Date: Fri, 18 Nov 2022 06:52:27 +0100 Message-ID: References: <8d55cf7d1e5382c874cfcaee1f4cddd3@posteo.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HphKHzm1chwGZDfA" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37292"; mail-complaints-to="usenet@ciao.gmane.io" Cc: hylophile@posteo.de, 59321@debbugs.gnu.org To: Andrew Whatson Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri Nov 18 06:53:56 2022 Return-path: Envelope-to: guile-bugs@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 1ovuK4-0009Vs-Jf for guile-bugs@m.gmane-mx.org; Fri, 18 Nov 2022 06:53:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovuJE-0000iF-Ga; Fri, 18 Nov 2022 00:53:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovuJD-0000i7-3Z for bug-guile@gnu.org; Fri, 18 Nov 2022 00:53:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovuJC-0000Mo-Qo for bug-guile@gnu.org; Fri, 18 Nov 2022 00:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovuJC-00019w-9D for bug-guile@gnu.org; Fri, 18 Nov 2022 00:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 18 Nov 2022 05:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59321 X-GNU-PR-Package: guile Original-Received: via spool by 59321-submit@debbugs.gnu.org id=B59321.16687507564422 (code B ref 59321); Fri, 18 Nov 2022 05:53:02 +0000 Original-Received: (at 59321) by debbugs.gnu.org; 18 Nov 2022 05:52:36 +0000 Original-Received: from localhost ([127.0.0.1]:35002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovuIm-00019G-Cx for submit@debbugs.gnu.org; Fri, 18 Nov 2022 00:52:36 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:51462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovuIh-000194-5e for 59321@debbugs.gnu.org; Fri, 18 Nov 2022 00:52:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=RjTO6+JUen6jDFDM0/QvQ+gj7Gj2zYRFeow8MPQmzec=; b=Q5PC6T4UfBa4IYtF9SwJoq6eTd j23tlR9ajRzeC6hMewbl8EnmScYagbEqyxRsNabowhfSJ9Kb209rk0dyTmSurH87c85o1p9HfFew+ u0kHZXb7ltPabr93f5nItCnRbNU48ssRvEVDlwSFgKrScuAfcyuLq3RkWytO1zZOKG4pjJFe6ykP6 M05jrt4EHlC/bNBuzqe1sgOLgwYnsWwVrlab04CJNXyGZjgNwTCAx/uWiVIcqExY0cIWTiEFA10kA mrzu5hkRIUSl9vWE35VkbWpClQl2iFA/TWXEzKhT7DssGc//abdGT6tswg+gMOeB+JOM6jyiMmH9V fsLql7uQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1ovuId-0004yZ-7A; Fri, 18 Nov 2022 06:52:27 +0100 Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:10437 Archived-At: --HphKHzm1chwGZDfA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 18, 2022 at 02:49:05PM +1000, Andrew Whatson wrote: > Hi Nate, >=20 > Thanks for reporting this! I'm able to reproduce on my systems, and > have identified the culprit: [250k calls to close()] Well spotted. Here [1] is a good discussion on the problem. Spoiler alert: there is no nice, simple and portable way around it. There may be complex, platform-dependent solutions (like, for example, under Linux go look in /proc//fd; BSD has other tricks). Of course, that doesn't mean that one should give up trying :) Cheers [1] https://stackoverflow.com/questions/56650579/why-should-i-close-all-fil= e-descriptors-after-calling-fork-and-prior-to-callin --=20 t --HphKHzm1chwGZDfA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCY3cdkgAKCRAFyCz1etHa RsbVAJ97Yg5D78wAQwgvTWWklh9x7C7hEACeNOEVu093R3BYgmPtvPVtNjYdHHc= =rpL5 -----END PGP SIGNATURE----- --HphKHzm1chwGZDfA--