From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#38345: 27.0.50; Permanent increase in memory consumption after opening images (or pdfs) Date: Thu, 28 Nov 2019 21:11:25 +0800 Message-ID: <8736e8m9he.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> References: <87sgme1ww7.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <83o8x0rl6d.fsf@gnu.org> <87lfs2mzo8.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <87lfs19shb.fsf@mail.linkov.net> <87a78gn5k5.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <87imn4ch65.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="268655"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38345@debbugs.gnu.org, Juri Linkov To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 28 14:24:26 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iaJmT-0017kS-BF for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Nov 2019 14:24:25 +0100 Original-Received: from localhost ([::1]:49134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaJmP-0003OO-KT for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Nov 2019 08:24:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33699) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaJcS-0007JT-KU for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 08:14:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaJcQ-0003G5-Gv for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 08:14:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50894) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaJcQ-0003EH-3f for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 08:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaJcP-0000VB-V0 for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2019 08:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Nov 2019 13:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38345 X-GNU-PR-Package: emacs Original-Received: via spool by 38345-submit@debbugs.gnu.org id=B38345.15749468011872 (code B ref 38345); Thu, 28 Nov 2019 13:14:01 +0000 Original-Received: (at 38345) by debbugs.gnu.org; 28 Nov 2019 13:13:21 +0000 Original-Received: from localhost ([127.0.0.1]:56867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iaJbk-0000U8-VM for submit@debbugs.gnu.org; Thu, 28 Nov 2019 08:13:21 -0500 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:33914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iaJbj-0000Tw-4z for 38345@debbugs.gnu.org; Thu, 28 Nov 2019 08:13:19 -0500 Original-Received: by mail-wr1-f42.google.com with SMTP id t2so31019081wrr.1 for <38345@debbugs.gnu.org>; Thu, 28 Nov 2019 05:13:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=DW/Su7kkVma3XIPmY89TtcLA+iMJZVpdn6bgoswb6J8=; b=BagdxUS0iOlRiJlCtQAVHIPM10zkE6Bx9/1DUqsT2/9q7UOtGDRXZnI8WEjeKZD9h0 eNfpis9tV2SuWVMKrxfDMiFodZ0cYPCga2O0LybNO+GjdBuN0+YtrdoZFO+KQaGKxysZ 4Z51bfkKtLWXCETwO+1w2gHcftp4LHU/AChnr47PWAvgibkddFhR4p1mNdoJntYkIjJh byg61JyMYG7j5H4KQFv3ArWx0N9jwLyj4SAxZwFyD3eeWo7X9vrKZ4epzcQJniv/dAY7 kpcgPRmZQALx4maxq0HFW7r1bWBVNWguwpREPUUcXGxkDVaeaJR1dQszNpP3sWL8g1iw gs5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=DW/Su7kkVma3XIPmY89TtcLA+iMJZVpdn6bgoswb6J8=; b=OxkA/XcxMpzfdkN9kL60TZVJgXvbA0KnoYprLyvqj+owkJN9Vbytb3WV+yHNC/QvN1 0EH5PDPvKvCulCjce6+cVLbKlm5TMWEOcUlPjktxh+Qg7MY9rbZLNAZGlCHflCLus70K badnAk58Ly5gMJEcG3beWBnD5XEHsZ9gjfnZiIX/peUVzDpT5lN7t50xNWRhctKtF9nP ghxVuZrXr5916ZWW9fWcNlWG4i/lTw2vDGSTdUvyLe3DJ14OcAATT4+NM0t1QSnJZe5a n2lvLVc5PGYOFF2gzXbeZ752ewpJkz5DGX65l8+oMWa/LCGchHHFNGV0bZxvat7yicVU g9Rg== X-Gm-Message-State: APjAAAXpDxfUJt2ry71A9oPy4RrezcRdjlxbKvvsHKnh7oQ8jEs/hO/P RdDLqEGvL74e36FtuVSaNTw= X-Google-Smtp-Source: APXvYqyBvfwIYzlG2q5yQo6e6+u51AosmvqTE5HrRzSCRUIuU7FS3/60EFsqzLvg+9WUricq3Gf7AA== X-Received: by 2002:adf:c611:: with SMTP id n17mr49556676wrg.317.1574946793349; Thu, 28 Nov 2019 05:13:13 -0800 (PST) Original-Received: from localhost ([5.226.137.4]) by smtp.gmail.com with ESMTPSA id p1sm10245507wmc.38.2019.11.28.05.13.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 05:13:12 -0800 (PST) In-Reply-To: <87imn4ch65.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172601 Archived-At: > When Emacs frees memory, it's not normally returned to the OS. Is that > what you're seeing? It's indeed not returned to the OS (as from previous discussion), which is fine as soon as emacs can reuse the owned memory. When I clear the image cache after closing every single image buffer, emacs does seem to reuse the owned memory. However, when the cache is cleared less frequently, it does not seem to be the case - emacs just claims more memory from the system. What I saw from my last test is that there is no significant difference in the final memory consumption if I don't clear the image cache or clear it every 5 seconds (around every 10-20 opened/killed images). Best, Ihor Lars Ingebrigtsen writes: > Ihor Radchenko writes: > >> It appears to me that clearing image cache has some problem when there >> is a relatively large number of images in the cache already. > > When Emacs frees memory, it's not normally returned to the OS. Is that > what you're seeing? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no