-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
High cpu usage #139
Comments
Hi. |
Same for me, using macOS 12.3. |
yes, it it |
Socket accepts: Line 85 in 17f299e
And socket select Line 80 in 17f299e
It happens every tick. I don't experience such issues on Windows, probably because the time for usleep() on Windows cannot be less than 10ms. Linux ticks at a smaller interval (50 microseconds). Line 127 in 17f299e
|
Yes, that's it. I "solved" the issue but changing the interval. Can setting a low interval break things? |
The higher this value, the slower the content will be delivered to the browser, and it directly affects TTFB. |
I changed it to 5000. I use it for local dev so the delay does not matter. Maybe put the value to config? |
Could you check 1000 and 500? I think 1ms is comfortable value for developer and CPU :) |
As expected, the usage went up from 1% to 4%. |
I will release a patch with #140. It includes personal throttling for polling each socket. I would appreciate any feedback here about it. |
@roxblnfk Thanks for the update. |
Thanks for adding the environment variables. |
Can you check the optimal values? |
Hello, trap --ui use a lot of cpu even if it's doing nothing.
Here's the cause, it's checking something every 50ns but I don't know which resource is not available.
Running with -vvv does not help.
strace log
The text was updated successfully, but these errors were encountered: