DragonFly BSD
DragonFly users List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Monitoring CPU time


From: Francois Tigeot <ftigeot@xxxxxxxxxxxx>
Date: Mon, 5 Apr 2010 19:00:06 +0200

On Mon, Apr 05, 2010 at 09:21:41AM -0700, Matthew Dillon wrote:
> 
>     systat -pv 1
> 
>     In terms of extracting it in a script... I dunno about that.

I'm beginning to think I will need to write a C program for that. top(1)
uses a kinfo_proc structure to get its data and AFAIK there's no easy-to-use
sysctl.

systat and vmstat give only an instant snapshot of the system state with
1 second precision or so. An average on 5 minutes would be much better for my
purposes.

-- 
Francois Tigeot



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