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.devel Subject: Re: patch for mmap and friends Date: Sat, 14 Jan 2023 17:41:16 +0100 Message-ID: References: <1ee846ab-e9ce-d616-94dd-0056e4b840f9@gmail.com> <445d3567-9bbf-487b-f338-8a16903e9e62@telenet.be> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibAZ2TBK8YxwrIlT" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14426"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sat Jan 14 17:41:47 2023 Return-path: Envelope-to: guile-devel@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 1pGjbH-0003aO-Mr for guile-devel@m.gmane-mx.org; Sat, 14 Jan 2023 17:41:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGjaw-00006Z-0r; Sat, 14 Jan 2023 11:41:26 -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 1pGjar-0008W6-Ce for guile-devel@gnu.org; Sat, 14 Jan 2023 11:41:21 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGjap-0002Dn-BT for guile-devel@gnu.org; Sat, 14 Jan 2023 11:41:21 -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:To:Date:Sender:Reply-To:Cc: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=4/N9oXKZyUlB3UFYKMOwcX7PKlKhMQJ2ye/RjcT5z/Q=; b=rCBXaf8AwEh8UmqRUCoasZFLYD Enm56DYLnO2kX8VNEXPmdOPolDnRPC83JGdzl0FVqEsGH9oJnq+OQ03vJrQuOKNM1W8qwsOs58Q67 sAXJ3e+hVVLdfZzCy9UeuTy6ZMJ7X+3HO0mvj4JibIwJTR6rNPBE/7UuzTaUI3HOCREqwaUkIrnbi yMQ35IHIMU2DgVyXnehrX67oXPp+2wIJ12gGrgZ8ysEh/rai9GshfCEiM9UaQDp6h2azZLa06ERp5 O9jnhP2gZdWeQeldiDGMnoG2NeNN/lSE1N2frWtaa+WlFgD61Wf/fQlHxN5rvYKVFOwcoplJpgVHW PfjAdDRA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1pGjam-0006wy-87 for guile-devel@gnu.org; Sat, 14 Jan 2023 17:41:16 +0100 Content-Disposition: inline In-Reply-To: <445d3567-9bbf-487b-f338-8a16903e9e62@telenet.be> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21586 Archived-At: --ibAZ2TBK8YxwrIlT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 14, 2023 at 04:18:58PM +0100, Maxime Devos wrote: [...] > (While it is recommended for Scheme code to keep a reference to the port = to > manually close afterwards, to free resources faster than waiting for GC, = it > is not actually required.) Oh, oh. I've got a little anecdote to share here. The context was a Java application, running on Sun medium-sized iron. It was slow & clumsy and the customer decided to double the machine's RAM (these were times where 200 MB were quite a thing). The application crashed a couple of times a day. Some log file poking later it became clear: at the other side there was an Oracle database and the app was exhausting the (limited) max number of connections allowed for the license they had. More RAM -> less GC and the app was relying on the object destructors to dispose of the unneeded database connections. There I learnt one shouldn't ever use memory as proxy for other resources :-) (The end of the story was that we could convince the user to have an application under a free license and a free database :) Cheers --=20 t --ibAZ2TBK8YxwrIlT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCY8LbJgAKCRAFyCz1etHa RjKEAJ47baMTCWtY9fVSJ5AZq2zpGDwo7QCbBEkC1YU+SngPhY8i4WPpOldlSpE= =z2c2 -----END PGP SIGNATURE----- --ibAZ2TBK8YxwrIlT--