linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Maximum number of inotify watches
@ 2011-06-22 12:59 Tiberiu C. Turbureanu
  2011-06-22 14:28 ` Tvrtko Ursulin
  0 siblings, 1 reply; 2+ messages in thread
From: Tiberiu C. Turbureanu @ 2011-06-22 12:59 UTC (permalink / raw)
  To: linux-kernel

 Hello,

 I want to monitor all the files on a server using one instance of 
 inotify and about 20M watches recursively set on directories in '/' tree 
 substructure. I'd want to be notified about all type of events defined 
 by inotify (create, delete, access, modify etc.)

 Assuming this monitor daemon running in user-space keeps up with the 
 frequency of new events in the kernel queue (it reads them), is it 
 possible to exceed the kernel memory limit because there are too many 
 watches and events?

 TIA,
 Tibi

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Maximum number of inotify watches
  2011-06-22 12:59 Maximum number of inotify watches Tiberiu C. Turbureanu
@ 2011-06-22 14:28 ` Tvrtko Ursulin
  0 siblings, 0 replies; 2+ messages in thread
From: Tvrtko Ursulin @ 2011-06-22 14:28 UTC (permalink / raw)
  To: Tiberiu C. Turbureanu; +Cc: linux-kernel

On Wednesday 22 Jun 2011 13:59:20 Tiberiu C. Turbureanu wrote:
>  Hello,
> 
>  I want to monitor all the files on a server using one instance of
>  inotify and about 20M watches recursively set on directories in '/' tree
>  substructure. I'd want to be notified about all type of events defined
>  by inotify (create, delete, access, modify etc.)
> 
>  Assuming this monitor daemon running in user-space keeps up with the
>  frequency of new events in the kernel queue (it reads them), is it
>  possible to exceed the kernel memory limit because there are too many
>  watches and events?

It does sounds unrealistic with your number of watches. 

Have a look at fanotify which will give you a subset of inotify events for 
just one watch per mount point. If you really need events which are not 
available maybe they can be added.

Tvrtko

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-22 14:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-22 12:59 Maximum number of inotify watches Tiberiu C. Turbureanu
2011-06-22 14:28 ` Tvrtko Ursulin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).