Re: EVFILT_VNODE doesn't scale to large directory trees?

2010-10-26 Thread Igor V. Ruzanov
On Mon, 25 Oct 2010, Kenton Varda wrote: |On Mon, Oct 25, 2010 at 1:54 AM, Igor V. Ruzanov wrote: | |> I thought so too but was not sure about his problem. With |> kqueue()/kevent() we can monitor every open file descriptor. So how many |> files are laid down in the directory tree, 100, 1000, 150

Re: EVFILT_VNODE doesn't scale to large directory trees?

2010-10-25 Thread Kenton Varda
Ivan Voras wrote: > Short answer: no. > > Long answer: There should be. There were past discussions on writing > such a facility to e.g. receive events for all files on per-mountpoint > basis (which you could filter...), but we're not there yet. Thanks! That answers my question. I'll find some s

Re: EVFILT_VNODE doesn't scale to large directory trees?

2010-10-25 Thread Kenton Varda
On Mon, Oct 25, 2010 at 1:54 AM, Igor V. Ruzanov wrote: > I thought so too but was not sure about his problem. With > kqueue()/kevent() we can monitor every open file descriptor. So how many > files are laid down in the directory tree, 100, 1000, 15000? In every > such way its possible to write o

Re: EVFILT_VNODE doesn't scale to large directory trees?

2010-10-25 Thread Ivan Voras
On 10/25/10 03:05, Kenton Varda wrote: > Hi all, > > I am trying to write some code which monitors a possibly-large directory > tree for changes. Specifically, it's a build system, and I want it to > automatically start rebuilding whenever I modify a source file. > > So far the approach I've tak

Re: EVFILT_VNODE doesn't scale to large directory trees?

2010-10-25 Thread Igor V. Ruzanov
On Mon, 25 Oct 2010, Erik Trulsson wrote: |On Mon, Oct 25, 2010 at 10:48:58AM +0400, Igor V. Ruzanov wrote: |> On Sun, 24 Oct 2010, Kenton Varda wrote: |> |> |That doesn't answer my question. I'm not even using make. I could write a |> |few thousand words describing exactly what I'm trying to d

Re: EVFILT_VNODE doesn't scale to large directory trees?

2010-10-25 Thread Erik Trulsson
On Mon, Oct 25, 2010 at 10:48:58AM +0400, Igor V. Ruzanov wrote: > On Sun, 24 Oct 2010, Kenton Varda wrote: > > |That doesn't answer my question. I'm not even using make. I could write a > |few thousand words describing exactly what I'm trying to do and why it does, > |in fact, make sense, but i

Re: EVFILT_VNODE doesn't scale to large directory trees?

2010-10-25 Thread Igor V. Ruzanov
On Sun, 24 Oct 2010, Kenton Varda wrote: |That doesn't answer my question. I'm not even using make. I could write a |few thousand words describing exactly what I'm trying to do and why it does, |in fact, make sense, but it's really beside the point. I just want to know |if there is any scalable

Re: EVFILT_VNODE doesn't scale to large directory trees?

2010-10-24 Thread Kenton Varda
large directory tree for changes. Is there? On Sun, Oct 24, 2010 at 9:46 PM, Robert Bonomi wrote: > > From owner-freebsd-questi...@freebsd.org Sun Oct 24 22:17:42 2010 > > Date: Sun, 24 Oct 2010 18:05:34 -0700 > > From: Kenton Varda > > To: freebsd-questions@freebsd.or

Re: EVFILT_VNODE doesn't scale to large directory trees?

2010-10-24 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Sun Oct 24 22:17:42 2010 > Date: Sun, 24 Oct 2010 18:05:34 -0700 > From: Kenton Varda > To: freebsd-questions@freebsd.org > Subject: EVFILT_VNODE doesn't scale to large directory trees? > > Hi all, > > I am trying to

EVFILT_VNODE doesn't scale to large directory trees?

2010-10-24 Thread Kenton Varda
Hi all, I am trying to write some code which monitors a possibly-large directory tree for changes. Specifically, it's a build system, and I want it to automatically start rebuilding whenever I modify a source file. So far the approach I've taken is to use EVFILT_VNODE to watch every file and dir