From owner-freebsd-current@FreeBSD.ORG Fri Jun 9 10:32:41 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 677F916A419 for ; Fri, 9 Jun 2006 10:32:41 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id C218643D79 for ; Fri, 9 Jun 2006 10:32:40 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 5933F46B06; Fri, 9 Jun 2006 06:32:40 -0400 (EDT) Date: Fri, 9 Jun 2006 11:32:40 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: "Wilkinson, Alex" In-Reply-To: <20060608234805.GM40068@squash.dsto.defence.gov.au> Message-ID: <20060609113101.W70317@fledge.watson.org> References: <20060606071736.J68996@fledge.watson.org> <20060606073436.GK27880@squash.dsto.defence.gov.au> <20060606090919.U68996@fledge.watson.org> <20060608234805.GM40068@squash.dsto.defence.gov.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org Subject: Re: libmemstat(3) - Library for monitoring kernel memory use X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 10:32:41 -0000 On Fri, 9 Jun 2006, Wilkinson, Alex wrote: > >>Erm, Robert, where does memtop live ? I can find it in ports nor base > >>system. > > > >memtop is an experimental monitoring tool based on libmemstat, you can > find > >the source here: > > > > http://www.watson.org/~robert/freebsd/libmemstat/ > > > >Possibly something like this could be integrated into systat, but my > >ncurses knowledge is a bit weak, and I've not had a chance to > investigate > >further. As with vmstat, the interpretation of the output requires a > >moderate amount of insight into how the kernel works, so I've been a bit > >reluctant to push it as a debugging tool without some more refinement. > I > >think it would be neat if someone picked it up and did something useful > >with it, though :-). > > I assume this only works with -CURRENT ? It should build and run on 6.1 forwards also, as libmemstat was MFC'd in as part of fixing mbuf allocator statistics on SMP. I'm able to build and run memtop on 6-STABLE dated March 12. Robert N M Watson