From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 15 22:34:24 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7662216A536 for ; Tue, 15 Feb 2005 22:34:24 +0000 (GMT) Received: from sollube.sarenet.es (sollube.sarenet.es [192.148.167.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D7E843D45 for ; Tue, 15 Feb 2005 22:34:24 +0000 (GMT) (envelope-from borjamar@sarenet.es) Received: from [127.0.0.1] (borja.sarenet.es [192.148.167.77]) by sollube.sarenet.es (Postfix) with ESMTP id 0DCC114E6; Tue, 15 Feb 2005 23:34:22 +0100 (CET) In-Reply-To: References: <02266ed294653cda2452e7ac0a713c2c@sarenet.es> <200502151655.09800.max@love2party.net> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Borja Marcos Date: Tue, 15 Feb 2005 23:34:21 +0100 To: Bosko Milekic X-Mailer: Apple Mail (2.619.2) cc: freebsd-hackers@freebsd.org Subject: Re: MBUF statistics X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 22:34:24 -0000 > needs to be changed to accomodate this structure, but in addition to > that a way to make statistics gathering cheaper would be nice, because > currently doing a 'vmstat -z' is really terrible for performance. > Which reminds me... those of you doing benchmarks, please don't run > 'vmstat -z' while you're doing them, it might skew/pessimize your > results. I'm reading them from a C program with sysctl() and right now it doesn't seem to eat a lot. Regarding precision, the most useful aspect of these statistics is the historic view, and a rough view is enough to spot sudden changes and trends. Borja.