From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87761 Path: news.gmane.org!.POSTED!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.gnus.general Subject: memory use/leak with agent & unplugged Date: Thu, 19 Oct 2017 10:26:38 +0200 Organization: On the Interweb somewhere Message-ID: <87d15j1r29.fsf@ucl.ac.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1508427370 8147 195.159.176.226 (19 Oct 2017 15:36:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Oct 2017 15:36:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m35975@lists.math.uh.edu Thu Oct 19 17:36:04 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048034.atla03.us.yomura.com ([107.189.48.34]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5CrS-0000Au-F0 for ding-account@gmane.org; Thu, 19 Oct 2017 17:35:54 +0200 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048034.atla03.us.yomura.com (Halon) with ESMTPS id 345059cb-b4e3-11e7-8a16-b499baa2b07a; Thu, 19 Oct 2017 15:35:58 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1e5Cqp-00086Q-Ek; Thu, 19 Oct 2017 10:35:15 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1e5Cql-00085u-Tc for ding@lists.math.uh.edu; Thu, 19 Oct 2017 10:35:11 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1e5Cqk-0000KZ-0A for ding@lists.math.uh.edu; Thu, 19 Oct 2017 10:35:11 -0500 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1e5Cqh-0006BL-Hu for ding@gnus.org; Thu, 19 Oct 2017 17:35:07 +0200 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1e5Cpz-0007O7-U8 for ding@gnus.org; Thu, 19 Oct 2017 17:34:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 113 Original-X-Complaints-To: usenet@blaine.gmane.org X-Url: http://www.ucl.ac.uk/~ucecesf/ Cancel-Lock: sha1:a/oqmfOtY3NST1y/Pie31KFZfWg= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87761 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, When travelling, I often use an OpenPandora system as my device for email, running Debian GNU/Linux with Emacs and gnus. This system has 512MB RAM and 512MB swap. Using gnus while connected and plugged, everything is fine. However, if unplugged, memory use goes crazy and I end up swapping which is not good. This situation, I believe, arose when I switched from emacs 24 to emacs 25 a few months ago. The following table shows various memory statistics from "top": | step | virt | res | mem% | | | | [M] | [M] | [%] | | |-------------+------+-----+------+-------------------------| | start emacs | 109 | 58 | 11 | | | start gnus | 172 | 121 | 24 | | | imap | 182 | 130 | 26 | gmail server 15k emails | | nntp | 368 | 237 | 47 | gmane.emacs.devel | | exit gnus | 368 | 275 | 55 | | If plugged, the number change very little from the first row. At the end, when unplugged, the following is what M-x memory-usage RET gives: #+begin_example Garbage collection stats: ((conses 8 1776261 143972) (symbols 24 77015 517) (miscs 20 5770 4545) (str= ings 16 262032 35454) (string-bytes 1 7203166) (vectors 8 121135) (vector-s= lots 4 3055979 29232) (floats 8 8821 489) (intervals 28 31116 3459) (buffer= s 520 60)) =3D> 13.6MB (+ 1.10MB dead) in conses 1.76MB (+ 12.1kB dead) in symbols 113kB (+ 88.8kB dead) in miscs 4.00MB (+ 554kB dead) in strings 6.87MB in string-bytes 946kB in vectors 11.7MB (+ 114kB dead) in vector-slots 68.9kB (+ 3.82kB dead) in floats 851kB (+ 94.6kB dead) in intervals 30.5kB in buffers Total in lisp objects: 41.7MB (live 39.8MB, dead 1.95MB) Buffer ralloc memory usage: 34 buffers 3.40MB total ( 304kB in gaps) Size Gap Name 379216 2000 bbdb 285221 2000 admin.org 253738 2000 *http micronews.debian.org:443*-139418 253738 2000 *http micronews.debian.org:443*-885988 253736 2000 *http micronews.debian.org:443* 253736 2000 *http micronews.debian.org:443*-102903 253736 2000 *http micronews.debian.org:443*-914464 253733 2000 *http micronews.debian.org:443*-865692 253733 2000 *http micronews.debian.org:443*-154399 253733 2000 *http micronews.debian.org:443*-774764 253733 2000 *http micronews.debian.org:443*-9081 167436 2000 diary.org 109635 2000 org-clock.el 17969 143 *imap log* 11512 568 *Messages* 1398 2000 dropbox.org 725 1541 *Buffer Details* 432 1589 memstats.org 210 1811 *Fancy Diary Entries* 141 2000 *scratch* 120 1912 *BBDB* 76 1999 *Compile-Log* 71 1999 *WoMan-Log* 56 2000 diary 35 2000 *Minibuf-0* 34 2002 *canonical address* 13 255084 *code-conversion-work* 7 2021 *Echo Area 0* 7 2017 *Echo Area 1* 0 2151 *Minibuf-1* 0 20 *EMMS Playlist* 0 20 *ESS* 0 2036 *extract address components* 0 20 *Quail Completions* #+end_example I have no idea where the memory is going. Any pointers etc. would be most welcome! Thanks, eric =2D-=20 : Eric S Fraga : in Emacs 25.2.2 + Gnus v5.13 + evil-git-bdeb602 : BBDB version 3.1.2 (2017-01-30 14:47:26+00:00) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWehhvgAKCRDIkZPY//z2 fblcAJ9BFonVgwK9WNdiIYGxErApwQDxmwCfQFAV/eIn8Bv2FM69jrDDW+V5bRk= =Vd+j -----END PGP SIGNATURE----- --=-=-=--