-
Notifications
You must be signed in to change notification settings - Fork 340
Pegging CPU core on Apple M1 processor #636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pegging CPU core on Apple M1 processor #636
Comments
I'm also seeing this happen on an intel mac on Big Sur. |
Interestingly I'm also seeing this happen with |
Same here, I'm on macOS Big Sur v11.1, using rails v6.1.0. Whenever I run
PS: I have an Intel Core i5, the CPU is probably irrelevant for this issue. |
@bdibon have you tried running |
@andersoncardoso It works ! Nice improvement to my current flow, I guess it opens the door to some Edit: you might prefer to use |
Adding some findings here:
in my case I added a check for an env var, so my co-workers can still use the evented file watcher while I toggle off. Notice this will still keep you cpu at around 25 - 30% even without any rails process (server, console, etc) running, just with spring on the background. But it's better than 100% and the cooler fan going crazy. I hope this helps |
Could you please open an issue with the Listen gem to troubleshoot? Thank you for reporting! |
Anyone coming here, this is a bug with the listen gem not supporting BigSur the fix for us was to update the listen gem to >3.3.0. We updated our Gemfiles to |
Fixes high cpu usage on Big Sur: rails/spring#636 (comment)
Fixes high cpu usage on Big Sur: rails/spring#636 (comment)
I'm on an M1 MacBook Pro and recently began using the new Shopify CLI. Ruby is constantly using 100% CPU even when I'm not running the local theme server, and causing the fan to turn on (which has never happened before, and I've had this laptop for 6+ months). Is there something I can do or does Shopify need to push some sort of fix? Update: I originally installed |
@perryraskin Thanks I am seeing this with Shopify CLI as well. I will try your fix. I don't see any mention of it in their issues surprisingly.. |
Update listen gem resolved for me. (macbook m1 2020) |
Upgrade `listen` gem to hopefully solve issues of 'spring' hanging and consuming all CPU. See: rails/spring#636 (comment)
Upgrade `listen` gem to hopefully solve issues of 'spring' hanging and consuming all CPU. See: rails/spring#636 (comment).
rails/spring#636 Fixed in release 3.3.0: guard/listen#478
Running Ruby 2.7.1 and Spring 2.1.0 (in a Rails 6.0.3.2 app) on an M1 MacBook Air under Rosetta (running the whole shell in x86 mode) I'm seeing spring pegging a whole CPU core (CPU usage of 99%).
Curious to know if others are seeing the same, and what the best way to debug this is!
The text was updated successfully, but these errors were encountered: