[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Larger GC thresholds for non-interactive Emacs
From: |
Ihor Radchenko |
Subject: |
Re: Larger GC thresholds for non-interactive Emacs |
Date: |
Mon, 20 Jun 2022 20:21:24 +0800 |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> When we increase the threshold, free increases up to some value, but
>> that value is limited by the underlying code:
>
> A clarification: when you see
>
> [...]
> GC-898 p=1.0 total=18.7M free=7.3M thresold=18.7M
> GC-898 p=1.0 total=18.8M free=7.3M thresold=18.8M
> [...]
> ...
Thanks! I was totally misreading the results.
> The difference between the two cases is that when you have half of the
> heap made up of dead objects, there's a higher probability that some of
> those objects are clustered such that they make up a few complete
> 16kB blocks, whereas when only the dead objects represent only 10% of
> the heap, almost all 16kB blocks will contain a mis of dead and live
> objects and hence can't be returned to the malloc library.
I am again confused.
Does what you say imply that frequent GC with small threshold is not
good because it will have less dead objects and have higher chance of
fragmentation?
Best,
Ihor
- Re: Larger GC thresholds for non-interactive Emacs, (continued)
- Re: Larger GC thresholds for non-interactive Emacs, Stefan Monnier, 2022/06/22
- Re: Larger GC thresholds for non-interactive Emacs, Lynn Winebarger, 2022/06/22
- Re: Larger GC thresholds for non-interactive Emacs, Lynn Winebarger, 2022/06/20
- Re: Larger GC thresholds for non-interactive Emacs, Ihor Radchenko, 2022/06/19
- Re: Larger GC thresholds for non-interactive Emacs, Eli Zaretskii, 2022/06/19
- Re: Larger GC thresholds for non-interactive Emacs, Ihor Radchenko, 2022/06/19
- Re: Larger GC thresholds for non-interactive Emacs, Ihor Radchenko, 2022/06/19
- Re: Larger GC thresholds for non-interactive Emacs, Stefan Monnier, 2022/06/19
- Re: Larger GC thresholds for non-interactive Emacs,
Ihor Radchenko <=
- Re: Larger GC thresholds for non-interactive Emacs, Stefan Monnier, 2022/06/23
- Re: Larger GC thresholds for non-interactive Emacs, Ihor Radchenko, 2022/06/25
- Re: Larger GC thresholds for non-interactive Emacs, Eli Zaretskii, 2022/06/25
- Re: Larger GC thresholds for non-interactive Emacs, Stefan Monnier, 2022/06/25
- Re: Larger GC thresholds for non-interactive Emacs, Eli Zaretskii, 2022/06/18
- Re: Larger GC thresholds for non-interactive Emacs, Stefan Monnier, 2022/06/18
- Re: Larger GC thresholds for non-interactive Emacs, Eli Zaretskii, 2022/06/18
- Re: Larger GC thresholds for non-interactive Emacs, Ihor Radchenko, 2022/06/18
- Lisp-level macro to avoid excessive GC in memory-allocating code (was: Larger GC thresholds for non-interactive Emacs), Ihor Radchenko, 2022/06/30
- Re: Larger GC thresholds for non-interactive Emacs, Lars Ingebrigtsen, 2022/06/21