Comments (2)
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.
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)
- Incorrect network event context
- Proctree hash calculation for procfs entries is wrong
- Set LDFLAGS accordingly
- miss makezero in slice init HOT 1
- Bogus packets generated by packet capture
- Increased memory usage compared to v0.19.0 HOT 1
- Proctree return wrong thread name for sched_process_exec
- Remove dependencies of `pkg/utils/environment`
- Refactor Event Structure for Improved Clarity and Consistency
- Add event containing full packet payloads
- Add new security task setrlimit event HOT 1
- Refactor release build/ci process
- Release images don't provide manual files HOT 2
- Change version format (snapshots and main branch)
- Integration Tests failing HOT 3
- Metrics unavailable in Prometheus without explicit Port declarations HOT 2
- cannot unmarshal !!map into []v1beta1.Rule HOT 2
- Integration Tests failing on arm64 HOT 1
- Add capturing support in k8s
- ftrace_hook: address tab in input lines
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tracee.