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.
-
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
2 matches
Mail list logo