Skip to content
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

100% CPU Utilization on a single core while turbo repo is active #9211

Closed
1 task done
Suvansarkar opened this issue Oct 2, 2024 · 8 comments
Closed
1 task done
Assignees
Labels
kind: bug Something isn't working

Comments

@Suvansarkar
Copy link

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/Qilin-Inc/Qilin

What package manager are you using / does the bug impact?

npm

What operating system are you using?

Linux

Which canary version will you have in your reproduction?

turbo@2.1.2

Describe the Bug

I'm facing an issue where when I start the turbo repo, it takes up 100% cpu util from one core only. Making my laptop go a bit toasty. Is there any way of distributing the workload across multiple cores so it doesn't get as hot?

Note: This doesn't happen when I run my applications on standalone.

Applications in the repo:

  1. A nestjs backend application running on port 4000
  2. A nextJs frontend application running on port 3000

What I have tried: --concurrency=100% and --parallel flags (They don't seem to work)

System info:
i5 13450HX
Nvidia RTX 4050 (mobile)
16GB RAM
Arch Linux - Hyprland WM

Core utilisations with v/s without turbo repo for reference:
image
image

Expected Behavior

The turbo repo distributes load evenly between all CPU's and not hog up a single core like shown in the second image

To Reproduce

Install the turborepo starter pack in a linux environment.

npx create-turbo@latest

run the turbo repo

npm run dev

Additional context

Works fine on windows as far as I have tested it. This is an issue only on linux.

@Suvansarkar Suvansarkar added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage labels Oct 2, 2024
@bwilytsch
Copy link

Same happens to me.

@busybox11
Copy link
Contributor

Same for me. Looks like the daemon keeps running in the background ever after Ctrl-C and also takes 100% CPU of a single core at all times.

@smoove
Copy link

smoove commented Oct 17, 2024

Same on my arch laptop, one core always has 100% load. I left it for an hour, still 100%.

This only happens with the new tui, turbo dev --ui stream works fine.

@anthonyshew anthonyshew removed the needs: triage New issues get this label. Remove it after triage label Oct 17, 2024
@chris-olszewski
Copy link
Member

Could test out 2.1.4-canary.9? It contains #9132 that should significantly reduces the amount of CPU time spent checking for user input.

@smoove
Copy link

smoove commented Oct 18, 2024

Could test out 2.1.4-canary.9? It contains #9132 that should significantly reduces the amount of CPU time spent checking for user input.

CPU Core is now chilling @ 2% 👍

@busybox11
Copy link
Contributor

Can also confirm this has fixed the issue!

@tknickman
Copy link
Member

Closing for now, but please open a new issue if this re-appears!

@chris-olszewski
Copy link
Member

Just putting this here for interested parties that this change did introduce some small TUI bugs which should be fixed in 2.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants