GithubHelp home page GithubHelp logo

Comments (2)

yanivagman avatar yanivagman commented on August 22, 2024 1

Hi @chae-yc ,

Thanks for opening this issue.
Indeed in master there was a bug that forks (or clones) of a taced process were not traced as well, and this is why it didn't show any event (other than the parent pid events) in master branch.
I opened a PR for this issue: #224

I also checked your program, and saw that when the number of events was small (~100,000), there was no issue.
When I changed to 1M events, I reproduced the issue you reported.
I then decided to check with a bigger buffer by running with '-b 4096':
sudo ./tracee -b 4096 -e getpid

And indeed no events lost this time!

I suspect there is an issue with the reported number of lost events.
I'll try to figure this out, but I'm not sure this issue is related to Tracee itself (hopefully it is, and then we can fix it quickly :-) )

As the example you gave calls syscalls in a loop, the buffer will be filled quickly, thus should be big enough. Please use a bigger buffer like suggested above if you need to support this kind of scenarios (bare in mind this means more memory consumption by Tracee)

from tracee.

yanivagman avatar yanivagman commented on August 22, 2024 1

Regarding the lost events...

Waiting few extra seconds (~10sec) after all events were printed (using the default buffer, without '-b 4096'), I can see that all 1M events are either printed (~350K events) or lost (~650K events). If I exit Tracee before waiting this time, there are missing lost events like reported. So, there is no bug here for the lost events count...

Tracee gets the lost events count from gobpf (using lost channel), and this, in turn, comes from the kernel - either one of these may cause this delay of reporting lost events.

from tracee.

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.