Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2006 20:47:44 -0800 (PST)
From:      kamal kc <kamal_ckk@yahoo.com>
To:        freebsd <freebsd-hackers@freebsd.org>
Subject:   Re: using get_system_info() - obtaining system load averages
Message-ID:  <20060110044744.64419.qmail@web30002.mail.mud.yahoo.com>
In-Reply-To: <20060110040938.GE60380@cirb503493.alcatel.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Mon, 2006-Jan-09 19:14:53 -0800, kamal kc wrote:
> >i want to use the routine get_system_info() to get
> the
> >load averages of the cpu. i found it that top uses
> it.
> 
> The approved mechanism is via the sysctl(3) name
> "vm.loadavg" or OID
> CTL_VM.VM_LOADAVG - which returns a struct loadavg. 
> See sysctl(3)
> for details.

thanks a lot. i will use it .

kamal



		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060110044744.64419.qmail>