From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 15:22:01 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 33D3A3AD for ; Thu, 7 Aug 2014 15:22:01 +0000 (UTC) Received: from systemdatarecorder.org (mail.systemdatarecorder.org [54.246.96.61]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "localhost" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AA79928B6 for ; Thu, 7 Aug 2014 15:21:59 +0000 (UTC) Received: from nereid (84-253-211-213.bb.dnainternet.fi [84.253.211.213]) (authenticated bits=0) by systemdatarecorder.org (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id s77FJZHE016260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Aug 2014 15:19:36 GMT Date: Thu, 7 Aug 2014 18:21:46 +0300 From: Stefan Parvu To: Eric van Gyzen Subject: Re: run-queue length via sysctl Message-Id: <20140807182146.43b3f1c2239a5aa4456ff19f@systemdatarecorder.org> In-Reply-To: <53E38378.60401@vangyzen.net> References: <20140807163024.30fa15298e9dfee4661f68ec@systemdatarecorder.org> <53E38378.60401@vangyzen.net> Organization: systemdatarecorder.org X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.22; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2014 15:22:01 -0000 > $ sysctl vm.vmtotal > vm.vmtotal: > System wide totals computed every five seconds: (values in kilobytes) super. many thanks. Reading it now. > vmstat uses the vm.vmtotal sysctl to get a struct vmtotal{} for the "r b > w" columns. See fill_vmtotal() in src/usr.bin/vmstat/vmstat.c and > vmtotal{} in /usr/include/sys/vmmeter.h. I will check as well vmstat.c -- Stefan Parvu