On 07/12/2015 04:17 PM, E.B. wrote: >>> WHY your recommendation. my question is >>> why do you recommend (vs. gamin or polling)? >> >> pyinotify uses the Linux kernel's inotify system >> calls. polling actually causes fail2ban to sleep >> and check the file's mtime periodically, iirc. > > but I think gamin also using inotify. so what would > be difference in those two? because gamin is written > in c maybe its faster?
Lots of Python is written in C, but beyond the point. fail2ban is written in Python. pyinotify is written in Python (and available via PyPI). By all means, I'd love to see performance metrics between gamin and pyinotify and will be the first to recommend gamin be changed to the default if metrics support it. Gamin hasn't been updated in a while...https://people.gnome.org/~veillard/gamin/ChangeLog.html references Nov 20 and fixing bug 377050, which was fixed in 2006 while pyinotify's last version was uploaded on 2015-06-04. Given similar functionality and no performance metrics, which would you recommend? > > i understand in very simple terms what inotify is > but not how it compares to sleep/mtime or tail or > whatever. I'm looking for some information about > pros/cons of each type of backend... > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > Fail2ban-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fail2ban-users > ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Fail2ban-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fail2ban-users
