From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Memory again Date: Wed, 25 Jan 2012 10:19:53 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87obtrhhzq.fsf@lifelogs.com> References: <4ED0F945.5090805@yandex.ru> <83pqge7syw.fsf@gnu.org> <87mxb6tkji.fsf@wanadoo.es> <87borlu0kc.fsf@wanadoo.es> <4EEE0315.60405@yandex.ru> <4EEEF5B4.3050806@yandex.ru> <87vco2cqji.fsf@spindle.srvr.nix> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327504854 16827 80.91.229.12 (25 Jan 2012 15:20:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2012 15:20:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 25 16:20:51 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rq4eY-0005Df-90 for ged-emacs-devel@m.gmane.org; Wed, 25 Jan 2012 16:20:50 +0100 Original-Received: from localhost ([::1]:55724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq4eX-0000Li-NV for ged-emacs-devel@m.gmane.org; Wed, 25 Jan 2012 10:20:49 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:42105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq4eU-0000La-MJ for emacs-devel@gnu.org; Wed, 25 Jan 2012 10:20:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rq4eQ-0004kA-G3 for emacs-devel@gnu.org; Wed, 25 Jan 2012 10:20:46 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:55210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq4eQ-0004jc-73 for emacs-devel@gnu.org; Wed, 25 Jan 2012 10:20:42 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rq4eM-000546-Hx for emacs-devel@gnu.org; Wed, 25 Jan 2012 16:20:38 +0100 Original-Received: from 38.98.147.133 ([38.98.147.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jan 2012 16:20:38 +0100 Original-Received: from tzz by 38.98.147.133 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jan 2012 16:20:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.133 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux) Cancel-Lock: sha1:pjUSNybT/vARp+No+h9kJp9sruo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147919 Archived-At: On Mon, 23 Jan 2012 16:49:37 +0000 Nix wrote: N> On 19 Dec 2011, Stefan Monnier outgrape: >>>> I agree that we're probably going to see better overall results by >>>> improving general memory use than by trying to attack >>>> fragmentation problems. >>> Among this list's subscribers, Nix is constantly >>> reporting an enormous memory usage caused by Gnus. >> >> I think we still have a leak there somewhere. N> Confirmed. With Dmitry's immediate-string patch (which works perfectly N> otherwise): N> RSS VSZ USER STIME N> 720696 1008752 gnus Jan07 N> 242740 525592 hacking 2011 N> Despite running for less than half the time, the Gnus Emacs is twice the N> size. It bloats more slowly than without Dmitry's patch, but it still N> bloats. N> I suspect that the only way I'll be able to provide a reproducible N> recipe for this is to instrument Emacs to record all allocations and GCs N> and when they happen, so that someone else can play this back to observe N> WTF is going on. Doing this compactly enough to run over weeks without N> serving as a DoS-attack on my own system may be... interesting. I N> haven't done any work toward this yet though. Some valgrind recipes were posted that may help. Can you try them? I could not put together a test case to cause memory bloat with GnuTLS usage alone. Do you want to try that? If such a test case can be shown to cause bloat without Gnus, we'll know where to look. Ted