From owner-freebsd-rc@FreeBSD.ORG Thu Sep 6 19:27:58 2012 Return-Path: Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 541AE106566B; Thu, 6 Sep 2012 19:27:58 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id EB5108FC1C; Thu, 6 Sep 2012 19:27:56 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id q86JRnx0004804; Thu, 6 Sep 2012 13:27:56 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id q86JRkAK044071; Thu, 6 Sep 2012 13:27:46 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) From: Ian Lepore To: obrien@FreeBSD.ORG 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> Content-Type: text/plain; charset="us-ascii" Date: Thu, 06 Sep 2012 13:27:46 -0600 Message-ID: <1346959666.59094.177.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: Arthur Mesh , Mark Murray , Doug Barton , freebsd-rc@FreeBSD.ORG Subject: Re: svn commit: r239598 - head/etc/rc.d X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2012 19:27:58 -0000 On Thu, 2012-09-06 at 11:21 -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. Hmmm, it must be a single vs. multiprocessor thing. From an embedded system: guava# sysctl kern.cp_time kern.cp_times kern.cp_time: 1814 34 4646 104 1449203 kern.cp_times: 1814 34 4646 104 1449203 But on my desktop machine I see what you report: a pretty large difference between the two. > At this point I am liking: > sysctl kern.cp_times kern.cp_time kern.lastpid kern.timecounter \ > kern.tty_nout kern.tty_nin vm vfs debug dev.cpu \ > | tr -Cd '0123456789xabcdef' The times for this command sequence (output of tr redirected to /dev/null) cluster right around .55s, not too bad. It generates about 2700 bytes on one of my embedded systems. -- Ian