GithubHelp home page GithubHelp logo

Comments (6)

wez avatar wez commented on April 25, 2024

Based on that log, I think 8ff5d80 and b9e6899 will help resolve one error case.

More troubling though is kFSEventStreamEventFlagKernelDropped, which is equivalent to the linux IN_Q_OVERFLOW. I haven't been able to find information on bumping up the equivalent limits for the mac (not even sure if they exist).

If the system is unable to keep on top of the notifications then watchman will spend a bunch of time and resources re-crawling and re-examining the tree to try to keep current.

How many discrete watches are in use on that system? Is .watchmanconfig present in those watches, or is it just running with the defaults?

from watchman.

wez avatar wez commented on April 25, 2024

... and are those repos big (lot of files and dirs)? Roughly how many?

from watchman.

dturner-tw avatar dturner-tw commented on April 25, 2024

If by discrete watches, you mean the length of the list watchman watch-list returns, I'm not sure (I'll ask him to report that as well next time he has issues) -- but I see maybe a couple dozen listed in the log. The watchman stuff I wrote for git does one watch per git repo.

No .watchmanconfig -- just the defaults.

None of the repos are huge -- the largest two are each roughly 25k dirs, 70k files (the rest are much smaller).

from watchman.

wez avatar wez commented on April 25, 2024

an interesting data point might also be whether any of those watches are recursive (eg: watching both /foo/bar and /foo) as this would double the number of updates that need to be processed. We have configuration options to restrict watchman initiated watches to repo roots if it looks like this is happening.

from watchman.

dturner-tw avatar dturner-tw commented on April 25, 2024

I would be surprised if any of them were recursive; there is never a reason for anyone to do that with how we're using watchman, and as you can see from the log, none of the listed ones (which include the largest directory trees) appear to do it.

from watchman.

wez avatar wez commented on April 25, 2024

I'm going to close this out; I think the main contributor here was a couple of bugs in deciding to recrawl and then tripping over ourselves in the overflow-and-recrawl case. If you're still impacted by this on a more recent build, please re-open.

from watchman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.