You are not logged in.

#1 2007-06-07 09:16:38

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

emacs generates 100% CPU load

I just noticed yesterday when starting emacs that it was really slow and saw that conky reported CPU 100%, even with the new 22.1 package the problem exists. I have no idea what the reason is though, I didn't update the system for a few weeks since I was busy with uni stuff and just didn't have time to fix anything that might have been broken. The weird thing is that top reports a high CPU usage for X and xfce4-panel so I'm starting to think it could be related to the new openbox (3.3.995) and might get resolved once the package is updated 3.4.

Top output:

 3743 root      15   0  124m  61m 8952 R 57.7  3.1   2:02.77 X                  
 4495 fredrik   25   0 48940  11m 5412 R 16.3  0.6   0:22.37 emacs              
 3791 fredrik   15   0 63244  14m 7012 S 14.7  0.7   0:26.56 xfce4-panel        
 3762 fredrik   15   0 56516  13m 6300 S 10.0  0.7   0:16.94 openbox

As you can see X got almost 60% CPU usage, emacs 16.3%, xfce4-panel 14.7% and openbox 10%.

I tried removing .emacs since I added some stuff there, but that wasn't the problem.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#2 2007-06-07 18:07:25

Weeks
Member
Registered: 2006-01-26
Posts: 91

Re: emacs generates 100% CPU load

am on the new emacs as well. here's mine:

66100  14m  10m S    0  2.9   0:02.22 Thunar             
57308  14m  10m S    0  2.9   0:02.97 xfdesktop         
23188  13m 8480 S    0  2.8   0:00.44 Terminal           
17480  12m 4796 S    0  2.5   0:02.27 emacs

Offline

#3 2007-06-08 09:01:01

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: emacs generates 100% CPU load

Looks like emacs-22.1-3 fixed the issue, not sure what was wrong, but probably something with the old interface and whatever it was built on since this new build uses the GTK-interface.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#4 2007-06-09 16:21:22

Lord_Bad
Member
Registered: 2005-04-17
Posts: 54

Re: emacs generates 100% CPU load

I use the latest build but I experience the same issue.

Offline

#5 2007-06-10 19:12:23

juergen
Developer
From: Frankfurt/Germany
Registered: 2005-04-11
Posts: 48
Website

Re: emacs generates 100% CPU load

What happens if you use

"emacs -q"
"emacs -nw"?

Offline

#6 2007-06-10 20:59:21

Lord_Bad
Member
Registered: 2005-04-17
Posts: 54

Re: emacs generates 100% CPU load

When I start it without loading the init file(-q) it works normally so I guess there is something wrong with emacs code browser in 22.1, which is really sad since I use it quite intensively...

Offline

#7 2007-06-10 21:01:59

juergen
Developer
From: Frankfurt/Germany
Registered: 2005-04-11
Posts: 48
Website

Re: emacs generates 100% CPU load

Yes, there are issues with ECB/CEDET . From the NEWS file:

** Semantic (used by CEDET, ECB, JDEE): upgrade to latest version.

Have you updated to the latest version?

Offline

#8 2007-06-11 14:32:37

Lord_Bad
Member
Registered: 2005-04-17
Posts: 54

Re: emacs generates 100% CPU load

Well, that's easy considering the fact that there has been no new release for quite some time. Actually I think that the cedet project is dead...
However the fix suggested in the mailing list did the job and it now works ok.

Last edited by Lord_Bad (2007-06-11 14:33:40)

Offline

Board footer

Powered by FluxBB