From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Memory usage report Date: Fri, 18 Sep 2020 14:59:24 +0200 Message-ID: <87wo0ri6kz.fsf@gnus.org> References: <87lfh8kyot.fsf@gnus.org> <83k0ws5hzt.fsf@gnu.org> <87h7rwkxtk.fsf@gnus.org> <83imcb61p7.fsf@gnu.org> <871rizl5mf.fsf@gnus.org> <83r1qz48h3.fsf@gnu.org> <871rizjogr.fsf@gnus.org> <83pn6j45rr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38460"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 18 15:04:00 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJG3U-0009rv-Lw for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Sep 2020 15:04:00 +0200 Original-Received: from localhost ([::1]:57472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJG3T-0001hk-LD for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Sep 2020 09:03:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJFzI-0007EV-QQ for emacs-devel@gnu.org; Fri, 18 Sep 2020 08:59:42 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:43306) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJFzG-0006zi-I1; Fri, 18 Sep 2020 08:59:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=eb59/RvRTsX1pBIUy2XAwfq8zvfXtDjfkg/IcZ9hJp8=; b=EVlDkhPqDZHCj2KNqDkBpc+63Q GfwQTEC3o4fY3l/0BAZ8JF50Of7r4FVjQ1YYbsuGmesTr+aI6rcQMEn66U+3j/lwiJFUf4U90Qfz1 BIDjwZrJa8uDDYsVZQyzs+RvqvdRp1YxxC5FJmoVeLAbUJecUz7NYYaIPtZJ4Gs33mQo=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJFz3-0005zz-9X; Fri, 18 Sep 2020 14:59:35 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEXh3dP5+fXHvbKu pJuNf3FaVFAuIycJAwb///9n79W4AAAAAWJLR0QIht6VegAAAAd0SU1FB+QJEgw4OfeBw8YAAAGg SURBVDjLZdPNcoMgEABgMNOeJZ3eDbSTa0ec5Nyq6QNE6ANkxHsnkdcvCyyK3ZPZb/YHNITEYBCl e+CcCyllTFMWg5BiDWyJDChbywJZnpVFApYHQaAbKBHYFoot4PMGyrQ4ycDneQW/ygAUDyY6WfOK wpAVlEU/WTt/cShZAzlZiLmucih3NsSN07ziGGGuYcgC5CeCbSsEv+4L5u01QBvhFbqEIQG6CM8u ZSaAOwdoEI4LfCSA6WcA3+rhWu1l9x/mCs6R4BtnB2g8wJBTWhda7QAqX/K+wIEx0TngHp4WoO59 dP3gviLotUtwp7CUAoBXsE/Df2FErxQAvLV0iZ++UwAoOeO1H+AUKoIrOaYCJqBTAE4oVtBYEIGT YfJXaA+laBKI+k2PRoVWvIHRAaQUSt+vvuQmQ17Fv4m4fLUXv1XMI8i26cO1j0OXQXOJR5/ziq7X EUaXNCtQZp4wr03ayq2u/YjZ5xHEAqMyLkY8OYCCr8cVeNB4JQCjgQLXZ7LGjUdwS+rJ+gFQYsYA ws3QanqETj4Qeleth1gA8QeGJv6VZ7dEEwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wOS0xOFQx Mjo1Njo1NyswMDowMCo3F/EAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDktMThUMTI6NTY6NTcr MDA6MDBbaq9NAAAAAElFTkSuQmCC X-Now-Playing: Stina Nordenstam's _This Is Stina Nordenstam_: "Trainsurfing" In-Reply-To: <83pn6j45rr.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 18 Sep 2020 15:40:40 +0300") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:256080 Archived-At: Eli Zaretskii writes: >> That can have significant memory? > > Some of them could, yes. Do you know which ones? >> I don't think we have to go that far to be useful. Reporting that the >> image cache takes foo GB will help somebody. > > Why would an image cache take that much? we flush it from time to > time, and I have difficulty believing that all those users reporting > large memory footprints load thousands of images every hour of every > day. It is unlikely that "all those users" use that many images, but some may. (As you no doubt remember, calling `image-size' in a loop will kill Emacs with an out of memory fault.) >> > Which variables did you have in mind in this context? Can you show an >> > example? >> >> It'd just traverse all the variables and compute the "largest" ones. > > Again, they are included in the GC report. So what do you expect to > see? I expect to see what variables take "all that size"? I'm not sure what you're asking here. > So, while a more detailed report might be nice to have, I don't see > how it would help to diagnose "leaks" of the kind we are discussing > now on the bug list. I am not talking about any bug report in particular. If I were, that is where I would have posted this. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no