unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Eli Zaretskii <eliz@gnu.org>,
	Philip Kaludercic <philipk@posteo.net>,
	emacs-devel@gnu.org
Subject: Re: [ELPA] New package: emacs-gc-stats
Date: Sat, 10 Jun 2023 10:13:26 +0000	[thread overview]
Message-ID: <87sfaztyk9.fsf@localhost> (raw)
In-Reply-To: <jwvsfb06287.fsf-monnier+emacs@gnu.org>

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I'd like to submit a helper package to collect GC statistics during
>> Emacs session. See the discussion in
>> https://yhetil.org/emacs-devel/831qluuj7e.fsf@gnu.org/
>
> Let me know if you need help adding the package (I couldn't find a URL
> for the code, so I have no opinion about it (yet :-))

Oops... https://git.sr.ht/~yantar92/emacs-gc-stats

This is my first time submitting to ELPA, so I just tried to follow ELPA
README.

> I haven't read the above discussion but I'll just point out that
> I regard discussions that focus on `gc-cons-threshold` to reflect
> a misunderstanding.  What needs to be discussed/tweaked/investigated is
> usually `gc-cons-percentage` instead.
>
> More specifically the default value of `gc-cons-threshold` is rarely
> used, since in most relevant circumstances `gc-cons-percentage` takes
> precedence).

I do not necessarily agree, but we should discuss it in the linked
thread, not here. The package just collects the statistics, including
`gc-cons-threshold', `gc-cons-percentage', and GC stats after every GC.

If the package gets added to ELPA, we can discuss further about what
kind of data we want to collect. Then, I can alter the README with
better instructions and go ahead asking Emacs users to record and later
report the data.

> PS: In recent Emacsen, `gc-cons-percentage` is set to 1.0 when running in
>     batch.  In non-batch I currently use 0.5 together with a timer that
>     tries to opportunistically run the GC during idle time.

This is yet another thing we can ask users to test, if we want to.
My idea is have users set GC settings randomly in their init file,
selecting from pre-configured set of alternatives we are yet to discuss.

-- 
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>



  reply	other threads:[~2023-06-10 10:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-14 17:03 [ELPA] New package: emacs-gc-stats Ihor Radchenko
2023-06-09  9:14 ` Ihor Radchenko
2023-06-09 10:17   ` Eli Zaretskii
2023-06-09 16:19     ` Stefan Monnier
2023-06-10 10:13       ` Ihor Radchenko [this message]
2023-06-10 16:33         ` Stefan Monnier
2023-06-11  9:15           ` Ihor Radchenko
2023-06-11  9:12             ` Philip Kaludercic
2023-06-11  9:37               ` Ihor Radchenko
2023-06-11 15:51             ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfaztyk9.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=philipk@posteo.net \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).