Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4975 Discussions

how to measure kernel performance

softarts
Beginner
352 Views
i.e.
I want to measure how many time spent on netif_rx(), possible to do that?
0 Kudos
3 Replies
Roman_D_Intel
Employee
352 Views
Quoting - softarts
i.e.
I want to measure how many time spent on netif_rx(), possible to do that?

Hi,

I assume netif_rx() is a Linux kernel function. Then with the SystemTap tool (http://sourceware.org/systemtap/wiki) you can insert your time measuring codeinto netif_rxon a live running system without the need to stop, rebootor recompile the kernel.

However, simpler methods might exist for your task and my method is an overkill.

Best regards,
Roman
0 Kudos
Thomas_W_Intel
Employee
352 Views
Alternatively to what Roman suggested, you might also have a look at oprofile, which let's you profile the Linux kernel with sampling. However, this usually requires a reboot and you may also want a kernel with debug information.

Kind regards
Thomas
0 Kudos
Peter_W_Intel
Employee
352 Views
Alternatively to what Roman suggested, you might also have a look at oprofile, which let's you profile the Linux kernel with sampling. However, this usually requires a reboot and you may also want a kernel with debug information.

Kind regards
Thomas

Also VTune Performance Analyzer's sampling collector can captureperformance data for all active modules in the system. In Processes report, select vmlinuz-2.6.xx-x anddrill down all modules which has samples captured - if you want to see hotfunctions in any module, the tool will ask you vmlinuz's location and its corresponding system file (usually that is like as System.map-2.6.xx-x)
0 Kudos
Reply