re: Performance Monitoring Counters (PMC, PERFCTRS) and SMP?
matthew green <[email protected]> Mon, 17 Oct 2011 07:11:47 +1100
| Newsgroups | gmane.os.netbsd.current,gmane.os.netbsd.devel.smp |
|---|---|
| Message-ID | <[email protected]> |
> On Sat, Oct 15, 2011 at 08:32:26PM -0700, Greg A. Woods wrote: > > > > I ask mostly because I'm flustered by getrusage(2) being as good as > > useless for even the most basic of benchmarking purposes... > > On NetBSD the sum of the 'sys' and 'user' times is accurate. > As is the 'child cpu time' for reaped zombies. > I've used that from ps (with custom columns) to get high resolution > execution times. except when time goes backwards....