[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26952: 25.1; loops eating all memory while yanking big rectangle
From: |
npostavs |
Subject: |
bug#26952: 25.1; loops eating all memory while yanking big rectangle |
Date: |
Sat, 20 May 2017 13:41:36 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> I see the issue also with 25.2, but not with master (no idea what might
>> have fixed it though).
>
> Thanks for looking into this. Can you tell more about where it is
> looping in Emacs 25.2? I'm uneasy about not knowing what fixed this.
The following simple loop can trigger the issue (I'm now also limiting
Emacs' memory usage to 1GB with "ulimit -Sv $((1000 * 1024))" so that it
just throws an out of memory error instead of filling my swap and
slowing everything down):
(let ((str (make-string 150 ?a)))
(dotimes (_ (* 600 1000))
(insert str ?\n)))
I think it might be just an inefficient allocater (or this pattern of
allocation happens to hit a pathological case for the allocater). The
master branch is using the 'hybrid' allocater, while emacs-25 is not.
If I configure 25.2 with REL_ALLOC=yes, then it runs okay. The only
allocation seems to be from 'enlarge_buffer_text'.
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, Francesco Potortì, 2017/05/16
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, npostavs, 2017/05/19
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, Eli Zaretskii, 2017/05/20
- bug#26952: 25.1; loops eating all memory while yanking big rectangle,
npostavs <=
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, Eli Zaretskii, 2017/05/20
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, npostavs, 2017/05/20
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, Eli Zaretskii, 2017/05/21
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, npostavs, 2017/05/21
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, Eli Zaretskii, 2017/05/21
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, npostavs, 2017/05/21
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, Paul Eggert, 2017/05/21
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, Eli Zaretskii, 2017/05/21
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, Paul Eggert, 2017/05/21
- bug#26952: 25.1; loops eating all memory while yanking big rectangle, npostavs, 2017/05/21