mattfidler / tabbar-ruler.el

Tabbar Ruler Mode
54 stars 10 forks source link

CPU 100% on Mac OS 10.10.3 (14D131) #15

Closed xcv58 closed 8 years ago

xcv58 commented 9 years ago

I have the issue, when I comment my line of init.el to require tabbar-ruler, the CPU usage drop from more than 100% to less than 10%.

This is my Emacs config: https://github.com/xcv58/Emacs_config/commit/b21ceb99caeb3df32d7db1fce57eb0dfa12be711

My laptop is: MacBook Pro (Retina, 13-inch, Early 2015) Operating System: Mac OS 10.10.3 (14D131) GNU Emacs 25.0.50.36 (x86_64-apple-darwin14.3.0, NS appkit-1347.57 Version 10.10.3 (Build 14D131)) of 2015-04-13 on xcv58

I build Emacs everyday from https://github.com/emacs-mirror/emacs My Emacs version is: GNU Emacs 25.0.50.36 (x86_64-apple-darwin14.3.0, NS appkit-1347.57 Version 10.10.3 (Build 14D131)) of 2015-04-13 on xcv58

mattfidler commented 9 years ago

Try

(setq tabbar-ruler-movement-timer-dealy 1000000)
mattfidler commented 9 years ago

Duplicate as Issue #10

xcv58 commented 9 years ago

The

(setq tabbar-ruler-movement-timer-dealy 1000000)

doesn't work.

CPU usage is still above 100%

mattfidler commented 9 years ago

I don't know what is causing the problem then.

rocky-jaiswal commented 9 years ago

From what I saw, tabbar-ruler does this in emacs-24.4. In emacs 24.4 desktop mode is enabled by default. The way tabs are cached in 24.4, causes tabbar-ruler to fail and retry which causes 100% CPU. Have a look at - https://bitbucket.org/bamanzi/dotemacs-elite/issue/24/tabbar-ruler-not-work-in-emacs-244-keep

mattfidler commented 9 years ago

Great I will apply a patch Monday or sooner

On Sat, Apr 18, 2015, 11:21 AM Rocky Jaiswal notifications@github.com wrote:

From what I saw, tabbar-ruler does this in emacs-24.4. In emacs 24.4 desktop mode is enabled by default. The way tabs are cached in 24.4, causes tabbar-ruler to fail and retry which causes 100% CPU. Have a look at -

https://bitbucket.org/bamanzi/dotemacs-elite/issue/24/tabbar-ruler-not-work-in-emacs-244-keep

— Reply to this email directly or view it on GitHub https://github.com/mlf176f2/tabbar-ruler.el/issues/15#issuecomment-94178282 .

rocky-jaiswal commented 9 years ago

Thanks :bow:

mattfidler commented 9 years ago

This should be fixed.

xcv58 commented 9 years ago

I tried this, it works!

Thank you very much, @mlf176f2 @rocky-jaiswal

mdirik commented 9 years ago

@mlf176f2 I'm not sure if it's the same issue but tabbar-ruler still causes very high CPU usage in X process in my machine. I'm using Emacs 24.4 on Debian 8.0, tabbar and tabbar-ruler are in their latest from git revisions. I've tried (setq tabbar-ruler-movement-timer-dealy 1000000) and (setq tabbar-use-images nil) workarounds to no avail.

I invocate tabbar-ruler simply with:

(require 'tabbar-ruler)
cjun714 commented 9 years ago

I have installed tabbar-ruler-20150428.611 on Ubuntu 14.04, emacs 24.4, this version includes #15 patch, but CPU cost issue still exist. In Desktop will cost 60-70% CPU usage, emacs -nw will cost 100% CPU usage. (setq tabbar-ruler-movement-timer-dealy 1000000) also can't solve the issue.

mattfidler commented 9 years ago

I don't know what the issue is...

On Wed, Apr 29, 2015, 12:29 AM cjun714 notifications@github.com wrote:

I have installed tabbar-ruler-20150428.611 on Ubuntu 14.04, emacs 24.4, this version includes #15 https://github.com/mlf176f2/tabbar-ruler.el/issues/15 patch, but CPU cost issue still exist. In Desktop will cost 60-70% CPU usage, emacs -nw will cost 100% CPU usage. (setq tabbar-ruler-movement-timer-dealy 1000000) also can't solve the issue.

— Reply to this email directly or view it on GitHub https://github.com/mlf176f2/tabbar-ruler.el/issues/15#issuecomment-97311017 .

mdirik commented 9 years ago

I don't know what the issue is...

Any idea on how we can help you troubleshoot it?

mattfidler commented 8 years ago

Still having this issue.

rocky-jaiswal commented 8 years ago

Did you try the latest version, I am using tabbar-ruler right now and its fine for me (on Linux though).

mattfidler commented 8 years ago

I don't have the issue. But others do. See Issue #28

mattfidler commented 8 years ago

I'll close it for now.