Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent for Win32 performance counters on Linux [duplicate]

Possible Duplicate:
Concept of “Performance Counters” in Linux/Unix

What are the Linux equivalent of Windows's performance counters?

  • API/libraries to publish application counters
  • API/libraries to monitor and collect values efficiently (like pdh.dll)
  • applications to monitor the current values (equivalent of perfmon.exe)
  • applications to schedule collecting (like logman.exec)
  • applications to visualize collected values (again, perfmon.exe)

Or, to put it more broadly, what is the recommended system performance monitoring infrastructure on Linux?

like image 608
user199092 Avatar asked Dec 21 '09 07:12

user199092


1 Answers

There's one infrastructure with supporting tools that have been in the mainline kernel for along time, OProfile. However, the interface was in some respects broken, and it didn't really see much use outside the somewhat primitive oprofile command line tools. Then there were a bunch of "oprofile replacements", perfmon, perfmon2, perfctr, perfmon3(?), etc., until finally a few months ago the Perf events infrastructure was merged.

Then there are a number of higher level libraries and tools built on top of the above kernel level interfaces, such as PAPI and TAU

like image 98
janneb Avatar answered Oct 14 '22 22:10

janneb