From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 13:30:39 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 83489A05 for ; Thu, 7 Aug 2014 13:30:39 +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 22415282A for ; Thu, 7 Aug 2014 13:30:37 +0000 (UTC) Received: from nereid (188-127-209-196.cust.suomicom.net [188.127.209.196]) (authenticated bits=0) by systemdatarecorder.org (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id s77DS9JQ015797 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 7 Aug 2014 13:28:10 GMT Date: Thu, 7 Aug 2014 16:30:24 +0300 From: Stefan Parvu To: freebsd-hackers@freebsd.org Subject: run-queue length via sysctl Message-Id: <20140807163024.30fa15298e9dfee4661f68ec@systemdatarecorder.org> 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 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 13:30:39 -0000 Hi, I made some progress in porting 2 data recorders to FreeBSD: cpurec, hdwrec: http://www.systemdatarecorder.org/recording/agents.html Im working now on sysrec and found very powerful the sysctl interface since last time I checked in 2007 or so. But I could not find any way to get the value of run-queue length via sysctl. procs memory page disks faults cpu r b w avm fre flt re pi po fr sr mf0 mf1 in sy cs us sy id 0 0 0 757M 61G 6 0 0 0 12 1 0 0 9 50 135 0 0 100 0 0 0 757M 61G 0 0 0 0 0 1 0 0 21 140 208 0 0 100 0 0 0 757M 61G 0 0 0 0 0 1 0 0 3 125 94 0 0 100 0 0 0 757M 61G 0 0 0 0 0 1 0 0 4 125 99 0 0 100 I dont want to call vmstat in my script ... Any ideas how to do this ? thanks, -- Stefan Parvu