From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Dr. Arne Babenhauserheide" Newsgroups: gmane.emacs.devel Subject: Re: Indentation and gc Date: Sat, 11 Mar 2023 17:19:56 +0100 Message-ID: <87a60jtg0z.fsf@web.de> References: <20230310110747.4hytasakomvdyf7i.ref@Ergus> <20230310110747.4hytasakomvdyf7i@Ergus> <87a60k657y.fsf@web.de> <838rg4zmg9.fsf@gnu.org> <87ttys4dge.fsf@web.de> <83sfebyepp.fsf@gnu.org> <87ttyru4zt.fsf@web.de> <83fsabyb41.fsf@gnu.org> <87mt4jtpqf.fsf@web.de> <83ilf7wi48.fsf@gnu.org> <878rg3wh2f.fsf@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16850"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.13; emacs 28.1 Cc: Eli Zaretskii , spacibba@aol.com, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 11 17:22:47 2023 Return-path: Envelope-to: ged-emacs-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 1pb1zb-00049T-7d for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Mar 2023 17:22:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pb1yr-0002Jx-RA; Sat, 11 Mar 2023 11:22:02 -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 1pb1yo-0002Ip-T9 for emacs-devel@gnu.org; Sat, 11 Mar 2023 11:21:58 -0500 Original-Received: from mout.web.de ([212.227.15.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pb1ym-0001a8-LU; Sat, 11 Mar 2023 11:21:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1678551710; i=arne_bab@web.de; bh=g5qnTivDUDBBQwGbfECBnSrpSaq6I2z76Lezr1g99fw=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:In-reply-to; b=Iz6krGe5CkiB3k1QVPc4ERnvEQyrCgmfn2r4dN9b1PqULlVnyfVfJ8+8maDfWoXSZ SKKS7xg51Zeg35brNKIdFE4s/v8pA/2sSoPiYBE+rJIX7yzBKFzgWYSL2VPFG06Xa0 l4BQ2tprc5Z6V3/IVfl0qLHdPH/9twLJ4dymv41gU8ofV5USp64owxhYiRh1uVvXFE MgvQ4uRbvwD9aOBqSi1GfzeO9qdl7mUlzrRY7bUii4p82ugL4hMvbyH691s9HD1XjI GyQZJqt28fhB3/VXfOBl4joEj5gXN5AdjPxHJtIts0fnZCeUwJclOMOHgKK89vqY7e ZGH/+ovfpl/3w== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from fluss ([84.149.95.143]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MHVaf-1poUNY3V3J-00DHun; Sat, 11 Mar 2023 17:21:49 +0100 In-reply-to: <878rg3wh2f.fsf@localhost> X-Provags-ID: V03:K1:LbVrKD9jTz4EQdkghDG4/Gc+xXzf9Y4RQ0ZVi8MQiLQxBrXT9Kh uvlPJ7vojsIcVPFkXjROtOU3iQ1siqjSfge9jFKBuhaxqS7QpMV/TOArRin5BsykOKFJ0pE bY3L2Hm8e8niKoxvc03ZmoNdPZS5YmTvE204jAjkZPt9mgUUoSC+IpJRyfiqvwKAqOSDPlU FWbaGpBSpQ+AzZXghimlg== UI-OutboundReport: notjunk:1;M01:P0:O+gZFrvwwL0=;d/YWm7Ydn36oHfSAwTTGLe+k1N9 84MxnRLh1Ht0tsv3+Sx9490HzLCnNz2amuD/OPYBJ/cLE3NNAZNwKItufTETzSRMxL301rWPJ uNN77uLB3igTD+PJAUGZJLmB0s0TA/w6/sJCmEW2yjM6CgP+EWLQ/be8qgfkoA3x8G/ISw50F K730ULjaZmlbEWhJsn6DqAMGJzhLDVa5BYIH4Ald/Pzu2dzYwJhZQI16QL6kLtnPiNNEGY+3H aMZk2P/yU6c61ipkaGmbSVRiLLJ7EmIWL7uqSbc19lDFygw6bYFE3+KuzyUNDJdOEos/jAkKD NqpCP6cwUSZu37DK0l/xNmesAJgZeQabKfRweb8R8XXTLcsjPFvJnLxfK8R4AK3U1xckKDk4X G+Icn8W3QUGTbOJVQs7xRML7GGF5MgqD8xxEKYBnrBiXambypWxBPYypiLLVxkPWnRL9uF1YY R2wUlQfIZv7sHUYr8hi6zF+R3BjaY/mGV+RltXu0FLjZswX9V8/XiI2yjBX4NBgYYtQNy4xZC T9Tl8iysrPPyom36QH3pX5zm0ljqcknEbQdA0VChQutdW/sdedZGu6Ggszwrx3p8UZ5fAIK9Y kh4fpVqWenhc3IvTG1fh7iz4EsR1G5pCcVNi8rCNoPFAoHEc03ytyuxwASvTWEExs0Rj2/r26 ZwN7aeo9LxbSK2N/HCEkTCJFKW4i/fsKma0h0iMiXU/loFQZi2Sb85ffqfSd/hZd3iG3n7OlP 1oD8QDyhWqCCDPa0Pdyx4TuLZT3KKmXP6IJnMvF7QI7pIaaCVmO0MUZ5/CDfFCC6wnxgp2mf Received-SPF: pass client-ip=212.227.15.14; envelope-from=arne_bab@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304327 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > Eli Zaretskii writes: > >>> With the main risk being that we could go OOM, could Emacs evaluate the >>> available memory on the system on systems that support that check? >> >> It can, but what would you want to do with that value? >> >> We cannot use it as the threshold, for the reasons I explained >> earlier. We could use some fraction of it, but what fraction? The >> answer depends on what other programs routinely run on that system. >> For example, if the user is likely to run another full-fledged session >> of Emacs (some people actually do that, e.g., to run Gnus in a >> separate process), then using 1/2 of the amount of VM as the threshold >> is out of the question, right? And there are memory-hogging programs >> out there which use much more than Emacs does. > > What is the smallest practical free RAM available to Emacs on low-end sys= tems? > We can take that value and then use 800kb/min free RAM in the wild and > the base threshold. On system with larger RAM the threshold will scale. It=E2=80=99s not that simple =E2=80=94 at least outside loading the init fi= le. If you increase this fraction, then GC pauses will be longer and Emacs may feel jittery or even become unresponsive for some time. So there should likely be also a hard upper limit to ensure that the pauses are unnoticeable. Best wishes, Arne =2D-=20 Unpolitisch sein hei=C3=9Ft politisch sein, ohne es zu merken. draketo.de --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEE801qEjXQSQPNItXAE++NRSQDw+sFAmQMqp0QHGF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