From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Emacs memory management and sluggishness Date: Thu, 01 Aug 2019 00:19:45 +0200 Message-ID: <87a7ctrgn2.fsf@telefonica.net> References: <87k1c44n7y.fsf@telefonica.net> <83d0hwm0fc.fsf@gnu.org> <87ef2b4pti.fsf@telefonica.net> <83sgqrlim1.fsf@gnu.org> <8736ir3uj0.fsf@telefonica.net> <83imrmlw7y.fsf@gnu.org> <86blxakjrc.fsf@phe.ftfl.ca> <87ef25rhiu.fsf@telefonica.net> <8636illum6.fsf@phe.ftfl.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="85717"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Joseph Mingrone Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 01 00:20:19 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hswxC-000M2v-Lw for ged-emacs-devel@m.gmane.org; Thu, 01 Aug 2019 00:20:14 +0200 Original-Received: from localhost ([::1]:44844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hswxA-0000nz-VQ for ged-emacs-devel@m.gmane.org; Wed, 31 Jul 2019 18:20:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35462) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hswwq-0000mM-0Z for emacs-devel@gnu.org; Wed, 31 Jul 2019 18:19:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hswwo-0007IK-PR for emacs-devel@gnu.org; Wed, 31 Jul 2019 18:19:51 -0400 Original-Received: from relayout02-redir.e.movistar.es ([86.109.101.202]:45209) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hswwo-0007GC-JB for emacs-devel@gnu.org; Wed, 31 Jul 2019 18:19:50 -0400 Original-Received: from sky (162.red-79-151-6.dynamicip.rima-tde.net [79.151.6.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout02.e.movistar.es (Postfix) with ESMTPSA id 45zSXL0qBjzdbKb; Thu, 1 Aug 2019 00:19:45 +0200 (CEST) In-Reply-To: <8636illum6.fsf@phe.ftfl.ca> (Joseph Mingrone's message of "Wed, 31 Jul 2019 19:14:25 -0300") X-CTCH-Score: 0.000 X-CTCH-ScoreCust: 0.000 X-TnetOut-Country: IP: 79.151.6.162 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout02 X-TnetOut-MsgID: 45zSXL0qBjzdbKb.AA30D X-TnetOut-SpamCheck: no es spam, Unknown X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1565216387.58091@bw+cceXSQpABQ8iE8uiaEQ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 86.109.101.202 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239072 Archived-At: Joseph Mingrone writes: > =C3=93scar Fuentes writes: > >> Joseph Mingrone writes: > >>> I am seeing even more aggressive memory usage with recent master branch >>> commits (at least I think this only started in the last month or so). >>> Here is a screenshot that shows over 3 GB of >>> RSS. https://ftfl.ca/misc/emacs_memory.png > >>> This was running commit 06726f6 from today on 12.0-RELEASE-p8. I run >>> Gnus, erc, look at an occasional PDF and edit text. I haven't visited >>> any extremely large buffers recently. Garbage collection is happening, >>> but it does not seem to help. But, when I call `garbage-collect' >>> manually there will be a long pause if I haven't called it recently, >>> then the memory will usually go down to something between 100 and 400 >>> MB. > >> Do the garbage collection, take note of the used memory, visit one of >> those PDF files (preferably one with large, complex & colorful images) >> move around for several pages and see if emacs' memory usage grows. > > It went from 440 to about 500 MB. This was a book with 1200 > pages and the PDF was about 3 MB. How many pages of those 1200 you viewed? Do you use PDF-Tools or Doc View? If you execute `garbage-collect' does the memory go down? I'm asking all this because one of the possibilities is a leak on the image handling code.