最近有用Inotify做项目,但是发现当Inotify监控的目录比较多时,不能监控到所有的事件,会丢失掉一些事件。
大神们知道原因吗?或是有什么解决方法?
Inotify 监控多个目录会丢失事件
-
- 帖子: 10
- 注册时间: 2011-03-04 15:21
- zhw2101024
- 帖子: 1849
- 注册时间: 2009-03-28 16:10
- 系统: Arch debian win7
- 联系:
Re: Inotify 监控多个目录会丢失事件
增加inotify等待队列的最大长度
具体改哪个文件忘记了
具体改哪个文件忘记了
为什么我的问题总是没有人回答?
金钱、责任与荣誉:OpenSSL主席谈心脏出血
拥有丰富API接口和广泛程序支持的dropbox云同步,点此注册,开始就比别人多500兆,我的空间也会增加。谢啦
==========我的作品==========
我做的一个面向开发者的gnome-shell扩展,有js基础又想自己调整gnome-shell功能的可以尝试一下
gnome-shell扩展开发入门,gnome-shell扩展系统扫盲帖
金钱、责任与荣誉:OpenSSL主席谈心脏出血
拥有丰富API接口和广泛程序支持的dropbox云同步,点此注册,开始就比别人多500兆,我的空间也会增加。谢啦
==========我的作品==========
我做的一个面向开发者的gnome-shell扩展,有js基础又想自己调整gnome-shell功能的可以尝试一下
gnome-shell扩展开发入门,gnome-shell扩展系统扫盲帖
- adam8157
- 帖子: 2794
- 注册时间: 2009-03-05 16:31
- 联系:
Re: Inotify 监控多个目录会丢失事件
/proc/sys/fs/inotify (since Linux 2.6.13)
This directory contains files max_queued_events, max_user_instances, and max_user_watches, that can be used to limit the amount of kernel memory consumed by the inotify interface. For further
details, see inotify(7).
This directory contains files max_queued_events, max_user_instances, and max_user_watches, that can be used to limit the amount of kernel memory consumed by the inotify interface. For further
details, see inotify(7).
-
- 帖子: 10
- 注册时间: 2011-03-04 15:21
Re: Inotify 监控多个目录会丢失事件
zhw2101024 写了:增加inotify等待队列的最大长度
具体改哪个文件忘记了
能说的具体一些吗?到底在哪改?
-
- 帖子: 10
- 注册时间: 2011-03-04 15:21