From owner-freebsd-hackers Mon Oct 6 01:20:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA13140 for hackers-outgoing; Mon, 6 Oct 1997 01:20:14 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from konig.elte.hu (konig.elte.hu [157.181.6.22]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA13135 for ; Mon, 6 Oct 1997 01:20:11 -0700 (PDT) (envelope-from sebesty@cs.elte.hu) Received: from neumann.cs.elte.hu (neumann [157.181.6.200]) by konig.elte.hu (8.8.3/8.7.3/7s) with ESMTP id KAA04586; Mon, 6 Oct 1997 10:19:48 +0200 Received: from localhost (sebesty@localhost) by neumann.cs.elte.hu (8.8.3/8.7.3/4c) with SMTP id KAA27251; Mon, 6 Oct 1997 10:20:04 +0200 X-Authentication-Warning: neumann.cs.elte.hu: sebesty owned process doing -bs Date: Mon, 6 Oct 1997 10:20:04 +0200 (MET DST) From: Zoltan Sebestyen Reply-To: Zoltan Sebestyen To: Mike Smith cc: FreeBSD hackers mailinglist Subject: Re: cpu/memory monitoring In-Reply-To: <199710031822.DAA04089@word.smith.net.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, Hmm, the reason I asked for a simpler source than top's one is that I'm porting an application that behaves like Win NT's taskmanager. It was written for Linux and it simply reads the contents of /proc/stat and /proc/meminfo. As far as I know FreeBSD has no such feature in its proc filesystem. Someone suggested that top has the functionality I need so I started to examine top's source code, but I think it's too complex and so is its source code. That's why I asked for a simpler code which deals only with the cpu/memory load monitoring part.(Anyone has written a sample code like this?) Regarding your comments on M$, I know that thing aren't that simple as Mircosoft thinks ;-) -------------------------------------------------------------------------------- Sebestyen Zoltan It all seems so stupid, it makes me want to give up. szoli@caesar.elte.hu But why should I give up, when it all seems so stupid?