From owner-freebsd-hackers Sun Nov 10 16:10:58 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB99537B401 for ; Sun, 10 Nov 2002 16:10:57 -0800 (PST) Received: from msgbas1.cos.agilent.com (msgbas1x.cos.agilent.com [192.25.240.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FDBB43E75 for ; Sun, 10 Nov 2002 16:10:57 -0800 (PST) (envelope-from ctuffli@rose.agilent.com) Received: from relcos1.cos.agilent.com (relcos1.cos.agilent.com [130.29.152.239]) by msgbas1.cos.agilent.com (Postfix) with ESMTP id 2D575B4F2 for ; Sun, 10 Nov 2002 17:10:51 -0700 (MST) Received: from rtl.rose.agilent.com (rtl.rose.agilent.com [130.30.179.189]) by relcos1.cos.agilent.com (Postfix) with ESMTP id DC8075C4 for ; Sun, 10 Nov 2002 17:10:49 -0700 (MST) Received: from mail.rose.agilent.com (mailsrv@bellhop [130.30.179.19]) by rtl.rose.agilent.com (8.9.3 (PHNE_18979)/8.9.3 SMKit7.1.0) with ESMTP id QAA06510 for ; Sun, 10 Nov 2002 16:10:48 -0800 (PST) Received: from cre85086tuf (cre85086tuf.rose.agilent.com [130.30.178.59]) by mail.rose.agilent.com (Netscape Messaging Server 3.6) with ESMTP id AAA4926 for ; Sun, 10 Nov 2002 16:10:46 -0800 Received: by cre85086tuf (Postfix, from userid 1001) id F088419DCF6; Sun, 10 Nov 2002 16:10:06 -0800 (PST) Date: Sun, 10 Nov 2002 16:10:06 -0800 From: Chuck Tuffli To: freebsd-hackers@FreeBSD.ORG Subject: vmstat to detect memory leaks? Message-ID: <20021111001006.GA20683@cre85086tuf.rose.agilent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm developing a loadable module and was wondering if I can use the output of vmstat to figure out if there is memory leak over the course of some testing. For example, #!/bin/sh vmstat > before kldload mymodule.ko ./run_tests.sh kldunload mymodule vmstat > after ./compare_free.sh before after Tnx! -- Chuck Tuffli Agilent Technologies, Storage and Networking To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message