Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2001 11:11:11 -0500 (EST)
From:      Zhihui Zhang <zzhang@cs.binghamton.edu>
To:        freebsd-hackers@freebsd.org
Subject:   Debugging memory leak
Message-ID:  <Pine.SOL.4.21.0111081058270.3920-100000@onyx>

next in thread | raw e-mail | index | archive | help

I am debugging a KLD.  After each run, there is always some memory in use
as indicated by vmstat -m. In other words, some memory are still in use by
the KLD. Is there any way to detect the memory leak?

After I do kldunload, all memory used by it is gone.  But I doubt that the
memory is actually returned to the global pool. Probably, it is only the
statistical information is gone.

Any help or suggestion is appreciated.

-Zhihui


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?Pine.SOL.4.21.0111081058270.3920-100000>