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: [ELPA] New package: emacs-gc-stats Date: Sat, 10 Jun 2023 10:13:26 +0000 Message-ID: <87sfaztyk9.fsf@localhost> References: <87ttxil7k3.fsf@localhost> <87bkhpuheb.fsf@localhost> <83r0ql0wji.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35236"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Philip Kaludercic , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 10 12:09:39 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 1q7vXO-00092O-N9 for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Jun 2023 12:09:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7vWY-0006u0-0P; Sat, 10 Jun 2023 06:08:46 -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 1q7vWW-0006ta-4P for emacs-devel@gnu.org; Sat, 10 Jun 2023 06:08:44 -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 1q7vWU-0002dT-2v for emacs-devel@gnu.org; Sat, 10 Jun 2023 06:08:43 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 51BC2240105 for ; Sat, 10 Jun 2023 12:08:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686391719; bh=X7mUK+lAWkt11gEwY0gyOCTJmroVO+keCNBsF+ggbUo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=QuRP/UJJG2+5gRz5kp4R7hTLJYSs8wtKKJqR1Vs7UmIMv5s3fyE9Wrk323OMIfV8C gVn8Dj5snD/S3rzX/a3M4vTEiNoWRZ2owNrahTuzC419XTvILYwVW23ZtumZHHA3da FjagaNm64N0LIxHMJetvn3yFJR+gI/zUHyZv0oj9L0B+DILK8eIp0CO/QVBGoHCcPx a7X89670nos2xyvobrUGmagZBUTTxLCZT2aUN7Wbox1K50ON43TMddrdkvGn0nTu/u WBYhkxXIcc2lkh0qpHSnWR8aqb0FRRcc748vuh5Ii0YpGacqZz/UgH+WLToFTBsikx V8ybT9E8yvPcw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QdYYy4bWHz6txq; Sat, 10 Jun 2023 12:08:38 +0200 (CEST) In-Reply-To: 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:306716 Archived-At: Stefan Monnier 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 . Support Org development at , or support my work at