On Mon, Nov 23, 2009 at 5:58 PM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote: > > On 2009-11-23 at 17:20:15 [+0100], Alexandre Deckner <alex@xxxxxxxxxxxx> > wrote: >> Axel Dörfler wrote: >> >> So there's currently no way to catch such cases in a robust way. What >> >> can we do about that? >> >> >> For example, what is the cost of watching a directory / each node >> separately? > > On a 32 bit machine watching a node (not watched by anyone else) costs 72 > bytes of kernel heap. There's a minimal CPU overhead for checking whether an > event for a watched node occurred and some overhead for actually sending a > node monitoring message. Watching a directory's contents is just watching a > single node for a specific event. Is there a way to watch for an entire directory and any subdirectory? Or even for an entire volume, for whatever file or directories ? If I understand the BeBook correctly, the BVolumeRoster is only for volume [un]mounting. Regards, Laurent