9 ms·
I've been looking for a while for a way to capture all file opens and network ops to profile unknown production workloads similar to proc. explorer on Windows,
by sl1ck731 8y ago
I've been looking for a while for a way to capture all file opens and network ops to profile unknown production workloads similar to proc. explorer on Windows, which I believe is implemented using ETW. Unfortunately strace seems to be out of the question purely because of the performance impact. Is the performance impact due to strace or ptrace itself?
- woodruffw 8y agoIt's ptrace itself: every traced syscall requires at least one (but usually 3-4) ptrace(2) calls, plus scattered wait(2)/waitpid(2) calls depending on the operation. If you want to capture events like file opens and network traffic, I'd take a look at eBPF or the Linux Audit Framework.
- alexgartrell 8y agoI recommend bpftrace as an entry point to working with bpf https://github.com/iovisor/bpftrace https://github.com/iovisor/bpftrace