From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 07:29:39 2004 Return-Path: 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 5D70916A4CE for ; Fri, 3 Sep 2004 07:29:39 +0000 (GMT) Received: from smtp.huawei-3com.com (smtp.huawei-3com.com [219.133.0.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id F27B743D49 for ; Fri, 3 Sep 2004 07:29:33 +0000 (GMT) (envelope-from guoxiaozheng@huawei-3com.com) Received: from smtp.huawei-3com.com (localhost [127.0.0.1]) by smtp.huawei-3com.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0I3G000E6E8V8E@smtp.huawei-3com.com> for freebsd-questions@freebsd.org; Fri, 03 Sep 2004 15:02:55 +0800 (CST) Received: from gxz17726 ([10.153.21.134]) by smtp.huawei-3com.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTPA id <0I3G009YKE8U7O@smtp.huawei-3com.com> for freebsd-questions@freebsd.org; Fri, 03 Sep 2004 15:02:55 +0800 (CST) Date: Fri, 03 Sep 2004 15:31:14 +0800 From: Neo To: freebsd-questions@freebsd.org Message-id: <001601c49187$fe9fe240$8615990a@JFZX.COM> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-Priority: 3 X-MSMail-priority: Normal Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: How to get system static info? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 07:29:39 -0000 Hi: May you please tell me which procedures or functions can get current cpu usage and mem usage in freebsd? Just like top does. It seems freebsd is different with linux in said process. Or could you tell me how to find top resource. Many thanks! gxz 9-3-2004