From: Ihor Radchenko <yantar92@posteo.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: arne_bab@web.de, spacibba@aol.com, emacs-devel@gnu.org
Subject: Re: Indentation and gc
Date: Mon, 13 Mar 2023 15:09:50 +0000 [thread overview]
Message-ID: <87zg8gbsch.fsf@localhost> (raw)
In-Reply-To: <83v8j6t2ib.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2162 bytes --]
Eli Zaretskii <eliz@gnu.org> 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.
[-- Attachment #2: emacs-gc-stats.eld --]
[-- Type: application/octet-stream, Size: 2000 bytes --]
((("Initial stats" "Mon Mar 13 15:50:59 2023"
(gc-cons-threshold . 800000)
(gc-cons-percentage . 0.1)
(memory-limit . 198924)
(emacs-version . "30.0.50")
(memory-info 15996152 7760168 20971516 16568504))
("Mon Mar 13 15:51:08 2023"
(gc-cons-threshold . 250000000)
(gc-cons-percentage . 0.0001)
gcmh-mode
(gc-elapsed . 0.130179026)
(gcs-done . 14)
(this-command)
(memory-limit . 748360))
("Mon Mar 13 15:51:08 2023"
(gc-cons-threshold . 250000000)
(gc-cons-percentage . 0.0001)
gcmh-mode
(gc-elapsed . 0.130179026)
(gcs-done . 14)
(this-command)
(memory-limit . 748360))
("Init.el stats" "Mon Mar 13 15:51:10 2023"
(gc-cons-threshold . 250000000)
(gc-cons-percentage . 0.0001)
(gc-elapsed . 0.277816909)
(gcs-done . 15)
(memory-limit . 757600)
(emacs-uptime . "14 seconds"))
("Mon Mar 13 15:51:33 2023"
(gc-cons-threshold . 250000000)
(gc-cons-percentage . 0.0001)
gcmh-mode
(gc-elapsed . 0.277816909)
(gcs-done . 15)
(this-command . org-agenda)
(memory-limit . 963332))
("Mon Mar 13 15:51:37 2023"
(gc-cons-threshold . 250000000)
(gc-cons-percentage . 0.0001)
gcmh-mode
(gc-elapsed . 0.425213479)
(gcs-done . 16)
(this-command . org-agenda)
(memory-limit . 1209092))
("Mon Mar 13 15:54:07 2023"
(gc-cons-threshold . 250000000)
(gc-cons-percentage . 0.0001)
gcmh-mode
(gc-elapsed . 0.643833105)
(gcs-done . 17)
(this-command . org-save-all-org-buffers)
(memory-limit . 1572008))
("Mon Mar 13 16:00:09 2023"
(gc-cons-threshold . 250000000)
(gc-cons-percentage . 0.0001)
gcmh-mode
(gc-elapsed . 2.788064769)
(gcs-done . 18)
(this-command . self-insert-command)
(memory-limit . 1483484))
("Session end stats" "Mon Mar 13 16:02:38 2023"
(gc-cons-threshold . 250000000)
(gc-cons-percentage . 0.0001)
(gc-elapsed . 5.784780114)
(gcs-done . 19)
(memory-limit . 1615352)
(emacs-uptime . "11 minutes, 42 seconds"))))
[-- Attachment #3: Type: text/plain, Size: 224 bytes --]
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2023-03-13 15:09 UTC|newest]
Thread overview: 99+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230310110747.4hytasakomvdyf7i.ref@Ergus>
2023-03-10 11:07 ` Indentation and gc Ergus
2023-03-10 14:36 ` Dr. Arne Babenhauserheide
2023-03-10 14:54 ` Eli Zaretskii
2023-03-10 19:23 ` Dr. Arne Babenhauserheide
2023-03-11 6:38 ` Eli Zaretskii
2023-03-11 6:55 ` Dr. Arne Babenhauserheide
2023-03-11 7:56 ` Eli Zaretskii
2023-03-11 12:34 ` Dr. Arne Babenhauserheide
2023-03-11 13:08 ` Eli Zaretskii
2023-03-11 13:31 ` Ihor Radchenko
2023-03-11 13:44 ` Eli Zaretskii
2023-03-11 13:53 ` Ihor Radchenko
2023-03-11 14:09 ` Eli Zaretskii
2023-03-12 14:20 ` Ihor Radchenko
2023-03-12 14:40 ` Eli Zaretskii
2023-03-12 15:04 ` Ihor Radchenko
2023-03-12 15:26 ` Eli Zaretskii
2023-03-13 15:09 ` Ihor Radchenko [this message]
2023-03-13 15:37 ` Eli Zaretskii
2023-03-13 15:45 ` Ihor Radchenko
2023-03-13 16:58 ` Eli Zaretskii
2023-03-13 18:04 ` Ihor Radchenko
2023-03-14 12:19 ` Eli Zaretskii
2023-03-15 10:28 ` Ihor Radchenko
2023-03-15 12:54 ` Eli Zaretskii
2023-03-15 12:59 ` Ihor Radchenko
2023-03-15 14:20 ` Eli Zaretskii
2023-03-16 10:27 ` Ihor Radchenko
2023-04-06 9:13 ` Ihor Radchenko
2023-04-08 8:04 ` Eli Zaretskii
2023-04-08 8:15 ` Ihor Radchenko
2023-04-08 10:03 ` Eli Zaretskii
2023-04-14 17:07 ` Ihor Radchenko
2023-04-14 17:56 ` Eli Zaretskii
2023-03-13 18:14 ` Gregor Zattler
2023-03-14 12:30 ` Eli Zaretskii
2023-03-14 15:19 ` Gregor Zattler
2023-03-11 16:19 ` Dr. Arne Babenhauserheide
2023-03-12 13:27 ` Ihor Radchenko
2023-03-12 14:10 ` Eli Zaretskii
2023-03-12 14:50 ` Ihor Radchenko
2023-03-12 15:13 ` Eli Zaretskii
2023-03-12 17:15 ` Gregor Zattler
2023-03-12 20:07 ` Eli Zaretskii
2023-03-13 15:01 ` Ihor Radchenko
2023-03-13 15:33 ` Eli Zaretskii
2023-03-13 15:39 ` Ihor Radchenko
2023-03-13 15:39 ` Eli Zaretskii
2023-03-13 16:04 ` Ihor Radchenko
2023-03-13 16:52 ` Eli Zaretskii
2023-03-14 12:47 ` Ihor Radchenko
2023-03-14 13:09 ` Eli Zaretskii
2023-03-15 10:29 ` Ihor Radchenko
2023-03-13 15:41 ` Eli Zaretskii
2023-03-14 13:01 ` Ihor Radchenko
2023-03-11 10:54 ` Ihor Radchenko
2023-03-11 11:17 ` Ergus
2023-03-11 11:23 ` Ihor Radchenko
2023-03-11 12:31 ` Eli Zaretskii
2023-03-11 12:39 ` Ihor Radchenko
2023-03-11 12:40 ` Eli Zaretskii
2023-03-11 12:54 ` Ihor Radchenko
2023-03-11 13:01 ` Dr. Arne Babenhauserheide
2023-03-11 13:14 ` Eli Zaretskii
2023-03-11 13:38 ` Ihor Radchenko
2023-03-11 13:46 ` Eli Zaretskii
2023-03-11 13:54 ` Ihor Radchenko
2023-03-11 14:11 ` Eli Zaretskii
2023-03-11 14:18 ` Ihor Radchenko
2023-03-11 14:20 ` Eli Zaretskii
2023-03-11 14:31 ` Ihor Radchenko
2023-03-11 15:32 ` Eli Zaretskii
2023-03-11 15:52 ` Lynn Winebarger
2023-03-11 16:24 ` Eli Zaretskii
2023-03-11 17:10 ` Gregor Zattler
2023-03-11 17:25 ` Eli Zaretskii
2023-03-11 18:35 ` Gregor Zattler
2023-03-11 18:49 ` Eli Zaretskii
2023-03-13 12:45 ` Ihor Radchenko
2023-03-13 12:51 ` Eli Zaretskii
2023-06-14 14:16 ` Ihor Radchenko
2023-06-14 15:36 ` Eli Zaretskii
2023-06-14 15:58 ` Ihor Radchenko
2023-06-14 16:07 ` Eli Zaretskii
2023-06-16 10:00 ` Ihor Radchenko
2023-06-16 10:33 ` Eli Zaretskii
2023-06-16 11:03 ` Ihor Radchenko
2023-06-16 11:34 ` Eli Zaretskii
2023-06-21 10:37 ` Ihor Radchenko
2023-06-21 11:11 ` Eli Zaretskii
2023-03-11 13:00 ` Po Lu
2023-03-11 12:37 ` Eli Zaretskii
2023-03-11 13:10 ` Ihor Radchenko
2023-03-11 13:38 ` Eli Zaretskii
2023-03-10 14:52 ` Eli Zaretskii
2023-03-10 21:30 ` Ergus
2023-03-11 6:52 ` Eli Zaretskii
2023-03-21 7:11 ` Jean Louis
2023-03-21 7:27 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zg8gbsch.fsf@localhost \
--to=yantar92@posteo.net \
--cc=arne_bab@web.de \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=spacibba@aol.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.