Subject: Re: bug#79023: 30.1.90; Suspicion of memory leak on internal_redisplay (MacOS)

From: Rudolf Adamkovič <[email-masked]>
Date: Mon, 21 Jul 2025 21:16:34 +0200

Eli Zaretskii <[email-masked]> writes:

> Then let's hear from other macOS users: does anyone else who uses
> Emacs on macOS have similar experience wrt the Emacs memory footprint?

+1 I am on MacOS and my Emacs uses 2-4 GB RAM when in light use.

P.S. Not sure if this is relevant but:

  Reproduction steps:

  1. emacs -Q
  2. evaluate in *scratch* the form:
  
     (dotimes (x 1000)
       (let ((frame (make-frame-command)))
         (sleep-for 0.01)
         (delete-frame frame)))
  
  Expected:

    Emacs uses ~60 MB of RAM (again), per the Activity Monitor.
  
  Actual:

    Emacs uses 9.87 GB of RAM (10 minutes later, no change)

Rudy
-- 
"Programming reliably -- must be an activity of an undeniably
mathematical nature […] You see, mathematics is about thinking, and
doing mathematics is always trying to think as well as possible."
--- Edsger W. Dijkstra, 1981

Rudolf Adamkovič <[email-masked]> [he/him]
http://adamkovic.org