From owner-freebsd-questions@FreeBSD.ORG Tue May 5 17:39:50 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A05C10656E4 for ; Tue, 5 May 2009 17:39:50 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.184]) by mx1.freebsd.org (Postfix) with ESMTP id D34408FC08 for ; Tue, 5 May 2009 17:39:49 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so232118gve.39 for ; Tue, 05 May 2009 10:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=ShftImHJQgd45x8M6zr7V92JcOGhGCPoO2S++QYdpfM=; b=NObSzV49UPaJICNj6ErSId3nc68rejCSYNFmPI1tYWDviI7ZU70sOjcMfVSJuA0HIF BHebI4K6L1Jjyp/Ps0llv5zcTUxWal+wyFvT3Zabpf2pZn0ZpleKxqpabIr/1xjjY/kF EFflx0IJtSVZ3RGwhw+RF2CTGiXpFSXLlS81U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=DBFIXVKyVND4EVaSEHbHG1GXgOvxAHGKYDVVPqVlTXEtnoXUjQfFdsKLPW+4/3B8No quAas+7DeycLawV2no8EzUMwHOu8IEAu8KqBGf3v/tIT2s2j9pOsjPMEMATyVWQ2tuu4 +9bbQEA6BkdYzZO807MNaasNPQDgtiJcAesIo= MIME-Version: 1.0 Received: by 10.229.80.21 with SMTP id r21mr280160qck.80.1241545188127; Tue, 05 May 2009 10:39:48 -0700 (PDT) From: Maxim Khitrov Date: Tue, 5 May 2009 13:39:33 -0400 Message-ID: <26ddd1750905051039y67bed9a5g6e1419b57b9e74fe@mail.gmail.com> To: Free BSD Questions list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Measuring CPU usage via SNMP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2009 17:39:58 -0000 Hello all, Simple question - does the sum of differences in ssCpuRawIdle, ssCpuRawUser, ssCpuRawNice, ssCpuRawKernel, and ssCpuRawInterrupt OIDs on a FreeBSD 7.2 system give me total CPU allocation (i.e. is a constant)? I've configured a few scripts to read these values from bsnmpd, store them via rrdtool, and then generate a single graph with idle on the negative y axis and everything else stacked on top. I want to make sure that no other counter is missing from this ensemble and the ones listed do not overlap. If either of those conditions is not met, my usage percent calculation will not be accurate. The OIDs that I left out are: ssCpuRawSoftIRQ - documentation states that this is for Linux only, but FreeBSD 7.2 does provide a value for it ssCpuRawWait - always 0? ssCpuRawSystem - seems to be a sum of ssCpuRawKernel and ssCpuRawInterrupt As far as I can tell, these three do not factor into the equation. The only one I'm not sure about is ssCpuRawSystem. Is there ever a time when it will not equal to ssCpuRawKernel + ssCpuRawInterrupt? Thanks for your help, Max