From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Question about (excessive?) ram usage when many overlays (with large vscroll) Date: Wed, 27 Apr 2022 13:13:04 -0400 Message-ID: References: <83zgk8kosb.fsf@gnu.org> <83wnfckme6.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="14353"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , Emacs Devel To: dalanicolai Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 27 19:14:36 2022 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 1njlFM-0003SC-0s for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Apr 2022 19:14:36 +0200 Original-Received: from localhost ([::1]:52060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njlFK-0004jU-Mh for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Apr 2022 13:14:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njlE2-0002Hm-RP for emacs-devel@gnu.org; Wed, 27 Apr 2022 13:13:16 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:52915) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njlDy-0007uu-QB; Wed, 27 Apr 2022 13:13:12 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 025424423F1; Wed, 27 Apr 2022 13:13:07 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B9A254423EA; Wed, 27 Apr 2022 13:13:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1651079585; bh=NLrJD7U4k6M0UED+epWtqveVcztbIGtlQXvB0qO5vy0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TAmYsNDMT0UOhFhkB5F7fdapviIuPVdFmu4dZErbCV4QmoOnC7BXIhHCZktR574u8 fx5G13s1R7sLdgDP0gHfbvPEokdvwT+L2c/STasbdONKJQhwKE4brr1V3Cqo5rkDRo je4SIsw+uiLxdieN1993jUTwISmQNMe14YUigPhETWcxyqi3GWTIWYIM1Jx11FPSva /qhSo9jkzqjc0B7rgB9wXJSLjR7VAabKlRaexi8/wUoCmDkBaNpnsmXBUZAfFwvvvn W4u2LFeQ4DkKM3gzOyd7Dhm4MxvKt9ItPUE589sIqlu7fd1VUMPx9UY7k34PU6vZBq xCQcNSrTZcy3A== Original-Received: from alfajor (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A4CD0120278; Wed, 27 Apr 2022 13:13:05 -0400 (EDT) In-Reply-To: (dalanicolai@gmail.com's message of "Wed, 27 Apr 2022 16:13:58 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:288926 Archived-At: > Thanks again Eli for looking into this quickly. Over here, the memory > does not even get released after killing the buffer, while the > overlays are 'bound' in a buffer local list variable. IIUC current glibc basically never returns malloc'd memory to the OS. Stefan