From owner-freebsd-questions@FreeBSD.ORG Thu Sep 8 13:45:15 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38D9216A420 for ; Thu, 8 Sep 2005 13:45:15 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from fri.itea.ntnu.no (fri.itea.ntnu.no [129.241.7.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB3E543D46 for ; Thu, 8 Sep 2005 13:45:14 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id 5EFE68277 for ; Thu, 8 Sep 2005 15:45:13 +0200 (CEST) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by fri.itea.ntnu.no (Postfix) with SMTP for ; Thu, 8 Sep 2005 15:45:12 +0200 (CEST) Received: (qmail 91872 invoked by uid 1001); 8 Sep 2005 15:17:10 +0200 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 8 Sep 2005 15:17:10 +0200 Date: Thu, 8 Sep 2005 15:17:10 +0200 (CEST) From: Svein Halvor Halvorsen X-X-Sender: sveinhal@maren.thelosingend.net To: Deepak Naidu In-Reply-To: <20050908094659.68961.qmail@web41002.mail.yahoo.com> Message-ID: <20050908145132.I90713@maren.thelosingend.net> References: <20050908094659.68961.qmail@web41002.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: freebsd-questions@freebsd.org Subject: Re: Porting from LInux to FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2005 13:45:15 -0000 * Deepak Naidu [2005-09-08 10:46 +0100] > 2)How to i find memory, cpu information in freebsd, > apart from TOP. In linux we have free and > /pro/cpuinfo. I dont see any files under /proc You need to mount procfs on /proc to have files appear in /proc. However, you won't find cpuinfo in there, just one folder for each running process. You could however mount the linprocfs filesystm in /compat/linux/proc and look at /compat/linux/proc/cpuinfo et.al. You'd need to load the linux and linprocfs kernel modules to do that. To gather system information, these utils should provide a starting point: dmesg(8) sysctl(8) kenv(1) devinfo(8) pciconf(8) vmstat(8) pstat(8)