2004-10-05 16:59:21

by David Busby

[permalink] [raw]
Subject: /dev/misc/inotify 0.11

List,
I patched my 2.6.8.1 kernel with the inotify-0.11. There were some
sample utils that in C that came with it. Thanks. I've successfully
used those to work with inotify. Here's what's bad:

1> When I say `cat /dev/misc/inotify' my machine stops responding
instantly. I've not had a chance to see what happens. I know I'll not
normally say that but when I say something else dumb like cat
/dev/misc/rtc cat will simply wait, not choke up my whole system.

2> Reading from /dev/misc/inotify with PERL produces the same effect.

I don't know enough about kernel hacking to really debug this really
well. I peeked at the code and there still seems to be calls to dnotify
functions, can't I remove those? I said this in
drivers/char/inotify.c(54) static int inotify_debug_flags =
INOTIFY_DEBUG_ALL; so I'll recompile and see what happens.


David Busby
Edoceo, Inc.
http://www.edoceo.com/

Linux version 2.6.8.1 (root@busby-devel) (gcc version 3.2.2) #1 Mon Oct
4 12:50:38 PDT 2004


2004-10-05 18:26:47

by David Busby

[permalink] [raw]
Subject: RE: /dev/misc/inotify 0.11

> List,
> I patched my 2.6.8.1 kernel with the inotify-0.11. There
> were some sample utils that in C that came with it. Thanks.
> I've successfully used those to work with inotify. Here's what's bad:
>
> 1> When I say `cat /dev/misc/inotify' my machine stops responding
> instantly. I've not had a chance to see what happens. I
> know I'll not normally say that but when I say something else
> dumb like cat /dev/misc/rtc cat will simply wait, not choke
> up my whole system.
>
> 2> Reading from /dev/misc/inotify with PERL produces the same effect.
>
> I don't know enough about kernel hacking to really debug this
> really well. I peeked at the code and there still seems to
> be calls to dnotify functions, can't I remove those? I said this in
> drivers/char/inotify.c(54) static int inotify_debug_flags =
> INOTIFY_DEBUG_ALL; so I'll recompile and see what happens.
>
>
> David Busby
> Edoceo, Inc.
> http://www.edoceo.com/

So now I upgraded to inotify-0.12 against the same kernel. I'm still
having the same issues.

2004-10-05 19:53:57

by Robert Love

[permalink] [raw]
Subject: Re: /dev/misc/inotify 0.11

On Tue, 2004-10-05 at 09:55 -0700, David Busby wrote:

In the future please CC me and John McCutchan <[email protected]> on
inotify bugs if you can. Or respond to an existing inotify thread. I
almost missed this. Thanks.

> 1> When I say `cat /dev/misc/inotify' my machine stops responding
> instantly. I've not had a chance to see what happens. I know I'll not
> normally say that but when I say something else dumb like cat
> /dev/misc/rtc cat will simply wait, not choke up my whole system.

I cannot reproduce this.

`cat /dev/inotify` simply blocks in inotify_read().

You use devfs? Can you try it without that?

Robert Love