From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Observing lags or never ending processes Date: Sat, 17 Sep 2022 09:00:42 +0300 Message-ID: <83illm35h1.fsf@gnu.org> References: <83bkrm9ype.fsf@gnu.org> <83v8pu8312.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40346"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 17 08:01:53 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1oZQtk-000AKI-UA for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 08:01:53 +0200 Original-Received: from localhost ([::1]:50632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZQtj-00007X-Ms for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 02:01:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZQsh-00005B-MI for help-gnu-emacs@gnu.org; Sat, 17 Sep 2022 02:00:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40558) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZQsh-0005Qr-Dd for help-gnu-emacs@gnu.org; Sat, 17 Sep 2022 02:00:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=XRBPECRG110OoPf2aAa7aH87pgfuHXAoaSqzeQ72dmw=; b=p0Dd1k7Plp28 EYqBDEf02JKQKtSZ7FIZs+J/FGCQ3naOvTeDgv4ycPHDvqLzFHg4qxeomGfSqTbUuAgbsF6KpmxGb MYv+7tUc/WaReR3XNhuTfz8qwme3jQPRrqtS9OBUxpdZIwsPLuqwu09IgrXEOxYFJxxh2UQSVO3b5 a/Csedea1xC/RO0sWnjODLTIt0hiAfSAj9RtHoqeU4oz8O8ki1+Ph5ziMbm7OklDntArZcxGHtwXU 7/b0MNa8jBFgeIBrOg0DgEpHtNZxdbEfdT+h8rHDFDG9lpuW83nTDiJW4AC0Ix5NSTZciaE5dhdML eApbXLqaZpunvNCvKvl/ZQ==; Original-Received: from [87.69.77.57] (port=3391 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZQsf-0003Sa-68 for help-gnu-emacs@gnu.org; Sat, 17 Sep 2022 02:00:47 -0400 In-Reply-To: (message from Jean Louis on Fri, 16 Sep 2022 22:06:28 +0300) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139545 Archived-At: > Date: Fri, 16 Sep 2022 22:06:28 +0300 > From: Jean Louis > Cc: help-gnu-emacs@gnu.org > > * Eli Zaretskii [2022-09-11 16:18]: > > I suggest to begin by saying > > > > M-x set-variable RET garbage-collection-messages RET t RET > > > > and then see if, when "something starts in the background", you see > > the telltale "Garbage collecting..." message in the echo area. > > I have observed it and I think that sometimes garbage collection is > invoked without message being visible I don't believe this is possible. But if GC is responsible for those "lags", then it's normal Emacs operation, and you should look into changing your use patterns and packages you load so as to make the memory footprint of your Emacs sessions smaller, preferably so that it is never swapped out of physical memory. If you customized the GC threshold to a much higher value, lower it. Or maybe you have some other memory-intensive programs on your system that create situations where some of Emacs's memory is swapped out. These are all reasons for GC being much slower than it's supposed to be.