Coder Social home page Coder Social logo

Ressource leak issue about pyinotify HOT 3 CLOSED

seb-m avatar seb-m commented on August 17, 2024
Ressource leak issue

from pyinotify.

Comments (3)

seb-m avatar seb-m commented on August 17, 2024

Pyinotify binds inotify system calls so all the sensible stuff is done in the kernel, it's unlikely that Pyinotify could leak anything. In any case the number of watches you try to set seems a little bit high I think.

from pyinotify.

hjdr4 avatar hjdr4 commented on August 17, 2024

Hi,

Thanks for your answer. I had another pynotify based job (a pywatcher one) from my company monitoring system. Once I realized that, I restarted it and I could run pyinotify again normally without rebooting the host. Still don't know how such interference can happen but it works. I would have another question : since watching a tree requires recursive registering of all directories, this can take ages on large trees (it took about 1 hour to watch my 300000 folders). What is the Linux way to watch such a tree in 2012 ? (I could ask the same question if I wanted to watch my entire system). You know, 20 TB is just a bunch of disks.

Regards

from pyinotify.

seb-m avatar seb-m commented on August 17, 2024

Indeed it is painful. I seriously don't know if there is a better way of doing it, even now, but I might be a bit a rusty on these questions so don't take my answer for definitive, it might very well be a more adapted and newer mechanism, I'm just not following closely these areas anymore.

from pyinotify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.