From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Mattner Newsgroups: gmane.emacs.devel Subject: Re: Pretest note Date: Wed, 14 Mar 2012 11:25:35 +0100 Message-ID: References: <87lin6zf2x.fsf@gnu.org> <87boo16mrn.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1331720761 19817 80.91.229.3 (14 Mar 2012 10:26:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2012 10:26:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 14 11:26:00 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S7lP6-0002Fz-8V for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2012 11:26:00 +0100 Original-Received: from localhost ([::1]:33894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7lP5-0002I7-L1 for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2012 06:25:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7lOy-0002GN-4C for emacs-devel@gnu.org; Wed, 14 Mar 2012 06:25:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7lOt-0004jK-1z for emacs-devel@gnu.org; Wed, 14 Mar 2012 06:25:51 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:60078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7lOk-0004h2-MJ; Wed, 14 Mar 2012 06:25:38 -0400 Original-Received: by iajr24 with SMTP id r24so2525468iaj.0 for ; Wed, 14 Mar 2012 03:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=cnf22tZRZCRnJqlKscO9TPp8g3WPQs9+f3q1mGVaJWE=; b=yBG4eWn8kycC0HtU9NPQIpJlsodGfSMghZdB+Qhf1Ob1yapiHexkE9AQBLVDtc59FW 6zfqHFnEV4SoOcratcwK8CDIV2IW6BdYHo0Yfz7YEG7My3egP4VLrur9AoGKXi9RDJ4j Dz8KtacZSqcMzufMtIcM5BQCT8BfZm+fZi2ERbcTpvwLZHnidZ5QQNNJu7X37DHH5Kgm P/Op9jQfQgWPNgh7P54HlC/P+zzmCltiWsezMqaKZfEw+6JchEG3oQx5MlQWX/bngYtw FdtUZuIYgvK24rafXNWaQRqpXTgavTEWkEhLfPZbFf5ztJWu00YcKWSTab8MhIMIgMiX ccsw== Original-Received: by 10.50.190.226 with SMTP id gt2mr10823913igc.32.1331720735408; Wed, 14 Mar 2012 03:25:35 -0700 (PDT) Original-Received: by 10.50.111.132 with HTTP; Wed, 14 Mar 2012 03:25:35 -0700 (PDT) In-Reply-To: <87boo16mrn.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 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:149035 Archived-At: On Tue, Mar 13, 2012 at 7:25 AM, Chong Yidong wrote: > Carsten Mattner writes: > >> Don't we want to do something about the leak(s) or at least verify >> down that they're correct "caching" or "reuse" behavior? > > AFAICT, this is Jan's report that memory is not returned to the system > on Mac OS? =A0Obviously, if someone can help pin this down, that will be > appreciated. =A0Yamamoto Mitsuharu gave one suggestion here: > > http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00358.html. > > Also, I'd like to know whether it really involves memory not being > returned at all, independently of gnutls and networking. =A0For example, > here is some Elisp code that visits a file and kills the buffer a few > thousand times: > > (dotimes (n 50000) > =A0(with-temp-buffer > =A0 =A0(insert-file-contents "/path/to/emacs/etc/NEWS"))) This keeps emacs 99% busy for a couple minutes and increases the resident size by 1 or 2 MB. What's more interesting is that today's bzr build even with -Q and -Q -nw seems to use more than 1.5x times memory after startup than it used to. To rule out any issues caused by --without-xml2 I have rebuilt and it still start Emacs.app at 42MB while it used to start at 25MB. What did change? > If Emacs on Mac OS really never returns memory, this should chew up all > the memory on your system. =A0Does it? =A0Check also if Emacs 23 is > affected.