From owner-freebsd-sparc Fri Aug 9 7:35:41 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE0CA37B400 for ; Fri, 9 Aug 2002 07:35:38 -0700 (PDT) Received: from vpop.dmv.com (vpop.dmv.com [64.45.144.24]) by mx1.FreeBSD.org (Postfix) with SMTP id 57D7543E6E for ; Fri, 9 Aug 2002 07:35:38 -0700 (PDT) (envelope-from patrick@godloveya.com) Received: (qmail 20775 invoked by uid 89); 9 Aug 2002 14:50:30 -0000 Message-ID: <20020809145030.20772.qmail@vpop.dmv.com> From: "Patrick" To: sparc@FreeBSD.ORG Subject: vmstat Date: Fri, 09 Aug 2002 10:50:29 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I've been looking into the issue with vmstat not working properly,and I've narrowed it down to the getuptime() routine. if (boottime == 0) kread(X_BOOTTIME, &boottime, sizeof(boottime)); After the kread function, boottime is equal to 0, which fails. I modified a copy of vmstat to use sysctl, but that isn't the right thing to use (was able to run the program though). Thanks, Patrick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message