From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Mingrone Newsgroups: gmane.emacs.devel Subject: Re: Emacs memory management and sluggishness Date: Wed, 31 Jul 2019 17:54:15 -0300 Message-ID: <86blxakjrc.fsf@phe.ftfl.ca> References: <87k1c44n7y.fsf@telefonica.net> <83d0hwm0fc.fsf@gnu.org> <87ef2b4pti.fsf@telefonica.net> <83sgqrlim1.fsf@gnu.org> <8736ir3uj0.fsf@telefonica.net> <83imrmlw7y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="253433"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (berkeley-unix) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 31 22:55:45 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hsvdQ-0013o3-R9 for ged-emacs-devel@m.gmane.org; Wed, 31 Jul 2019 22:55:45 +0200 Original-Received: from localhost ([::1]:44566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsvdP-0008Gu-QZ for ged-emacs-devel@m.gmane.org; Wed, 31 Jul 2019 16:55:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38056) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsvc7-00067S-BE for emacs-devel@gnu.org; Wed, 31 Jul 2019 16:54:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsvc5-0005GL-WD for emacs-devel@gnu.org; Wed, 31 Jul 2019 16:54:23 -0400 Original-Received: from mail-ua1-x943.google.com ([2607:f8b0:4864:20::943]:36716) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsvc4-0005DW-JO for emacs-devel@gnu.org; Wed, 31 Jul 2019 16:54:21 -0400 Original-Received: by mail-ua1-x943.google.com with SMTP id v20so27566152uao.3 for ; Wed, 31 Jul 2019 13:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ftfl.ca; s=google; h=from:to:subject:references:user-agent:cancel-lock:date:in-reply-to :message-id:mime-version; bh=Zcb4Cs2coH6TCWEL9NCFFGM+9MAFVxJZw2F+Zpo812U=; b=QmnUb/N0IBA5CiH8mR1IgdTmM8wTxN4LD6TPQT9xZhKQ27sLMv3ywy8FtTVVjjHxcX Kq6WEnivkAcQKRglEJ2mqIJk6CVJb41RjevYc6/oJ8nSixw48LEC55DfXD74Mu7pt5hs JIBa+PAv7FGpavoa+1xnWTaoHgxezRAgTdkgA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:user-agent :cancel-lock:date:in-reply-to:message-id:mime-version; bh=Zcb4Cs2coH6TCWEL9NCFFGM+9MAFVxJZw2F+Zpo812U=; b=GtkSgeif0VNiXdBOP4dWbhLjF5wGV3TUpnEbRlbsMXIN5DygtzhhmmMeCO58u1qCyU F/N3J/0epa9Wh4yKZtTVcf4Shk4Ba13lPgqZXNLAYStfKdjYW9ZZYzqKINxazZw/zr7G Mwyp+WSrfG7a7jCgJv9PpsALiL6jkk9IDEGKome2df1hle5WxNMJPhLolLzc+T68fKbw 7EE2mStLCICQs1JXEt+rMTUS1qCOjbMRnMIt3wdMufJlH8teM3J0maJSj4B0seZnzJ87 lkKtiWrlfyHq7ZduQI8ak0J3B/oomLaOsMN759wgb2CLQnwt1OH1u8uOnsOYVz9ffRt9 bejg== X-Gm-Message-State: APjAAAU/2A9VXe4dqgJGvm943oqPN1J+mRDAiw8XIIRk3B4re4WDvIPZ SCYDAbgqwmxpta1Srp4CTUpiArxM X-Google-Smtp-Source: APXvYqyuss3BC3SqQU9OPEbT7EiimNwnhOk8Jy6bq2eQ5C0dUkBB1nHzaKKJVK/BUlwhJc9mC9Eu4A== X-Received: by 2002:ab0:66d2:: with SMTP id d18mr43148253uaq.101.1564606458075; Wed, 31 Jul 2019 13:54:18 -0700 (PDT) Original-Received: from phe.ftfl.ca.ftfl.ca (drmons0544w-142-167-140-18.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.167.140.18]) by smtp.gmail.com with ESMTPSA id 66sm16975006vsh.12.2019.07.31.13.54.16 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 13:54:16 -0700 (PDT) Cancel-Lock: sha1:95VJTJ8PAWEIBsIlM40B5E2TmxA= In-Reply-To: <83imrmlw7y.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 28 Jul 2019 05:38:25 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::943 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239065 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: > Suggest to start a bug report and accumulate all the data there. Hi, I am seeing even more aggressive memory usage with recent master branch commits (at least I think this only started in the last month or so). Here is a screenshot that shows over 3 GB of RSS. https://ftfl.ca/misc/emacs_memory.png This was running commit 06726f6 from today on 12.0-RELEASE-p8. I run Gnus, erc, look at an occasional PDF and edit text. I haven't visited any extremely large buffers recently. Garbage collection is happening, but it does not seem to help. But, when I call `garbage-collect' manually there will be a long pause if I haven't called it recently, then the memory will usually go down to something between 100 and 400 MB. I just ran your lisp snippet a few times within a minute or so and without really doing much it reports values between 36195 and 244723 and it seems to be growing. If there is an open bug, I will add this information. If there is not, I will open one. Regards, -- Joseph --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKgBAEBCgCKFiEEVbCTpybDiFVxIrrVNqQMg7DW754FAl1B//dfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU1 QjA5M0E3MjZDMzg4NTU3MTIyQkFENTM2QTQwQzgzQjBENkVGOUUMHGpybUBmdGZs LmNhAAoJEDakDIOw1u+eL0EP/jylClCwAhcai0N83TB/aVkOWhYudLrbvbX7kovi 9xG0gMj7uF/8OpSfyctWVxPVH4YmpKV3ZeWKOGA1cKeEHjxcYBQLNt0RoLBfyXPf MGHfG2Il5wJ4ECwXTj4RTKcXA1mMMjz159x9ozywSqYwe8xeQLppS0pcyGJDfaPf tansfNtlRtSTmlo6hepXdExLNASuk3VbAULXCECtsKxWHikyrN9vcu/CaAxoHPPi mSRW9AXvZEoaIw9rdEMEGa6x7jyJUVP1fZpmDmqjukuuysHShRFX2q8y2vt1qn4Z P5UNAJAj1fz/1Aed9Lyx1AzFSCYJXPKgiOUHHKp9NDtbvNXrV2rBUUqDt1qQMhE0 Q3NyWFX21FKp97/u+59V9NEtqdHa4pvrAugfvwZPy4XgMm24UXpSIaBKMZw9e2DI wuBMQl7ynkJ2tvc7ngoQ3/4f6VJ1rk5jrgVMPMVV9HKmFgLKr20zqn6IcL4zYAVD y6y575somOfVbBWmbTZfIUz1OkjrgfHH20J6CpD1zpkNM7jHg5vEDYtIImgh8CuS MaAjviEUMxjYDwVBeoB/SOSeTsuC1cfuzKKOKTBI8/+xE4CXl61wKBBWID7y8Rbm ZpOooYIiWhFh+LBlN2Tzzmdv5WtMrIIU/koSc+Jdp5kDoXrUGxQrEnootMCt1Xz2 xY1X =SrGu -----END PGP SIGNATURE----- --=-=-=--