Re: vmstat to detect memory leaks?

2002-11-11 Thread Doug White
On Sun, 10 Nov 2002, Chuck Tuffli wrote: > 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, vmstat -m is probably what you want. That lists the kernel memory allocations. -

vmstat to detect memory leaks?

2002-11-10 Thread Chuck Tuffli
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 Tn