3 ms·
What's the performance overheads of SystemTap? I've looked at it, and used it for poking at things under a microscope on a VM, but I've never used it on a produ
by sargun 12y ago
What's the performance overheads of SystemTap? I've looked at it, and used it for poking at things under a microscope on a VM, but I've never used it on a production system. Could I instrument production code with it?
- suprjami 12y agoIt really depends what you are doing and how you're doing it. If you only pull a few variables out and aggregate their reporting into one printf, then your overhead is close to one printf. For something like tcp_retransmit_skb that's usually not even noticeable. However if you're performing frequent live calculations on an oft-called function, like every single tcp transmit, like you can definitely introduce too much overhead and negatively affect the system. I'm far from a SystemTap expert, but some low-hanging fruit is to look at what you're doing and see if you can do it fewer times, or see if there's a quicker way or a built-in way to do it already.