[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45751: [feature/native-comp] emacs keeps running 100% of CPU
From: |
Andrea Corallo |
Subject: |
bug#45751: [feature/native-comp] emacs keeps running 100% of CPU |
Date: |
Mon, 11 Jan 2021 10:15:44 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Édouard Debry <edouard.debry@gmail.com> writes:
> On dim., janv. 10 2021, Andrea Corallo wrote:
>> Édouard Debry <edouard.debry@gmail.com> writes:
>>
>>> I noticed that when launching emacs on linux (debian buster),
>>> it keeps on running 100% of the CPU and seems to gradually eat all
>>> memory, approximately 1-2% every minute.
>>>
>>> It seems related to native compiling. In the
>>> *Async-native-compile-log* I read :
>>>
>>> <=============================>
>>> Compiling
>>> /home/edouard/.emacs.d/elpa/color-theme-sanityinc-solarized-20200805.603/color-theme-sanityinc-solarized.el...
>>
>> I see a similar issue with sanityinc-tomorrow.el, the compilation is
>> way
>> slower than any other one but it completes eventually. I guess is
>> the
>> same issue you see and with sufficient RAM also sanityinc-solarized
>> should complete.
>>
>> In case of of sanityinc-tomorrow I think is because of
>> `color-theme-sanityinc-tomorrow'. This is a single function that
>> after
>> macro expansion becomes enormous.
>>
>> We need to make the compiler robust against these corner cases, I'll
>> have a look this week into adding some logic for that.
>>
>> Thanks
>>
>> Andrea
>
> I have waited for approximately one hour and until linux became
> totally unresponsive, I had to reboot.
Right, these are the classical symptoms of a system swapping for
insufficient physical memory (or excessive mem usage by a program :)
- bug#45751: [feature/native-comp] emacs keeps running 100% of CPU, Édouard Debry, 2021/01/09
- bug#45751: [feature/native-comp] emacs keeps running 100% of CPU, Andrea Corallo, 2021/01/10
- bug#45751: [feature/native-comp] emacs keeps running 100% of CPU,
Andrea Corallo <=
- bug#45751: [feature/native-comp] emacs keeps running 100% of CPU, Édouard Debry, 2021/01/11
- bug#45751: [feature/native-comp] emacs keeps running 100% of CPU, Andrea Corallo, 2021/01/11
- bug#45751: [feature/native-comp] emacs keeps running 100% of CPU, edouard debry, 2021/01/12
- bug#45751: [feature/native-comp] emacs keeps running 100% of CPU, Andrea Corallo, 2021/01/12
bug#45751: [feature/native-comp] emacs keeps running 100% of CPU, Eli Zaretskii, 2021/01/10
bug#45751: [feature/native-comp] emacs keeps running 100% of CPU, Andrea Corallo, 2021/01/11
bug#45751: [feature/native-comp] emacs keeps running 100% of CPU, Andrea Corallo, 2021/01/19