From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45200: [PATCH] Force Glibc to free the memory freed Date: Wed, 03 Feb 2021 21:49:54 +0200 Message-ID: <838s853p99.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37915"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fweimer@redhat.com, carlos@redhat.com, monnier@iro.umontreal.ca, hi-angel@yandex.ru, 45200@debbugs.gnu.org To: DJ Delorie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 03 21:00:07 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 1l7OJr-0009mZ-4n for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 21:00:07 +0100 Original-Received: from localhost ([::1]:39970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7OJq-0002g6-5F for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 15:00:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7OB4-0003qW-CM for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 14:51:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7OB4-0005Y0-2k for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 14:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l7OB4-0002do-0l for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 14:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Feb 2021 19:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45200 X-GNU-PR-Package: emacs Original-Received: via spool by 45200-submit@debbugs.gnu.org id=B45200.161238180610080 (code B ref 45200); Wed, 03 Feb 2021 19:51:01 +0000 Original-Received: (at 45200) by debbugs.gnu.org; 3 Feb 2021 19:50:06 +0000 Original-Received: from localhost ([127.0.0.1]:38914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7OAA-0002cW-0R for submit@debbugs.gnu.org; Wed, 03 Feb 2021 14:50:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:32946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7OA7-0002bv-JF for 45200@debbugs.gnu.org; Wed, 03 Feb 2021 14:50:04 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50699) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7OA1-0004og-HT; Wed, 03 Feb 2021 14:49:57 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3505 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l7OA0-00008N-PA; Wed, 03 Feb 2021 14:49:57 -0500 In-Reply-To: (message from DJ Delorie on Wed, 03 Feb 2021 14:25:15 -0500) 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:199235 Archived-At: > From: DJ Delorie > Cc: hi-angel@yandex.ru, rudalics@gmx.at, monnier@iro.umontreal.ca, > carlos@redhat.com, fweimer@redhat.com, 45200@debbugs.gnu.org > Date: Wed, 03 Feb 2021 14:25:15 -0500 > > You (emacs devs) need to decide whether you care more about memory > footprint or memory performance, and tune malloc accordingly. > malloc_trim() is one knob to tune, there are others. Which other knobs are there that aren't deprecated and could disappear without a warning, though? We used to use some knobs in the past, then one day we were told we should stop because those knobs will no longer be available. We still use some knobs (see alloc.c), but could some of you please review that and see if the optimizations we attempt through those knobs are reasonable?