pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgsrc scanning performance benchmarks



* On 2016-12-02 at 14:46 GMT, Martin Husemann wrote:

> On Fri, Dec 02, 2016 at 08:41:33AM -0600, John Marino wrote:
> > What command(s) does one use to get that information?  It sounds like a 
> > trick I need in my toolbox. :)
> 
> I am lazy, so I did:
> ktrace -i, kdump and then basically "fgrep fork|fgrep RET", plus a bit of awk
> to sort for unique pid/progname.

On systems which support DTrace, I used the simple one-liner:

  $ dtrace -n 'syscall::exece:return { @num[execname] = count(); }'

when doing a bunch of performance work a few years back[0].  Obviously
this only work when the host is otherwise idle or if you add more
specific predicates, but does ensure that all processes are accounted
for.

Cheers,

[0]: https://www.perkin.org.uk/posts/building-packages-at-scale.html

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index