Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Sep 2012 22:44:35 +0200
From:      Jilles Tjoelker <jilles@stack.nl>
To:        David O'Brien <obrien@FreeBSD.org>
Cc:        Arthur Mesh <arthurmesh@gmail.com>, Ian Lepore <freebsd@damnhippie.dyndns.org>, Doug Barton <dougb@FreeBSD.ORG>, freebsd-rc@FreeBSD.ORG, freebsd-security@FreeBSD.ORG, Mark Murray <markm@FreeBSD.ORG>
Subject:   Re: svn commit: r239598 - head/etc/rc.d
Message-ID:  <20120906204435.GA87795@stack.nl>
In-Reply-To: <20120906182116.GD13179@dragon.NUXI.org>
References:  <201208222337.q7MNbORo017642@svn.freebsd.org> <5043E449.8050005@FreeBSD.org> <1346638718.1140.573.camel@revolution.hippie.lan> <50451041.9070302@FreeBSD.org> <1346789717.1140.675.camel@revolution.hippie.lan> <20120905204050.GB820@dragon.NUXI.org> <1346945964.59094.147.camel@revolution.hippie.lan> <20120906182116.GD13179@dragon.NUXI.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 06, 2012 at 11:21:16AM -0700, David O'Brien wrote:
> On Thu, Sep 06, 2012 at 09:39:24AM -0600, Ian Lepore wrote:
> > On Wed, 2012-09-05 at 13:40 -0700, David O'Brien wrote:

> > Of those oids you listed above, the vm and vfs generate a lot of text
> > but it's mostly the vm.stats part that changes.  The kern.geom output is
> > pretty static on a given system, and oddly it takes a long time to
> > generate compared to other oids.  The cp_time is already included in
> > cp_times.  The dev.cpu is intel-specific.

> I'm not seeing that 'cp_time's specific values are in 'cp_times'.
> I have not looked at how easy it is to derive 'cp_time' given
> 'cp_times' output.

That's trivial. The 'cp_time' output is the sum of the 'cp_times' output
for all CPU cores. The 'cp_times' output has five numbers for each core.
For example, in the '-' lines below, 568 + 36 = 604.

> @@ -1,2 +1,2 @@
> -kern.cp_times: 4 0 568 3 548 22 0 36 42 397
> -kern.cp_time: 26 0 604 45 945
> +kern.cp_times: 102 0 636 6 8801479 104 0 126 52 8801316
> +kern.cp_time: 206 0 762 58 17602795

-- 
Jilles Tjoelker



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