From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: a few questions on current development master Date: Sun, 10 Mar 2019 14:29:19 -0400 Message-ID: References: <87wol64p18.fsf@ua2web.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="105755"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 10 19:45:16 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h33Rj-000RMh-Qh for ged-emacs-devel@m.gmane.org; Sun, 10 Mar 2019 19:45:15 +0100 Original-Received: from localhost ([127.0.0.1]:48350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h33Ri-0007C0-Qy for ged-emacs-devel@m.gmane.org; Sun, 10 Mar 2019 14:45:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h33Qq-0006lN-O5 for emacs-devel@gnu.org; Sun, 10 Mar 2019 14:44:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h33CT-0000DE-NH for emacs-devel@gnu.org; Sun, 10 Mar 2019 14:29:30 -0400 Original-Received: from [195.159.176.226] (port=60376 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h33CT-0000Bq-Eg for emacs-devel@gnu.org; Sun, 10 Mar 2019 14:29:29 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1h33CQ-0007pa-E6 for emacs-devel@gnu.org; Sun, 10 Mar 2019 19:29:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:uLs+I2qJySBeyxSNPW+H6oURdmE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:234040 Archived-At: > 1) Memory issues. In almost no time it ate >6Gb of RSS and around 8GB or > Virtual RAM. My OS: linux/arch, all default compilation options (no > change to conigure flags). Sounds like there's a bad leak. > I will keep my eye on memory profiling, and will report more exact > issues (profiler-start ram), any advice here? We don't have a memory profiler: (profiler-start 'mem) simply uses memory allocation as an approximation of time, but your problem is likely not due to memory allocation but a lack of memory reclamation (i.e. a leak). > Also, quite strange that I've closed all buffers and still see that > it consumes 6GB or RAM. Any documention how actually emacs returns > RAM to host O/S ? Returning memory to the OS can happen sometimes depending on lots of different details, but it's basically irrelevant to your problem: If there's a good reason why it got to 6GB, then returning to a smaller size is good, but not indispensable. In your particular situation, IIUC Emacs should simply not have gotten to 6GB in the first place. > Should I just report all those as separte bugs via M-x report-emacs-bug? Yes, please, Stefan