From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.help Subject: memory leaks Date: Fri, 20 Sep 2019 12:53:46 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="14082"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 20 09:43:14 2019 Return-path: Envelope-to: geh-help-gnu-emacs@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 1iBDZS-0003W8-CG for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Sep 2019 09:43:14 +0200 Original-Received: from localhost ([::1]:53834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBDZQ-00019Y-9v for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Sep 2019 03:43:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60606) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBDZB-00019P-P0 for help-gnu-emacs@gnu.org; Fri, 20 Sep 2019 03:42:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBDZA-00058c-O6 for help-gnu-emacs@gnu.org; Fri, 20 Sep 2019 03:42:57 -0400 Original-Received: from [117.193.24.149] (port=35988 helo=localhost.localdomain) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iBDZA-000563-4O for help-gnu-emacs@gnu.org; Fri, 20 Sep 2019 03:42:56 -0400 Original-Received: (qmail 25721 invoked by uid 500); 20 Sep 2019 07:23:46 -0000 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 117.193.24.149 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121532 Archived-At: There is obviously some memory leak in emacs and I don't know how to trace the culprit. Emacs lops up 2GB RSS: ps axuw |grep emacs USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND madhu 5434 6.9 54.2 2235612 2115564 ? SNsl Sep19 66:42 emacs --daemon --debug-init (garbage-collect) shows ((conses 16 981544 136697) (symbols 48 56864 5) (strings 32 312273 12669) (string-bytes 1 18002558) (vectors 16 68285) (vector-slots 8 1780950 150102) (floats 8 1089 2405) (intervals 56 6605 2469) (buffers 992 79)) So does this look like a X fonts issue? How can I figure out which package is the culprit. 1. Emacs has a bug where I can't look at /proc/5434/emacs from within emacs it will only read 16384 bytes from the proc filesystem 2. Trying to Unload a feature hits all sorts of design and implementation bugs with the cl-generics scourge which is unfortunately used to implement emacs. Is unloading features likely to help at all in reducing the memory and getting a clue about the errant package?