GNU bug report logs - #45200
Wishlist: There should be a `malloc-trim' function

Previous Next

Package: emacs;

Reported by: Konstantin Kharlamov <hi-angel <at> yandex.ru>

Date: Sat, 12 Dec 2020 18:44:02 UTC

Severity: wishlist

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: DJ Delorie <dj <at> redhat.com>
Cc: fweimer <at> redhat.com, carlos <at> redhat.com, rudalics <at> gmx.at, monnier <at> iro.umontreal.ca, hi-angel <at> yandex.ru, 45200 <at> debbugs.gnu.org
Subject: bug#45200: [PATCH] Force Glibc to free the memory freed
Date: Wed, 03 Feb 2021 21:49:54 +0200
> From: DJ Delorie <dj <at> redhat.com>
> Cc: hi-angel <at> yandex.ru, rudalics <at> gmx.at, monnier <at> iro.umontreal.ca,
>         carlos <at> redhat.com, fweimer <at> redhat.com, 45200 <at> 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?




This bug report was last modified 3 years and 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.