阅读背景:

从Linux内核读取文件系统事件而不使用Inotify

来源:互联网 

In Linux to read File System Events, most of us use Inotify which is really a Good One. But it has it's limitations. I have to keep track of all the directories i have to watch and get a inotify descriptor for each and every directory. Let's say i want to monitor my Whole System and it has about 10 million directories. Listing and queuing them for inotify API itself would take hours. It would eat a lot of memory also. And i certainly can't watch directories more than that specified in max_user_watches in /etc/syscntl.conf or /proc/sys/fs/inotify/max_user_watches . In Linux to read File System Events, most of us




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: