[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Larger GC thresholds for non-interactive Emacs
From: |
Eli Zaretskii |
Subject: |
Re: Larger GC thresholds for non-interactive Emacs |
Date: |
Sun, 19 Jun 2022 11:51:30 +0300 |
> From: Ihor Radchenko <yantar92@gmail.com>
> Cc: Lars Ingebrigtsen <larsi@gnus.org>, Mattias EngdegÄrd
> <mattiase@acm.org>, Eli Zaretskii <eliz@gnu.org>, Tim Cross
> <theophilusx@gmail.com>, rms@gnu.org, Alan Mackenzie <acm@muc.de>,
> emacs-devel <emacs-devel@gnu.org>
> Date: Sun, 19 Jun 2022 15:25:15 +0800
>
> I feel that I am confused about this data.
>
> We have gc-cons-threshold and gc-cons-percentage
>
> According to the gc-cons-percentage docstring:
>
> >> If this portion is smaller than `gc-cons-threshold', this is ignored.
>
> which implies that gc-cons-percentage only takes effect when
> heap_size * gc-cons-percentage >= gc-cons-threshold (= 0.8M)
>
> So, heap_size should be >= 80M to take effect at p=1.0
> and heap_size should be >= 800M to take effect at p=0.1
>
> yet, you do see an effect at total=18.5M.
>
> What am I missing?
gc-cons-percentage is measured in units of 1, not in percents. So the
value of 1.0 means that the condition
heap_size * gc-cons-percentage >= gc-cons-threshold (= 0.8M)
will become true whenever heap_size is 0.8MB, not 80MB.
- Re: Larger GC thresholds for non-interactive Emacs, (continued)
- Re: Larger GC thresholds for non-interactive Emacs, Lynn Winebarger, 2022/06/23
- Re: Larger GC thresholds for non-interactive Emacs, Eli Zaretskii, 2022/06/23
- Re: Larger GC thresholds for non-interactive Emacs, Lynn Winebarger, 2022/06/23
- Re: Larger GC thresholds for non-interactive Emacs, Eli Zaretskii, 2022/06/24
- 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 <=
- 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, 2022/06/20
- 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