Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

19. Monitoring File Events > Queue Limits and /proc Files

Queue Limits and /proc Files

Queuing inotify events requires kernel memory. For this reason, the kernel places various limits on the operation of the inotify mechanism. The superuser can configure these limits via three files in the directory /proc/sys/fs/inotify:

max_queued_events

When inotify_init() is called, this value is used to set an upper limit on the number of events that can be queued on the new inotify instance. If this limit is reached, then an IN_Q_OVERFLOW event is generated and excess events are discarded. The wd field for the overflow event will have the value -1.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint