Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Nov 2002 16:10:06 -0800
From:      Chuck Tuffli <chuck_tuffli@agilent.com>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   vmstat to detect memory leaks?
Message-ID:  <20021111001006.GA20683@cre85086tuf.rose.agilent.com>

next in thread | raw e-mail | index | archive | help
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    <chuck_tuffli AT agilent DOT com>
Agilent Technologies, Storage and Networking

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021111001006.GA20683>