From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Indentation and gc Date: Mon, 13 Mar 2023 15:09:50 +0000 Message-ID: <87zg8gbsch.fsf@localhost> 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> <83cz5fwggd.fsf@gnu.org> <871qlvwg1s.fsf@localhost> <83a60jwf9l.fsf@gnu.org> <871qluuk3y.fsf@localhost> <831qluuj7e.fsf@gnu.org> <87v8j6t3i9.fsf@localhost> <83v8j6t2ib.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27010"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arne_bab@web.de, spacibba@aol.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 13 16:09:16 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 1pbjnX-0006og-Ni for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Mar 2023 16:09:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbjmk-0002P4-TZ; Mon, 13 Mar 2023 11:08:26 -0400 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 1pbjmi-0002Mw-Kh for emacs-devel@gnu.org; Mon, 13 Mar 2023 11:08:24 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbjmg-0007ZT-9Y for emacs-devel@gnu.org; Mon, 13 Mar 2023 11:08:24 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 68EA3240480 for ; Mon, 13 Mar 2023 16:08:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678720100; bh=M/gViqy2HdeuTCL65QEGBjhz7tkdonzrKuZjTa12N2M=; h=From:To:Cc:Subject:Date:From; b=mOuOxMbXejUSDm9qP5Zb5KjMMzmw5tQ/q0ywk4I96YLo+U03BO3NUlC1swUDD6n/P Zp2QGvIXjeOxQrKo75p3ccijpQIgkmYI42lxbTEO7z9L+8dmXYwzEBeaQHXDV3a6fD ZxqHNVBYdinixtuMFQHfQU3+lUAdgoMXhqcD4nykIgAVRmx8gCbMD6EdXmaQSCTgDu mA8wk/4Zf5wF93kGi07ECK8qNS+XvbBVQ0/mNDS8H4FliWm4hSmbU17MTye8ofWlrl ROFQJoZOk/dFBexR9xI48s3WcwGwSA+/B/3iMsKDkVrSi9G00Is30P+Gr0g5Ky0XFZ fcgIyX0PwqAkQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Pb0Qp6qvXz6tmN; Mon, 13 Mar 2023 16:08:18 +0100 (CET) In-Reply-To: <83v8j6t2ib.fsf@gnu.org> Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:304397 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> Session statistics is much harder to gather. >> It is more realistic to ask people about benchmarking their init.el if >> we want to be serious about bumping gc-cons-threshold. > > We should ask them to report statistics after running a session for > enough time. What exactly qualifies as "enough time" depends on the > usage patterns: there are people, like me, who run a single session > for weeks on end, and there are others who start a new session every > day or even more frequently. What is interesting is the statistics > near the end of the session. > > Statistics from loading init.el is much less interesting, mainly > because reducing GC impact during such short intervals is easy and > well-understood. We could collect such statistics as well, but it is > not the main goal from where I stand. I think we can ask interested users to install a package like https://git.sr.ht/~yantar92/emacs-gc-stats/tree/main/item/emacs-gc-stats.el Then, they can share the results after running Emacs with the package for some time. See the attached statistics data example. WDYT? >> That's why I am seeing reducing the frequency of GCs as more important >> than trying to reduce GC time, which cannot be even halved easily. > > A single very long GC will be annoying even if it happens rarely. So > I don't agree the frequency of GCs is so much more important than the > time it takes to perform a GC. I do not really mean that it is not important. But there is little Emacs can do about the memory consumption. It mainly depends on the third-party packages being used. In contrast, GC frequency is something that can be tweaked easily on Emacs side by altering GC thresholds. >> >> - memory-limit 6,518,516, stable >> > >> > ??? That's 6 GiB. Didn't you say your memory footprint stabilizes at >> > 1 GiB? >> >> memory-limit is a natively compiled function defined in subr.el. > > If the Emacs memory usage in system monitor is 1.7 Gib, how come > memory-limit says it's 6.5 GiB? 6.5Gib is virtual memory. 1.7Gib is actually used memory - the value people usually mean when considering memory footprint. --=-=-= Content-Type: application/octet-stream Content-Disposition: inline; filename=emacs-gc-stats.eld Content-Transfer-Encoding: base64 KCgoIkluaXRpYWwgc3RhdHMiICJNb24gTWFyIDEzIDE1OjUwOjU5IDIwMjMiCiAgIChnYy1jb25z LXRocmVzaG9sZCAuIDgwMDAwMCkKICAgKGdjLWNvbnMtcGVyY2VudGFnZSAuIDAuMSkKICAgKG1l bW9yeS1saW1pdCAuIDE5ODkyNCkKICAgKGVtYWNzLXZlcnNpb24gLiAiMzAuMC41MCIpCiAgICht ZW1vcnktaW5mbyAxNTk5NjE1MiA3NzYwMTY4IDIwOTcxNTE2IDE2NTY4NTA0KSkKICAoIk1vbiBN YXIgMTMgMTU6NTE6MDggMjAyMyIKICAgKGdjLWNvbnMtdGhyZXNob2xkIC4gMjUwMDAwMDAwKQog ICAoZ2MtY29ucy1wZXJjZW50YWdlIC4gMC4wMDAxKQogICBnY21oLW1vZGUKICAgKGdjLWVsYXBz ZWQgLiAwLjEzMDE3OTAyNikKICAgKGdjcy1kb25lIC4gMTQpCiAgICh0aGlzLWNvbW1hbmQpCiAg IChtZW1vcnktbGltaXQgLiA3NDgzNjApKQogICgiTW9uIE1hciAxMyAxNTo1MTowOCAyMDIzIgog ICAoZ2MtY29ucy10aHJlc2hvbGQgLiAyNTAwMDAwMDApCiAgIChnYy1jb25zLXBlcmNlbnRhZ2Ug LiAwLjAwMDEpCiAgIGdjbWgtbW9kZQogICAoZ2MtZWxhcHNlZCAuIDAuMTMwMTc5MDI2KQogICAo Z2NzLWRvbmUgLiAxNCkKICAgKHRoaXMtY29tbWFuZCkKICAgKG1lbW9yeS1saW1pdCAuIDc0ODM2 MCkpCiAgKCJJbml0LmVsIHN0YXRzIiAiTW9uIE1h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21tYW5kIC4gb3JnLXNhdmUt YWxsLW9yZy1idWZmZXJzKQogICAobWVtb3J5LWxpbWl0IC4gMTU3MjAwOCkpCiAgKCJNb24gTWFy IDEzIDE2OjAwOjA5IDIwMjMiCiAgIChnYy1jb25zLXRocmVzaG9sZCAuIDI1MDAwMDAwMCkKICAg KGdjLWNvbnMtcGVyY2VudGFnZSAuIDAuMDAwMSkKICAgZ2NtaC1tb2RlCiAgIChnYy1lbGFwc2Vk IC4gMi43ODgwNjQ3NjkpCiAgIChnY3MtZG9uZSAuIDE4KQogICAodGhpcy1jb21tYW5kIC4gc2Vs Zi1pbnNlcnQtY29tbWFuZCkKICAgKG1lbW9yeS1saW1pdCAuIDE0ODM0ODQpKQogICgiU2Vzc2lv biBlbmQgc3RhdHMiICJNb24gTWFyIDEzIDE2OjAyOjM4IDIwMjMiCiAgIChnYy1jb25zLXRocmVz aG9sZCAuIDI1MDAwMDAwMCkKICAgKGdjLWNvbnMtcGVyY2VudGFnZSAuIDAuMDAwMSkKICAgKGdj LWVsYXBzZWQgLiA1Ljc4NDc4MDExNCkKICAgKGdjcy1kb25lIC4gMTkpCiAgIChtZW1vcnktbGlt aXQgLiAxNjE1MzUyKQogICAoZW1hY3MtdXB0aW1lIC4gIjExIG1pbnV0ZXMsIDQyIHNlY29uZHMi KSkpKQo= --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--