Gnus development mailing list
 help / color / mirror / Atom feed
* memory use/leak with agent & unplugged
@ 2017-10-19  8:26 Eric S Fraga
  2017-10-19 17:14 ` Eric S Fraga
  0 siblings, 1 reply; 2+ messages in thread
From: Eric S Fraga @ 2017-10-19  8:26 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 3422 bytes --]

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) (strings 16 262032 35454) (string-bytes 1 7203166) (vectors 8 121135) (vector-slots 4 3055979 29232) (floats 8 8821 489) (intervals 28 31116 3459) (buffers 520 60))

 =>	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
-- 
: 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)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-19 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-19  8:26 memory use/leak with agent & unplugged Eric S Fraga
2017-10-19 17:14 ` Eric S Fraga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).