hollywood icon indicating copy to clipboard operation
hollywood copied to clipboard

Very high CPU usage

Open T-vK opened this issue 5 years ago • 6 comments

If you take a look at the htop in this screenshot, you can see that my CPU is going completely crazy: image It seems like tmux, mplayer and ccze are responsible.

OS: Ubuntu 18.04 hollywood version: 1.20

I think I had the same problem with 1.19.

T-vK avatar Nov 29 '19 22:11 T-vK

@dustinkirkland I think it would be a good idea to add a parameter to hollywood that would allow you to specify which apps hollywood should use. Maybe a blacklist, whitelist or both. This would make debugging an issue like that much easier. What do you think?

T-vK avatar Dec 09 '19 11:12 T-vK

The code is trying to run hollywood with the lowest CPU priority, using the nice command. Whenever you see this behavior, could you please paste the output of this command:

$ ps -e -o uid,pid,ppid,pri,ni,cmd | grep hollywood

I'd like to ensure that the nice value of every script is 19 (the lowest priority).

dustinkirkland avatar Feb 09 '20 17:02 dustinkirkland

I'm open to a patch that blacklists individual applets, but this isn't very high priority for me. Note that you can run hollywood -s SPLITS and use a smaller number of splits from the default (which is all available). Generally speaking, hollywood is going to consume a lot of CPU. That's kind of the point. It's intended to be a tongue-in-cheek joke.

dustinkirkland avatar Feb 09 '20 17:02 dustinkirkland

I had this problem even after the program was closed. My CPU usage was constantly at 100% and my computer was running very hot. I had to kill the ccze process to get it back to normal.

dominic-03 avatar May 13 '20 21:05 dominic-03

@dominic-03 same here

Frambooisier avatar Feb 06 '22 00:02 Frambooisier

same here, eated up all my cores up to 90%

yeeterlol avatar May 31 '24 21:05 yeeterlol