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.bugs Subject: bug#51763: 27.2; Displaying many images take all memory Date: Fri, 12 Nov 2021 07:24:42 +0100 Message-ID: <871r3luc0l.fsf@gnus.org> References: <87wnlfrriv.fsf@posteo.net> <875ysy6f39.fsf@gnus.org> <87sfw22gqd.fsf@gnus.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="33709"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Thierry Volpiatto , 51763@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 12 07:36:31 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mlQAo-0008Xk-Vy for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Nov 2021 07:36:31 +0100 Original-Received: from localhost ([::1]:51566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlQAn-0000Oa-7x for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Nov 2021 01:36:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlPzi-0005DD-12 for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 01:25:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlPzh-0002h7-Of for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 01:25:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mlPzh-0004YQ-LL for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 01:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Nov 2021 06:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51763 X-GNU-PR-Package: emacs Original-Received: via spool by 51763-submit@debbugs.gnu.org id=B51763.163669829917495 (code B ref 51763); Fri, 12 Nov 2021 06:25:01 +0000 Original-Received: (at 51763) by debbugs.gnu.org; 12 Nov 2021 06:24:59 +0000 Original-Received: from localhost ([127.0.0.1]:43119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlPze-0004Y6-Ub for submit@debbugs.gnu.org; Fri, 12 Nov 2021 01:24:59 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:33850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlPzY-0004Xm-45 for 51763@debbugs.gnu.org; Fri, 12 Nov 2021 01:24:57 -0500 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=2uSe1ifMuIIA+TgfLsU3LgQJv42ySiRp/jN374rwBag=; b=FR5YrT3pHkMdt3NltR1Jw3KflY UnL00cqbsDt/pL3t3Nez7xzamwp010ohzdYNymFyQXjmq5UvJnsEonzZ1Qi8SCZiZ20y6hyXZYNlh S7waRwzEV//RgHCeELxAUmT4FNl/sh8XbR+feo6wXYRXKyQJmOSlyQCtcaVcmgwF52rw=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mlPzP-0004oz-Aj; Fri, 12 Nov 2021 07:24:45 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXs6+6YlH5FXpZB P0Cpo7EZV6z///+9+7fYAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+ULDAYHAPyXRE0AAAFISURBVDjL tdK7doMwDAZgJYfsCOjOJezluNltIvbUoPd/lVo219Rs7T9wOPqwBNgAZ8kylUKhzTNXhck7g4TK 5RPyRqkOKUEBdFCgJIAiAqME8PkO+ukhK1wrSQq5q39pWaDIrShIQLm5df1gDStUcsG8S6Fl5nKD HGWStBKwGzSkTRguwGUyQzYSkCuNM1htPkYHGXNdS4FfAXhyj4265zUL+FR8AvzHYMNrvYNtGpW3 ERhV05kYfMumXlewWV2380zJsMDoftTDQ3mEb0PYxuA1N44CnMIQICVKPQxHSCqsYqCB3G17gFsA ANIrTHBZ4FJhUe7AYBVaJe7IHVYgDnZutZsx+RlTGwF3zPppWD6QN7hmdX8f5rV7SIhu91YOK9G8 tduMcr9nAayH9Dewh3sE9BmUkPQcAyu1GPj8F0znQGs07aJ/AK2OCyCelvJsAAAAJXRFWHRkYXRl OmNyZWF0ZQAyMDIxLTExLTEyVDA2OjA3OjAwKzAwOjAw6w6TqAAAACV0RVh0ZGF0ZTptb2RpZnkA MjAyMS0xMS0xMlQwNjowNzowMCswMDowMJpTKxQAAAAASUVORK5CYII= X-Now-Playing: Sonic Youth's _Washing Machine_: "Untitled" In-Reply-To: (Stefan Kangas's message of "Thu, 11 Nov 2021 20:03:38 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219737 Archived-At: Stefan Kangas writes: >> The question is then how to tune it -- if it's mistuned, it may result >> in catastrophic thrashing if you're showing a buffer with a gazillion >> images... > > I don't think we evict images from the cache if they are being displayed > though, do we? I imagine that we would evict them if they haven't been > displayed for more than N seconds *and* we are above the max memory > threshold. Where N is some new variable or constant smaller than > 'image-cache-eviction-delay'. Right, that could work, I think... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no