-
Notifications
You must be signed in to change notification settings - Fork 2.7k
high cpu utilization of webpack watch when installs the deps through yarn #1009
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
Comments
seeing a very similar issue on MacOS 10.10 with Node v I'm using I also see the CPU drop down <10% after reverting to a clean I do watch |
If this does turn out to be a webpack related problem would you mind leaving the webpack version this was reported in, and os so I can get that information copied over to a new issue in our repo once we find out more information? |
@TheLarkInn webpack related ver
|
@SpaceK33z do you think you could check the versions above ^^ and see if there is anything funky that could go on in regards to deps? |
Yeah this is because installing the native watch dependency fails, which causes chokidar to use inefficient polling. This is an issue in yarn. Also see #629 (comment) |
Thanks a bunch! Hope this answers your questions @bsr203 @darcyadams |
ok.. thanks. will follow #629 |
Uh oh!
There was an error while loading. Please reload this page.
ver: v0.15.1
OS: OSX 10.9.5
node: v6.8.0
I raised this at SO, and could narrow down to yarn usage. My
node_modules
are excluded from webpack for js build.My node app (running through webpack dev server) is taking up 60% cpu consistently. From the cpu profile, looks like call to _proc_listpidspath is the culprit. Any hints on what is this function call for, and how to find which node library calls this.
thanks.
See the profile below.
Edit:
I could isolate this to when it happens. I started using yarn yesterday. Now, if I remove my node_modules and run npm -i to install all the deps through npm client, I see the file count inside node_modules as
If I remove, node_modules and ran ~/.yarn/bin/yarn.js, then
so, there is a difference in files installed by both cli, and yarn installs less. But, the cpu with yarn is 80% in idle (webpack server in watch mode), and 1% with npm.!!
The text was updated successfully, but these errors were encountered: